I was looking for a while but i didn't find a solution for my problem ...
I have a csv with the following structure:
date_time, country, temp, dc
2018-01-01 00:00:00, Germany, 12, 0
...
2018-01-01 00:00:00, Austria, 13, 3
...
2018-01-01 00:00:00, France, 4, 9
...
as you can see, date_time will repeat.
I want to use python pandas to get the following structure:
| | Germany | Austria | France
| | temp, dc | temp, dc | temp, dc
________________________________________________________
| 2018-01-01 00:00:00 | 12 , 0 | 13 , 3 | 4 , 9
I want to get two headers .. first separates the countries, second the attributes temp and dc. My index should be the date_time attribute.
Thank you for help!!!