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 (df 2) 的形式获取表 1(df 1)?
我会尝试拥有 2 个数据框,一个只有tesco1,另一个只有tesco2.
tesco1
tesco2
然后我会使用mergewith
merge
df.merge(df2,how='left',left_on=['client'],right_on=['client"])
我会这样. explode使用
. explode
df2 =df1.explode(title)