I have the following two dataframes that I have set date to DateTime Index df.set_index(pd.to_datetime(df[\'date\']), inplace=True) and would like to merge or j
df.set_index(pd.to_datetime(df[\'date\']), inplace=True)
It looks like your dates are your indices, in which case you would want to merge on the index, not column. If you have two dataframes, df_1 and df_2:
df_1
df_2
df_1.merge(df_2, left_index=True, right_index=True, how='inner')