how to find which row in pandas does not have nan code example
Example 1: find nan value in dataframe python
# to mark NaN column as True
df['your column name'].isnull()
Example 2: pandas if nan, then the row above
df.fillna(method='ffill')
# to mark NaN column as True
df['your column name'].isnull()
df.fillna(method='ffill')