To pass another entire column as argument to Python Pandas fillna(), we call fillna
with the column directly.
For instance, we write
df['Cat1'].fillna(df['Cat2'])
to call fillna
with df['Cat2']
to pass the column as the argument to replace NaN values with the values from the Cat2
column.