DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get columns based on dtype pandas
>>df.select_dtypes(include='object').columns Index(['C', 'D'], dtype='object')
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#columns
#based
#dtype
#pandas
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit