The main script gets the datasets from the open data portal of the canton BS (Basel-Stadt, not the other thing)
Data gets cleaned - differences calculated, cleaned and pushed via the Datawrapper API The Charts with the 'dirty' Data are still in the script to demonstrate the 'datacleaning' steps.
The Charts are used in this blogpost and the data-cleaning is explained further.
- In order to get the script to run, update the credentials_dummy.py file and rename it to 'credentials.py' (You need a Datawrapper Token and three Chart-IDs from Datawrapper)
- Install dependencies
- Run script.py first and evaluations.py afterwards (Recommended Python 3.6 or newer)
- Enjoy!