我必須合併兩個dataframes如何合併基於pandas python中特定列的兩個數據框?
DF1
company,standard
tata,A1
cts,A2
dell,A3
DF2
company,return
tata,71
dell,78
cts,27
hcl,23
我必須compain既dataframes作爲一個數據frame.i需要輸出像
company,standard,return
tata,A1,71
cts,A2,27
dell,A3,78
你試過使用'merge'還是'join'? – IanS
不...我不知道那 –
你在問很基本的問題,請在問之前研究。 https://people.duke.edu/~ccc14/sta-663/IntroductionToPythonSolutions.html – Merlin