Say I have two dataframes x and y in Pandas, I would like to fill in a column in x with the result of sorting a column in y. I tried this:
x['foo'] = y['bar'].order(ascending=False)
but it didn't work, I suspect because Pandas aligns indices between x and y (which have the same set of indices) during the assignment
How can I have Pandas fill in the x['foo'] with another column from another dataframe ignoring the alignment of indices?