I have the following DF:
| Fecha | Partido | Equipo | xG | xGA |
|------------|-------------------------|---------|------|------|
| 2022-05-01 | América - Cruz Azul 0:0 | América | 1.53 | 0.45 |
| 2022-05-01 | Leon - América 2:0 | América | 1.70 | 0.35 |
I want to create three new columns based on the Partido column where the first team goes to a new column named Home, the second team to a column named Visitor and the score to a column named Score.
Desired Output:
| Fecha | Partido | Equipo | xG | xGA | Home | Away | Score |
|------------|-------------------------|---------|------|------|-------- |------------|-------|
| 2022-05-01 | América - Cruz Azul 0:0 | América | 1.53 | 0.45 | América | Cruz Azul | 0:0 |
| 2022-05-01 | Leon - América 2:0 | América | 1.70 | 0.35 | Leon | América | 2:0 |
I have tried splitting with delimiter but since some teams have two words in their names it doesn't work.