Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Extract categorical data features

s = (df.dtypes == 'object')
object_cols = list(s[s].index)
print("Categorical variables:")
print(object_cols)
Source by analyticsindiamag.com #
 
PREVIOUS NEXT
Tagged: #Extract #categorical #data #features
ADD COMMENT
Topic
Name
9+7 =