Wymień NAN w pandy
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
Dark Duck
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
df.replace(np.nan,0)
df = df.fillna(value=np.nan)