I have tried to use
if df.loc[df['col_1']] == float:
print(df.loc[df['col_1']])
But that doesn't work. I basically just want to find everything of the datatype float
in a column and see what it is and where. How do I go about doing that?
I need to do this because the column is an object according df.dtypes
but in trying to do string operations on it, I am getting a TypeError
that there are floats.