group your data columns by their data types
grouped = df.groupby(df.dtypes, axis = 1)
for dtype, group in grouped:
print(dtype)
print(group)
Are there any code examples left?
New code examples in category Other
grouped = df.groupby(df.dtypes, axis = 1)
for dtype, group in grouped:
print(dtype)
print(group)