I'm having trouble visualising the correlation between one variable and another. My brain is dead on this one.
I have a dataset listing the uptake of a sport across a number of cities based on data from individuals.
So the data looks a bit like:
Sport | City |
---|---|
Sport1 | city1 |
Sport2 | city2 |
Sport2 | city2 |
Sport1 | city2 |
What I want to determine is, are certain sports more popular in different cities? ie. from the above we can see that Sport 2 is more popular in City 2. How can I visualise/list this in Python?