Skip to content

Commit c46dee9

Browse files
committed
update doc
1 parent 85d4980 commit c46dee9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/source/user_guide/io.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,14 @@ When using ``dtype=CategoricalDtype``, "unexpected" values outside of
499499
``dtype.categories`` are treated as missing values.
500500

501501
.. ipython:: python
502+
:okwarning:
502503
503504
dtype = CategoricalDtype(["a", "b", "d"]) # No 'c'
504505
pd.read_csv(StringIO(data), dtype={"col1": dtype}).col1
505506
506-
This matches the behavior of :meth:`Categorical.set_categories`.
507+
This matches the behavior of :meth:`Categorical.set_categories`. This behavior is
508+
deprecated. In a future version, the presence of non-NA values that are not
509+
among the specified categories will raise.
507510

508511
.. note::
509512

0 commit comments

Comments
 (0)