I have fed the following CSV file into iPython Notebook:
public = pd.read_csv(\"categories.csv\") public
I\'ve also imported pandas as pd, nump
Sometimes, you just have to use a for-loop:
for col in ['parks', 'playgrounds', 'sports', 'roading']: public[col] = public[col].astype('category')