From 23b7847ec05500b4580eb0b6e3dab236ce8d88c5 Mon Sep 17 00:00:00 2001 From: fatslow Date: Wed, 26 Jun 2024 23:35:34 +0200 Subject: [PATCH] DOC: fix Raises TypeError if any kind of string dtype is passed in --- pandas/core/frame.py | 1 + 1 file changed, 1 insertion(+) 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