I have 2 dataframes df_1 and df_2. Both have an index datetimecodewhich is a pd.datetime64 object, and a temp column. I want to iterate through df_1 and replace all the NaN temperature values with the corresponding temp from 'df_2'.
Something like this:
for index, row in df_1.iterows():
row['temp'] = df_2[index]['temp'] if row['temp'] ==np.nan
but this is invalid sytax
