Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个数据框(pandas/python) - 见图片。我正在尝试组合数据帧 1 和 2 以生成数据帧 3,并加入“record_id”列。
任何想法如何使用熊猫来做到这一点?
在此先感谢您的帮助!
使用合并
pd.merge(df1, df2, on='record_ID', how='left')