find nan rows in dataframe and replace with data code example Example: dataframe fillna with 0 df['column'] = df['column'].fillna(0)