infovote-io / dashboard

https://infovote.io/
1 stars 0 forks source link

Include Python Code #19

Closed danybonfil closed 11 months ago

danybonfil commented 11 months ago

Since we will be using a python environment and potentially the frictionless documentation, we should consider including the python code to download data from the FRED API, make simple transformations (See #5 ), and save the csv file in the repository folder.

danybonfil commented 11 months ago

To solve this issue, I am including the file "infovote.ipynb" with the succint python code to download data from the FRED API, make transformations, and save the csv file in the repository folder.

@gabrielbdornas I also renamed the variables to avoid confusion between nominal values $, %growth, and cumulative growth. The names of the presidents are also included in the year of the election. Note: I am expecting some issues with the NA values that will be solved with Vega Lite.

image