Skip to content

Commit 576a9c6

Browse files
committed
Fix user guide errors
1 parent 3716ad2 commit 576a9c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/user_guide/categorical.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ This conversion is likewise done column by column:
130130
df_cat['B']
131131
132132
Dummy / indicator / one-hot encoded variables
133-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134134

135135
Some operations, like regression and classification,
136136
encodes a single categorical variable as a column for each category,
137137
with each row having False in all but one column (True).
138138
These are called dummy variables, or one-hot encoding.
139-
:class:`pandas.Categorical`s can easily be converted to and from such an encoding:
139+
:class:`pandas.Categorical` objects can easily be converted to and from such an encoding:
140140

141141
.. ipython:: python
142142

doc/source/user_guide/reshaping.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ To choose another dtype, use the ``dtype`` argument:
666666
.. versionadded:: 0.23.0
667667

668668
For converting :class:`pandas.Categorical` objects directly
669-
to and from ``DataFrame``s of dummy variables, see
670-
:meth:`pandas.Categorical.to_dummies`and :meth:`pandas.Categorical.from_dummies`.
669+
to and from a ``DataFrame`` of dummy variables, see
670+
:meth:`pandas.Categorical.to_dummies` and :meth:`pandas.Categorical.from_dummies`.
671671

672672
.. versionadded:: 1.1.0
673673

0 commit comments

Comments
 (0)