diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b715e526e0f33..b36791e6e1dd1 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4793,6 +4793,10 @@ def select_dtypes(self, include=None, exclude=None) -> DataFrame: """ Return a subset of the DataFrame's columns based on the column dtypes. + This method allows for filtering columns based on their data types. + It is useful when working with heterogeneous DataFrames where operations + need to be performed on a specific subset of data types. + Parameters ---------- include, exclude : scalar or list-like