0

I have a dataframe consisting of the following data

            Value   Country
Date        
2023-02-09  101 Sweden
2023-02-09  58  Norway
2023-02-09  47  Mexico
2023-02-09  90  Finland
2023-02-09  117 Taiwan

and this keeps going for each country daily. What I would like to do is split this up so that I only have one row for each day. That is create columns such as Value.Sweden etc.

Is there a neat way to accomplish this in pandas?

Nate
  • 193
  • 6

0 Answers0