If I have a dataframe with the following columns:
1. NAME object 2. On_Time object
If you want a list of only the object columns you could do:
non_numerics = [x for x in df.columns \ if not (df[x].dtype == np.float64 \ or df[x].dtype == np.int64)]
and then if you want to get another list of only the numerics:
numerics = [x for x in df.columns if x not in non_numerics]