The Wikicharts code is stored in Jupyter notebooks rather than as proper Python modules. We should fix this.
Along the way, we should also do the following clean-up tasks:
- Update to follow the Python coding conventions. Important pieces:
- Remove comments that state the obvious. A real example:
#create pivot region_table = pd.pivot_table(map_df, values='pop_est', index=['wmf_region'], aggfunc=np.sum)
- Remove unnecessary imports
- Remove commented-out code
- Ensure that dependencies in the "resources" directory are updated automatically (T361329)
- Consistently use png format rather than jpg (unless there's some reason for the inconsistency)
- Update the output file names of the regional unique device and regional active editor graphs so that you can find the one you want without viewing the images one by one