Home > other >  DataFrame find one row index as an empty value
DataFrame find one row index as an empty value

Time:09-24

Excuse me, if in the DataFrame object df, existence state free values in a column, I use the np, where (df [' state ']=='NaN') carry out results for why (array ([], dtype=int64),)? Why don't show in array line index number? There are no other ways to achieve this requirement?

CodePudding user response:

Judge a null value is the isnull ()? Not=='nan'? Have a try?

CodePudding user response:

Ok, thank you,
  • Related