QChris has uploaded a new change for review. https://gerrit.wikimedia.org/r/84308
Change subject: Use basedir's "global_south.csv" to compute editor fractions ...................................................................... Use basedir's "global_south.csv" to compute editor fractions Change-Id: I22e52d0fc7ea79a0042cc8ed58d80604f40b9a31 --- M scripts/make_limn_files.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/analytics/geowiki refs/changes/08/84308/1 diff --git a/scripts/make_limn_files.py b/scripts/make_limn_files.py index 3faa26d..f7d1a15 100755 --- a/scripts/make_limn_files.py +++ b/scripts/make_limn_files.py @@ -341,7 +341,7 @@ #write_project_country_language(project, cursor, args.basedir) def plot_gs_editor_fraction(basedir): - df = pd.read_csv('data/datafiles/global_south.csv', index_col='date', parse_dates=['date']) + df = pd.read_csv(basedir + '/datafiles/global_south.csv', index_col='date', parse_dates=['date']) df['Global South Fraction (100+)'] = df['Global South (100+)'] / (df['Global South (100+)'] + df['Global North (100+)'] + df['Unkown (100+)']).apply(float) df['Global South Fraction (5+)'] = df['Global South (5+)'] / (df['Global South (5+)'] + df['Global North (5+)'] + df['Unkown (5+)']).apply(float) df['Global South Fraction (all)'] = df['Global South (all)'] / (df['Global South (all)'] + df['Global North (all)'] + df['Unkown (all)']).apply(float) -- To view, visit https://gerrit.wikimedia.org/r/84308 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I22e52d0fc7ea79a0042cc8ed58d80604f40b9a31 Gerrit-PatchSet: 1 Gerrit-Project: analytics/geowiki Gerrit-Branch: master Gerrit-Owner: QChris <christ...@quelltextlich.at> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits