Skip to content

Commit a607bd7

Browse files
authored
Fix documentation for new float_precision on read_csv (#36358)
1 parent 6537ad8 commit a607bd7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

pandas/io/parsers.py

+11-7
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,12 @@
338338
option can improve performance because there is no longer any I/O overhead.
339339
float_precision : str, optional
340340
Specifies which converter the C engine should use for floating-point
341-
values. The options are `None` or `high` for the ordinary converter,
342-
`legacy` for the original lower precision pandas converter, and
343-
`round_trip` for the round-trip converter.
341+
values. The options are ``None`` or 'high' for the ordinary converter,
342+
'legacy' for the original lower precision pandas converter, and
343+
'round_trip' for the round-trip converter.
344+
345+
.. versionchanged:: 1.2
346+
344347
storage_options : dict, optional
345348
Extra options that make sense for a particular storage connection, e.g.
346349
host, port, username, password, etc., if using a URL that will
@@ -349,7 +352,7 @@
349352
a file-like buffer. See the fsspec and backend storage implementation
350353
docs for the set of allowed keys and values.
351354
352-
.. versionadded:: 1.2.0
355+
.. versionadded:: 1.2
353356
354357
Returns
355358
-------
@@ -2290,9 +2293,10 @@ def TextParser(*args, **kwds):
22902293
can be inferred, there often will be a large parsing speed-up.
22912294
float_precision : str, optional
22922295
Specifies which converter the C engine should use for floating-point
2293-
values. The options are None for the ordinary converter,
2294-
'high' for the high-precision converter, and 'round_trip' for the
2295-
round-trip converter.
2296+
values. The options are `None` or `high` for the ordinary converter,
2297+
`legacy` for the original lower precision pandas converter, and
2298+
`round_trip` for the round-trip converter.
2299+
22962300
.. versionchanged:: 1.2
22972301
"""
22982302
kwds["engine"] = "python"

0 commit comments

Comments
 (0)