From 9e2850485cdc73336c42e74d602d725a1ee7e588 Mon Sep 17 00:00:00 2001 From: darker Date: Tue, 1 Mar 2022 17:57:07 +0100 Subject: [PATCH] fix: fix keep_default_na behaviour for read_csv (#93) * feat: removed keep_default_na from read_csv reader --- peakina/readers/csv.py | 3 --- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/peakina/readers/csv.py b/peakina/readers/csv.py index 9160a5a1..1afbfb30 100644 --- a/peakina/readers/csv.py +++ b/peakina/readers/csv.py @@ -23,7 +23,6 @@ def read_csv( preview_offset: int = 0, preview_nrows: Optional[int] = None, # change of default values - keep_default_na: bool = False, # pandas default: `True` error_bad_lines: bool = False, # pandas default: `True` **kwargs: Any, ) -> pd.DataFrame: @@ -33,7 +32,6 @@ def read_csv( if preview_nrows is not None or preview_offset: chunks = pd.read_csv( filepath_or_buffer, - keep_default_na=keep_default_na, error_bad_lines=error_bad_lines, **kwargs, # keep the first row 0 (as the header) and then skip everything else up to row `preview_offset` @@ -45,7 +43,6 @@ def read_csv( return pd.read_csv( filepath_or_buffer, - keep_default_na=keep_default_na, error_bad_lines=error_bad_lines, **kwargs, ) diff --git a/pyproject.toml b/pyproject.toml index e26acbca..0715b42e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "peakina" -version = "0.7.1" +version = "0.7.2" description = "pandas readers on steroids (remote files, glob patterns, cache, etc.)" authors = ["Toucan Toco "] readme = "README.md"