Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean and reformat acaps dataset #65

Open
sammerpuranpost opened this issue Apr 17, 2020 · 0 comments
Open

Clean and reformat acaps dataset #65

sammerpuranpost opened this issue Apr 17, 2020 · 0 comments

Comments

@sammerpuranpost
Copy link

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.

  1. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant