IP Routing Banking
1 1 6
2 1 6
3 1 7
3 3 8
4 5 9
5 9 7
For each column if the same value appears 2 or over times I want to alter it to "Other". How can I do this in pandas python?
Expected Output:
IP Routing Banking
1 Other Other
2 Other Other
Other Other Other
Other 3 8
4 5 9
5 9 Other