I have three lists:
list1 = [1, 5, 5, 4, 2]
list2 = [1, 4, 5, 3, 4]
list3 = [2, 5, 4, 3, 4]
I want to return the most occurring number in each column so for example:
- Column 1 will return 1 since there are {1, 1, 2} and 1 is most occurring
- Column 2 will return 5 since there are {5, 4, 5} and 5 is most occurring
- Column 3 will return 5.
For these lists, I want to get [1, 5, 5, 3, 4]
.
The list will always have equal length.