diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5b156cd75e373..fab798dd617b7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4782,6 +4782,7 @@ def select_dtypes(self, include=None, exclude=None) -> DataFrame: ValueError * If both of ``include`` and ``exclude`` are empty * If ``include`` and ``exclude`` have overlapping elements + TypeError * If any kind of string dtype is passed in. See Also