In this post, we will learn how to use Pandas to select columns based on their datatypes. For example, if we have Pandas dataframe with multiple data types, like numeric and object and we will learn how to select columns that are numeric. We can use Pandas’ seclect_dtypes() function and specify which data type to […]
Pandas select_dtypes
How To Select Columns by Data Type in Pandas?
Often when you are working with bigger dataframe and doing some data cleaning or exploratory data analysis, you might want to select columns of Pandas dataframe by their data types. For example, you might want to quickly select columns that are numerical in type and visualize their summary data. Or you might want to select […]