Currently the acaps dataset has a seperate row for each new policy adapted by a country, the goal is to to have one row for each country with the column values indication if a certain policy has been adapted or not (kind of like one hot encoding)
Trello card : https://trello.com/c/V3JYaToE/88-social-distancing-policies
1.The idea is to transpose the rows for each policy to columns with value of 1 or 0 indicating if a policy has been adapted by a certain country.
- A Basic approach would be a function to create a pivot table of the acaps dataset. The input would be the current acaps dataframe and the output the pivoted dataframe.
Currently the acaps dataset has a seperate row for each new policy adapted by a country, the goal is to to have one row for each country with the column values indication if a certain policy has been adapted or not (kind of like one hot encoding)
Trello card : https://trello.com/c/V3JYaToE/88-social-distancing-policies
1.The idea is to transpose the rows for each policy to columns with value of 1 or 0 indicating if a policy has been adapted by a certain country.