Pandas: Assign column from single-indexed df to multi-indexed df

后端 未结 0 511
醉话见心
醉话见心 2020-12-09 22:49

Consider three dataframes:

df1 = pd.DataFrame({\'x1\': [1,2,3], \'a\': [1,1,2], \'b\': [10,20,10], \'c\':[100, 200, 300]}).set_index([\'a\', \'b\', \'c\'])
df         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题