df = pd.DataFrame([[1,2,3,1,5],
[2,3,4,4,6],
[7,2,2,2,5],
[21,3,4,3,6]], index=[1,2,3,4], columns=list('ABCDE'))
df 的结果值
A B C D E
1 1 2 3 1 5
2 2 3 4 4 6
3 7 2 2 2 5
4 21 3 4 3 6
如何知道每行中出现次数最多的数字?
例如:
row 1: 1 appears two times
row 2: 4 appears two times
row 3: 2 appears three times
抱歉,我的翻译目前只支持英文和西班牙文。