File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1574,7 +1574,8 @@ dtypes:
1574
1574
' float64' : np.arange(4.0 , 7.0 ),
1575
1575
' bool1' : [True , False , True ],
1576
1576
' 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))
1578
1579
df[' tdeltas' ] = df.dates.diff()
1579
1580
df[' uint64' ] = np.arange(3 , 6 ).astype(' u8' )
1580
1581
df[' other_dates' ] = pd.date_range(' 20130101' , periods = 3 ).values
@@ -1630,6 +1631,11 @@ All numpy dtypes are subclasses of ``numpy.generic``:
1630
1631
1631
1632
subdtypes(np.generic)
1632
1633
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
+
1633
1639
.. note::
1634
1640
1635
1641
The `` include`` and `` exclude`` parameters must be non- string sequences.
You can’t perform that action at this time.
0 commit comments