let's assume I have an excel table of this structure
Max 27 2 Tennis
Tommy 29 1 Football
Tommy 20 1 Rugby
Tommy 8 9 Baseball
How can I calculate all possible combinations for column 4 based on the first column? For example the output should be looking like this:
Max = Tennis
Tommy = Football + Rugby + Baseball
Is there a possible way to do that programmatically in python? If so, how can I count the number of the repeated combination?
For example the output may be:
Football + Rugby + Baseball: 1
So this combination is repeated only once.
1or a2. Same question for Tommy. Basically, we need additional example input data and concreate full example output data, otherwise people are just guessing at how to help.