Skip to content

DOC: Fix EX02 and SA01 in DataFrame.select_dtypes #34362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3421,6 +3421,10 @@ def select_dtypes(self, include=None, exclude=None) -> "DataFrame":
* If ``include`` and ``exclude`` have overlapping elements
* If any kind of string dtype is passed in.

See Also
--------
DataFrame.dtypes: Return Series with the data type of each column.

Notes
-----
* To select all *numeric* types, use ``np.number`` or ``'number'``
Expand Down Expand Up @@ -3468,7 +3472,7 @@ def select_dtypes(self, include=None, exclude=None) -> "DataFrame":
4 1.0
5 2.0

>>> df.select_dtypes(exclude=['int'])
>>> df.select_dtypes(exclude=['int64'])
b c
0 True 1.0
1 False 2.0
Expand Down