-4
我在pyton兩個不同Dataframes這樣的:如何拆分和對比數據框在熊貓
import pandas
df = pd.DataFrame({'AAA' : ["a1","a2","a3","a4","a5","a6","a7"],
'BBB' : ["c1","c2","c2","c2","c3","c3","c1"]})
df2 = pd.DataFrame({'AAA' : ["a1","a2","a4","a6","a7","a8","a9"],
'BBB' : ["c11","c21","c21","c12","c13","c13","c11"]})
Iwant比較「AAA」的值,並找到基於「BBB」組相似值的數量。 C1和C11之間的示例相似度爲1(a1)的C2之間 相似,C21爲2(A2,A4)
對不起,我完全不理解這個問題,請問可以請reword –
如何使用'CCC'?如果你不這樣做,爲什麼要展示給我們? – DyZ
我刪除了CCC –