-1
如何將pandas/python中的數據框中的四列組合起來創建一個唯一的指標並進行左連接?創建一個獨特的指標兩個連接兩個數據集在熊貓/ python
這是甚至是我嘗試完成的最好方法嗎?
example: make a unique indicator (col5)
then setup a join with another dataframe using the same logic
col1 col2 col3 col4 col5
apple pear mango tea applepearmangotea
然後做一個加盟像
pd.merge(df1, df2, how='left', on='col5')
?您的問題需要更多信息;什麼是輸入和期望輸出的例子? – roganjosh