Skip to content

Commit

Permalink
io/parsers: ensure decimal is str on PythonParser (pandas-dev#29743)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza authored and proost committed Dec 19, 2019
1 parent 273265b commit 420eafc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v1.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ I/O
- Bug in :meth:`Styler.background_gradient` not able to work with dtype ``Int64`` (:issue:`28869`)
- Bug in :meth:`DataFrame.to_clipboard` which did not work reliably in ipython (:issue:`22707`)
- Bug in :func:`read_json` where default encoding was not set to ``utf-8`` (:issue:`29565`)
- Bug in :class:`PythonParser` where str and bytes were being mixed when dealing with the decimal field (:issue:`29650`)
-

Plotting
Expand Down
4 changes: 2 additions & 2 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def _read(filepath_or_buffer: FilePathOrBuffer, kwds):
"cache_dates": True,
"thousands": None,
"comment": None,
"decimal": b".",
"decimal": ".",
# 'engine': 'c',
"parse_dates": False,
"keep_date_col": False,
Expand Down Expand Up @@ -568,7 +568,7 @@ def parser_f(
# Quoting, Compression, and File Format
compression="infer",
thousands=None,
decimal=b".",
decimal: str = ".",
lineterminator=None,
quotechar='"',
quoting=csv.QUOTE_MINIMAL,
Expand Down

0 comments on commit 420eafc

Please sign in to comment.