Hi guys,
I have a df with only 1 column from players bought and sold during a specific season:
The order is: Type of Transfer and Season, Player Name, Market Value
Arrivals 21/22
Mbwana Samatta
€6.00m
Allahyar Sayyadmanesh
€1.00m
Departures 21/22
Deniz Türüc
€0.00m
Arrivals 20/21
Irfan Can Kahveci
€7.00m
Marcel Tisserand
€4.00m
Targeted format:
| Player Name | Season | Type of Transfer | Value |
| -------- | -------------- | -------------- | -------------- |
| Mbwana Samatta | 20/21 |Arrival |€6.00m
| Allahyar Sayyadmanesh | 20/21 |Departures |€1.00m
I need to spread this data with some function that recognizes that the bunch of players bought or sold belongs to a season.
I tried with rownames_to_column, spread function, and contains function of tidyr.
I am an absolute beginner and grateful for any hint how to approach this.
Thanks!