From a2db6d3798f1e45256c9bb8f3239be6a95c19d46 Mon Sep 17 00:00:00 2001 From: Farhan Reynaldo Date: Mon, 25 May 2020 14:52:21 +0700 Subject: [PATCH] DOC: Fix EX02 and SA01 in DataFrame.select_dtypes --- pandas/core/frame.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6532d084aa6fa..9abc6e4245d81 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -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'`` @@ -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