I have two DataFrames in pandas, trying to merge them. But pandas keeps changing the order. I\'ve tried setting indexes, resetting them, no matter what I do, I can\'t get th
I might have a much more simple solution:
df_z = df_x.join(df_y.set_index('state'), on = 'state')
Hope it helps