Skip to content

Commit 2144628

Browse files
committed
add mention of the raised error to the to_json documentation
1 parent af74083 commit 2144628

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/source/user_guide/io.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2287,6 +2287,8 @@ Please note that the literal string 'index' as the name of an :class:`Index`
22872287
is not round-trippable, nor are any names beginning with ``'level_'`` within a
22882288
:class:`MultiIndex`. These are used by default in :func:`DataFrame.to_json` to
22892289
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``.
22902292

22912293
.. ipython:: python
22922294
:okwarning:

0 commit comments

Comments
 (0)