Skip to content

Commit 7e4bc37

Browse files
committed
DOC: Fixes import of StringIO
From conversations in pandas-dev#24273, I found that everywhere in pandas documentation should use `io` and not `compat`.
1 parent 67ff7ae commit 7e4bc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/whatsnew/v0.18.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Changes in ``read_csv`` exceptions
479479
.. ipython:: python
480480
:suppress:
481481
482-
from pandas.compat import StringIO
482+
from io import StringIO
483483
484484
In order to standardize the ``read_csv`` API for both the ``c`` and ``python`` engines, both will now raise an
485485
``EmptyDataError``, a subclass of ``ValueError``, in response to empty columns or header (:issue:`12493`, :issue:`12506`)

0 commit comments

Comments
 (0)