Skip to content

Commit 4f0c437

Browse files
committed
add docstring for select_dtypes
1 parent 52cffa3 commit 4f0c437

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/frame.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2432,8 +2432,8 @@ def eval(self, expr, inplace=False, **kwargs):
24322432
return _eval(expr, inplace=inplace, **kwargs)
24332433

24342434
def select_dtypes(self, include=None, exclude=None):
2435-
"""Return a subset of a DataFrame including/excluding columns based on
2436-
their ``dtype``.
2435+
"""
2436+
Return a subset of the DataFrame based on the column dtypes.
24372437
24382438
Parameters
24392439
----------
@@ -2483,7 +2483,7 @@ def select_dtypes(self, include=None, exclude=None):
24832483
4 -0.9703 True 1.0
24842484
5 -1.2094 False 2.0
24852485
>>> df.select_dtypes(include='bool')
2486-
c
2486+
b
24872487
0 True
24882488
1 False
24892489
2 True

0 commit comments

Comments
 (0)