Pandas · Method
df.select_dtypes
Select columns from a DataFrame by their data types. Use include to keep matching dtypes and exclude to remove matching dtypes.
Last updated
Syntax
DataFrame.select_dtypes(include=None, exclude=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
DataFrame.dtypes