From 3c6934d0e32002e2c55785429f64b50ae4a78beb Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sat, 28 Mar 2020 12:25:55 +0000 Subject: [PATCH] fix encoding --- covid19.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/covid19.py b/covid19.py index bb993d9b..d2433361 100755 --- a/covid19.py +++ b/covid19.py @@ -78,7 +78,7 @@ def run_text(df, output, countries): def run(args): """@param args: RunArgs""" - df = pd.read_csv(args.input, parse_dates=["dateRep"], dayfirst=True) + df = pd.read_csv(args.input, parse_dates=["dateRep"], dayfirst=True, encoding="ISO-8859-1") countries = args.countries.upper().split(",") or ["ALL"] while "TOP" in countries: i = countries.index("TOP")