99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2021-03-31 閱讀量: 1175
python如何實現(xiàn)兩列中行數(shù)據(jù)相同的次數(shù)統(tǒng)計

python如何實現(xiàn)兩列中行數(shù)據(jù)相同的次數(shù)統(tǒng)計

解決:

import pandas as pd    
data = pd.read_excel('c:/users/用戶/desktop/數(shù)據(jù).xlsx')    
temp = [[name[0],name[1],len(group)] for name,group in data.groupby(['Origin','Destination'])]    
data_re = pd.DataFrame(temp,columns=['Origin','Destination','count'])


0.0000
0
關注作者
收藏
評論(0)

發(fā)表評論

暫無數(shù)據(jù)
推薦帖子