diff --git a/README.md b/README.md index ec3fd1ae98b1..a9e8d8fb7bcc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ![Warning](https://img.shields.io/badge/Warning-Data%20has%20been%20moved-red) **📢 : Our datasets on GitHub are deprecated. Please use https://docs.owid.io/projects/etl/api/covid/.** + --- # COVID-19 Dataset by _Our World in Data_ diff --git a/scripts/scripts/README.md.template b/scripts/scripts/README.md.template index 00f4e872dba6..684275b0dadd 100644 --- a/scripts/scripts/README.md.template +++ b/scripts/scripts/README.md.template @@ -1,6 +1,7 @@ ![Warning](https://img.shields.io/badge/Warning-Data%20has%20been%20moved-red) **📢 : Our datasets on GitHub are deprecated. Please use https://docs.owid.io/projects/etl/api/covid/.** + --- # Data on COVID-19 (coronavirus) by _Our World in Data_ diff --git a/scripts/src/cowidev/megafile/export/public.py b/scripts/src/cowidev/megafile/export/public.py index 25ee006b69ed..398534ff0789 100644 --- a/scripts/src/cowidev/megafile/export/public.py +++ b/scripts/src/cowidev/megafile/export/public.py @@ -44,23 +44,23 @@ def create_dataset(df, macro_variables, logger, filename=None): S3().upload_to_s3(filename_local, f"s3://covid-19/public/{filename}.csv", public=True) ## Float resolution (only for local file) - cols_float = df.select_dtypes(include=['float']).columns.tolist() - df[cols_float] = df[cols_float].round(2) - df.to_csv(filename_local, index=False) - - logger.info("Writing to XLSX…") - # filename = os.path.join(DATA_DIR, "owid-covid-data.xlsx") - # all_covid.to_excel(os.path.join(DATA_DIR, "owid-covid-data.xlsx"), index=False, engine="xlsxwriter") - # upload_to_s3(filename, "public/owid-covid-data.xlsx", public=True) - obj_to_s3(df, s3_path=f"s3://covid-19/public/{filename}.xlsx", public=True) - - logger.info("Writing to JSON…") - data = df_to_dict( - df, - macro_variables.keys(), - valid_json=True, - ) - obj_to_s3(data, f"s3://covid-19/public/{filename}.json", public=True) + # cols_float = df.select_dtypes(include=['float']).columns.tolist() + # df[cols_float] = df[cols_float].round(2) + # df.to_csv(filename_local, index=False) + + # logger.info("Writing to XLSX…") + # # filename = os.path.join(DATA_DIR, "owid-covid-data.xlsx") + # # all_covid.to_excel(os.path.join(DATA_DIR, "owid-covid-data.xlsx"), index=False, engine="xlsxwriter") + # # upload_to_s3(filename, "public/owid-covid-data.xlsx", public=True) + # obj_to_s3(df, s3_path=f"s3://covid-19/public/{filename}.xlsx", public=True) + + # logger.info("Writing to JSON…") + # data = df_to_dict( + # df, + # macro_variables.keys(), + # valid_json=True, + # ) + # obj_to_s3(data, f"s3://covid-19/public/{filename}.json", public=True) def create_latest(df, logger):