find the nan row in a df 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')