dataframe only keep certain columns numeric code example Example: python - find columns that are objects df.dtypes[df.dtypes == 'object']