I'm new to the world of Python programming, I mainly work in BI Tools and Excel.
I have data that I need to reshape the data in something similar to a union. I want to use Python to do this do the next time new data comes in can do the task quickly.
In the attached image you'll see this is so the Home Teams and Away Teams can be filtered in one new column called Teams. Similarly, Home and Away Goals can to be filtered into one column called Goals.
I have the data loaded as a dataframe, I now need to reshape it. I'd really appreciate if I could be pointed in the right direction.
Thanks!