Answers for "group your data columns by their data types"

0

group your data columns by their data types

grouped = df.groupby(df.dtypes, axis = 1)

for dtype, group in grouped:
    print(dtype)
    print(group)
Posted by: Guest on April-12-2021

Code answers related to "group your data columns by their data types"

Browse Popular Code Answers by Language