Cómo reemplazar nan con 0 en pandas
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
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
df.replace(np.nan,0)
data["Gender"].fillna("No Gender", inplace = True)
df['workclass'].replace('?', np.NaN)
df.fillna(0)