Reputation: 590
here is my piece of code, this is working well for all other values of column but for one value in column giving empty row , but this value is available in column so row should not be empty
EOG_MAX_model=pp.loc[(pp['time']==5.3)]
5.3 is available in 'time'column. and datatype is float64
Upvotes: 1
Views: 17
Reputation: 863166
There is problem with precision, possible solution is use numpy.isclose
:
EOG_MAX_model=pp.loc[np.isclose(pp['time'], 5.3)]
Upvotes: 2