I have the following code:
df(df.Sex==\'male\')
I get an error stating that the dataframe object is not callable.
How can I solve t
It is called boolean indexing and need [] only:
[]
df[df.Sex=='male']
Or:
df.query("Sex =='male'")