Skip to content

Commit ee18e06

Browse files
authored
DOC: point out the limitation of precision while doing serialization (#54100)
point out the limitation of precision while doing serialization
1 parent c92b370 commit ee18e06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,8 @@ def to_json(
24172417
the default is 'epoch'.
24182418
double_precision : int, default 10
24192419
The number of decimal places to use when encoding
2420-
floating point values.
2420+
floating point values. The possible maximal value is 15.
2421+
Passing double_precision greater than 15 will raise a ValueError.
24212422
force_ascii : bool, default True
24222423
Force encoded string to be ASCII.
24232424
date_unit : str, default 'ms' (milliseconds)

0 commit comments

Comments
 (0)