DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Get a list of categories of categorical variable (Python Pandas)
cat_arr = numpy.array(pd.Categorical(dataframe['col_name']).categories)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Get
#list
#categories
#categorical
#variable
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit