Use pandas.Series.combine_first. The result is union of the two series that is in case of Null value in caller series, the value from passed series is taken.

df['Year'] = df['Year'].combine_first(temp_df['Year'])

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top