how does pandas dataframe handle NaN code example
Example 1: represent NaN with pandas in python
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")
Example 2: how to filing the missing data by mean of row in dataframe in pandas
df.T.fillna(df.mean(axis=1)).T