I have a dataframe with a date column but some values are blank or NaN, I am trying to replace all these values with a date from another column. I am trying the solution below but its not working, can someone please help
df['Date'] = df['Date'].replace(np.nan, df['Date2'])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.