Jak wymienić NAN 0 w pandy
df['product']=df['product'].fillna(0)
df['context']=df['context'].fillna(0)
df
Quaint Quetzal
df['product']=df['product'].fillna(0)
df['context']=df['context'].fillna(0)
df
pandas.DataFrame.fillna(0)
a[a==0] = np.nan