Don’t understand cause of this KeyError in pandas Series

I’m trying to run this code:

import pandas as pd

Data = {'HINDI': 79, 'IP': 45, 'CS': 64, 'BIO': 45, 'MATHS': 55}
subject = pd.Series(Data)
print(subject.drop(3))

But it is Showing error like this:

File "e:PythonXII IP MATPLOTLIBAssignment2.py", line 44, in <module>
PS E:PythonXII IP MATPLOTLIB> python -u "e:PythonXII IP MATPLOTLIBAssignment2.py"
Traceback (most recent call last):
  File "e:PythonXII IP MATPLOTLIBAssignment2.py", line 44, in <module>
    print(subject.drop(3))
  File "C:UsersMixotechAppDataLocalProgramsPythonPython39libsite-packagespandascoreseries.py", line 4443, in drop
    return super().drop(
  File "C:UsersMixotechAppDataLocalProgramsPythonPython39libsite-packagespandascoregeneric.py", line 4153, in drop
    obj = obj._drop_axis(labels, axis, level=level, errors=errors)
  File "C:UsersMixotechAppDataLocalProgramsPythonPython39libsite-packagespandascoregeneric.py", line 4188, in _drop_axis
    new_axis = axis.drop(labels, errors=errors)
  File "C:UsersMixotechAppDataLocalProgramsPythonPython39libsite-packagespandascoreindexesbase.py", line 5591, in drop
    raise KeyError(f"{labels[mask]} not found in axis")
KeyError: '[3] not found in axis'

Answer

I assume you are trying to drop the fourth row. In that case use

print(subject.drop(labels=['BIO']))