From 9edd55805a6e5597e3aa3222cd77e4268b2b6c04 Mon Sep 17 00:00:00 2001 From: linozen Date: Tue, 14 Dec 2021 15:17:39 +0100 Subject: [PATCH] rename data file --- explorer.py | 6 +++--- scripts/clean.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/explorer.py b/explorer.py index 993c2fb..7af108f 100644 --- a/explorer.py +++ b/explorer.py @@ -382,7 +382,7 @@ def answered_by(group): # Import data from stored pickle # =========================================================================== -df = pd.read_pickle("data/merged.pkl") +df = pd.read_pickle("data/guarding_survey.pkl.pkl") # =========================================================================== # General configuration @@ -617,11 +617,11 @@ def callback(): [Github](https://github.com/snv-berlin/ioi). """ ) - with open("data/merged.csv", "rb") as file: + with open("data/guarding_survey.csv", "rb") as file: st.download_button( label="Download data as CSV", data=file, - file_name="GUARDINT_survey_data_merged.csv", + file_name="guardint_survey.csv", ) country_counts = df[filter]["country"].value_counts() diff --git a/scripts/clean.py b/scripts/clean.py index 6fbe310..b599d97 100755 --- a/scripts/clean.py +++ b/scripts/clean.py @@ -1352,6 +1352,6 @@ def construct_ms_df(): # Export data to file # =========================================================================== -df.to_pickle("data/merged.pkl") -df.to_excel("data/merged.xlsx") -df.to_csv("data/merged.csv") +df.to_pickle("data/guarding_survey.pkl") +df.to_excel("data/guarding_survey.xlsx") +df.to_csv("data/guarding_survey.csv")