I have a dataframe that looks like
Country | IndicatorName | Value
Spain | Indicator1 | 3
Spain | Indicator2 | 4
Germany | Indicator16 | 24
......
And I want to convert it into a dataframe with IndicatorName columns, Country rows and Value intersections
Country | Indicator 1 | Indicator 2 | Indicator 3 | ......
Spain | 3 | 4 | 16 | ......
Germany | 23 | 232 | 232 | ......
.......
I am trying through groupby(["IndicatorName","Value"]) but not sure how to proceed
import pandas as pd
indicators = pd.read_csv("Indicators.csv")
indicators.groupbby(["IndicatorName","Value"])
.....
Is there a proper way to deal with this or does it need to be done via iteration?