I have a pandas DataFrame with a mixture of float64 and objects. I'd like to reorder the columns, so that all ints are at the start, and then all floats are at the end. Is there an easy way to do this?
Dataframe columns (currently):
Age Sex Weight BMI Job
Desired:
Age BMI Weight Sex Job
(Age, BMI, Weight are all Int64, Sex, Job are objects)
My actual code has >100 similar features that I'd like to order this way