In the comments it is said that :
the only two types in the dataset are integer and object…
However the output is :
array([dtype(‘int64’), dtype(‘O’)], dtype=object)
so it seems that there are 3 types ? How to understand this output ?
Is there another way to sort the numerical columns than manually with :
numerical_columns = [“age”, “capital-gain”, “capital-loss”, “hours-per-week”]
Thanks