I'm relatively new to Python. I've been working in a project, and have a DataFrame that gives me two different instances for the same index. I exlpain: When I ask for an instance this way:
df[df.name == 'Marcia']
the result shows Int64Index([92], dtype='int64')
But if I ask for an instance by index = 92
this way:
df.iloc[92]
the result is a different instance, whose 'name' is not 'Marcia'. There is only one 'Marcia' in my dataset. How can this happen?