gistlib
other python categories
categorical code snippets in python
transform column of dataframe to categorical in python
gistlib
by LogSnag