Skip to content

Commit b96cf3c

Browse files
committed
DOC: document the new category dtype in select_dtypes
1 parent 2a3278c commit b96cf3c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/source/basics.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,8 @@ dtypes:
15741574
'float64': np.arange(4.0, 7.0),
15751575
'bool1': [True, False, True],
15761576
'bool2': [False, True, False],
1577-
'dates': pd.date_range('now', periods=3).values})
1577+
'dates': pd.date_range('now', periods=3).values}),
1578+
'category': pd.Categorical(list("ABC))
15781579
df['tdeltas'] = df.dates.diff()
15791580
df['uint64'] = np.arange(3, 6).astype('u8')
15801581
df['other_dates'] = pd.date_range('20130101', periods=3).values
@@ -1630,6 +1631,11 @@ All numpy dtypes are subclasses of ``numpy.generic``:
16301631
16311632
subdtypes(np.generic)
16321633
1634+
.. note::
1635+
1636+
Pandas also defines an additional ``category`` dtype, which is not integrated into the normal
1637+
numpy hierarchy and wont show up with the above function.
1638+
16331639
.. note::
16341640
16351641
The ``include`` and ``exclude`` parameters must be non-string sequences.

0 commit comments

Comments
 (0)