DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
group your data columns by their data types
grouped = df.groupby(df.dtypes, axis = 1) for dtype, group in grouped: print(dtype) print(group)
PREVIOUS
NEXT
Tagged:
#group
#data
#columns
#data
#types
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit