Search
 
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
Name
9+7 =