pandas fill column nan with 0 code example
Example 1: pandas fill na with value from another column
df['Cat1'].fillna(df['Cat2'])
Example 2: how to fill nan values with mean in pandas
df.fillna(df.mean())
df['Cat1'].fillna(df['Cat2'])
df.fillna(df.mean())