File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2287,8 +2287,6 @@ Please note that the literal string 'index' as the name of an :class:`Index`
2287
2287
is not round-trippable, nor are any names beginning with ``'level_' `` within a
2288
2288
:class: `MultiIndex `. These are used by default in :func: `DataFrame.to_json ` to
2289
2289
indicate missing values and the subsequent read cannot distinguish the intent.
2290
- The string 'index' as a column name with empty :class: `Index ` or if it is
2291
- 'index' will raise a ``ValueError ``.
2292
2290
2293
2291
.. ipython :: python
2294
2292
:okwarning:
Original file line number Diff line number Diff line change @@ -2388,7 +2388,8 @@ def to_json(
2388
2388
index : bool or None, default None
2389
2389
The index is only used when 'orient' is 'split', 'index', 'column',
2390
2390
or 'table'. Of these, 'index' and 'column' do not support
2391
- `index=False`.
2391
+ `index=False`. The string 'index' as a column name with empty :class:`Index`
2392
+ or if it is 'index' will raise a ``ValueError``.
2392
2393
2393
2394
indent : int, optional
2394
2395
Length of whitespace used to indent each record.
You can’t perform that action at this time.
0 commit comments