fill nans in Series with series + pandas code example
Example 1: how to fill nan values with mean in pandas
df.fillna(df.mean())
Example 2: represent NaN with pandas in python
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")