fill na with a function pandas code example
Example 1: pandas fill na with value from another column
df['Cat1'].fillna(df['Cat2'])
Example 2: dataframe fillna with 0
df['column'] = df['column'].fillna(0)
df['Cat1'].fillna(df['Cat2'])
df['column'] = df['column'].fillna(0)