From a44d42528c11403f0f59145a98ecba86c41bbf8e Mon Sep 17 00:00:00 2001 From: smurail Date: Tue, 21 Nov 2017 14:21:07 +0100 Subject: [PATCH] [FIX] CSV parser regression --- gargantext/util/parsers/CSV.py | 3 ++- install/gargamelle/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gargantext/util/parsers/CSV.py b/gargantext/util/parsers/CSV.py index a89a04d6..bfd6e9f8 100644 --- a/gargantext/util/parsers/CSV.py +++ b/gargantext/util/parsers/CSV.py @@ -16,7 +16,8 @@ class CSVParser(Parser): def parse(self, fp=None): fp = fp or self._file - df = pandas.read_csv(fp, dtype=object, skip_blank_lines=True) + df = pandas.read_csv(fp, dtype=object, skip_blank_lines=True, sep=None, + na_values=[], keep_default_na=False) # Return a generator of dictionaries with column labels as keys, # filtering out empty rows diff --git a/install/gargamelle/requirements.txt b/install/gargamelle/requirements.txt index c66783d7..8bc4a94e 100644 --- a/install/gargamelle/requirements.txt +++ b/install/gargamelle/requirements.txt @@ -28,7 +28,7 @@ RandomWords==0.1.12 ujson==1.35 umalqurra==0.2 # arabic calendars (?? why use ??) networkx==1.11 -pandas==0.18.0 +pandas==0.21.0 six==1.10.0 lxml==3.5.0 requests-futures==0.9.7 -- 2.21.0