How to get the most frequent row in a DataFrame? For example, if I have the following table:
col_1 col_2 col_3
0 1 1 A
1 1 0 A
2 0 1 A
3 1 1 A
4 1 0 B
5 1 0 C
Expected result:
col_1 col_2 col_3
0 1 1 A
EDIT: I need the most frequent row (as one unit) and not the most frequent column value that can be calculated with the mode()
method.