python df fill nan col with other col values code example Example: pandas fill na with value from another column df['Cat1'].fillna(df['Cat2'])