Let's say I have two columns: A and B in my data frame:
AB 1 NaN 2 5 3 NaN 4 6
I want to get a new column C that fills the NaN cells in column B using the values ββfrom column A:
ABC 1 NaN 1 2 5 5 3 NaN 3 4 6 6
How to do it?
I am sure this is a very simple question, but since I am new to Pandas any help would be appreciated!
source share