From 241df8e623c2cf4becc0f3897c11b349a90f556e Mon Sep 17 00:00:00 2001 From: salvidor Date: Sun, 6 Dec 2020 15:26:23 -0700 Subject: [PATCH] explicitly resetting io stream to start after pandas read. --- fables/parse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fables/parse.py b/fables/parse.py index 628822b..130a7cb 100644 --- a/fables/parse.py +++ b/fables/parse.py @@ -109,6 +109,7 @@ def parse_csv( except csv.Error: delimiter = "," df = pd.read_csv(bytesio, skip_blank_lines=True, sep=delimiter, **pandas_kwargs) + bytesio.seek(0) df = post_process_dataframe(df, force_numeric) return df