You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/user_guide/basics.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2378,6 +2378,10 @@ To select string columns include ``str``:
2378
2378
2379
2379
df.select_dtypes(include=[str])
2380
2380
2381
+
.. note::
2382
+
2383
+
This is a change in pandas 3.0. Previously strings were stored in ``object`` dtype columns, so would be selected with ``include=[object]``. See https://pandas.pydata.org/docs/user_guide/migration-3-strings.html#hardcoded-use-of-object-dtype.
2384
+
2381
2385
To see all the child dtypes of a generic ``dtype`` like ``numpy.number`` you
2382
2386
can define a function that returns a tree of child dtypes:
0 commit comments