fill null pandas with another column code example
Example 1: pandas fill na with value from another column
df['Cat1'].fillna(df['Cat2'])
Example 2: pandas if nan, then the row above
df.fillna(method='ffill')
df['Cat1'].fillna(df['Cat2'])
df.fillna(method='ffill')