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)
I ran into similar problems. You most likely have a lot of NaTs. I removed all my NaTs and then performed the join and was able to join it.
df = df[df['date'].notnull() == True].set_index('date') d = d[d['date'].notnull() == True].set_index('date') df.join(d, how='right')