📜  pandas 按其他数据框的列排序数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:14.757000             🧑  作者: Mango

代码示例3
df1 = df1.set_index('column_in_df1')
df1 = df1.reindex(index=df2['column_in_df2'])
df1 = df1.reset_index()