Converting many string values to categories
I applied below command and it works:
df['kategorie']=action['kategorie'].astype('category')
I have a data frame with one column full of string values. They need to be converted into categories. Due to huge amount it would be inconvenient to define categories in dictionary. Is there any other way in pandas to do that?