Skip to content

Commit 600a7dc

Browse files
gfyoungjreback
authored andcommitted
DOC: actually document float_precision in read_csv
So I wasn't 100% correct when I said that `float_precision` was documented <a href="#12686 (comment) ecomment-222684918">here<a/>. It was well documented internally for `TextParser` and in a section for `io.rst`, but it wasn't listed formally in the parameters for the `read_csv` documentation. Author: gfyoung <gfyoung17@gmail.com> Closes #13377 from gfyoung/float-precision-doc and squashes the following commits: a9eed16 [gfyoung] DOC: actually document float_precision in read_csv
1 parent b722222 commit 600a7dc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

doc/source/io.rst

+4
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ thousands : str, default ``None``
269269
Thousands separator.
270270
decimal : str, default ``'.'``
271271
Character to recognize as decimal point. E.g. use ``','`` for European data.
272+
float_precision : string, default None
273+
Specifies which converter the C engine should use for floating-point values.
274+
The options are ``None`` for the ordinary converter, ``high`` for the
275+
high-precision converter, and ``round_trip`` for the round-trip converter.
272276
lineterminator : str (length 1), default ``None``
273277
Character to break file into lines. Only valid with C parser.
274278
quotechar : str (length 1)

pandas/io/parsers.py

+5
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@
183183
Thousands separator
184184
decimal : str, default '.'
185185
Character to recognize as decimal point (e.g. use ',' for European data).
186+
float_precision : string, default None
187+
Specifies which converter the C engine should use for floating-point
188+
values. The options are `None` for the ordinary converter,
189+
`high` for the high-precision converter, and `round_trip` for the
190+
round-trip converter.
186191
lineterminator : str (length 1), default None
187192
Character to break file into lines. Only valid with C parser.
188193
quotechar : str (length 1), optional

0 commit comments

Comments
 (0)