From 95fedc0a5b951573c088512290767e4945440d4e Mon Sep 17 00:00:00 2001 From: Irv Lustig Date: Mon, 14 Sep 2020 10:23:14 -0400 Subject: [PATCH 1/3] Fix documentation for new float_precision on read_csv --- pandas/io/parsers.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 2780b1a7f86c9..696badf73ce6d 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -342,6 +342,7 @@ `legacy` for the original lower precision pandas converter, and `round_trip` for the round-trip converter. + .. versionchanged:: 1.2 Returns ------- DataFrame or TextParser @@ -2281,9 +2282,10 @@ def TextParser(*args, **kwds): can be inferred, there often will be a large parsing speed-up. float_precision : str, optional Specifies which converter the C engine should use for floating-point - values. The options are None for the ordinary converter, - 'high' for the high-precision converter, and 'round_trip' for the - round-trip converter. + values. The options are `None` or `high` for the ordinary converter, + `legacy` for the original lower precision pandas converter, and + `round_trip` for the round-trip converter. + .. versionchanged:: 1.2 """ kwds["engine"] = "python" From a5c5e2a7230d4d4658d13b9f77e39248fbc0d42a Mon Sep 17 00:00:00 2001 From: Irv Lustig Date: Mon, 14 Sep 2020 10:53:58 -0400 Subject: [PATCH 2/3] add linebreak after versiochanged --- pandas/io/parsers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 696badf73ce6d..20ade96fa55e8 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -343,6 +343,7 @@ `round_trip` for the round-trip converter. .. versionchanged:: 1.2 + Returns ------- DataFrame or TextParser From 462b1a92afb88e5e615a290dbdd75ecdafdf4bd5 Mon Sep 17 00:00:00 2001 From: Irv Lustig Date: Tue, 15 Sep 2020 18:23:00 -0400 Subject: [PATCH 3/3] quote the float precision options --- pandas/io/parsers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 20ade96fa55e8..d66953d2c2cb3 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -338,9 +338,9 @@ option can improve performance because there is no longer any I/O overhead. float_precision : str, optional Specifies which converter the C engine should use for floating-point - values. The options are `None` or `high` for the ordinary converter, - `legacy` for the original lower precision pandas converter, and - `round_trip` for the round-trip converter. + values. The options are ``None`` or 'high' for the ordinary converter, + 'legacy' for the original lower precision pandas converter, and + 'round_trip' for the round-trip converter. .. versionchanged:: 1.2