plot categorical data pandas code example
Example 1: plot categorical data matplotlib
df['colour'].value_counts().plot(kind='bar')
Example 2: how to store categorical variables in separate dataframe
df.loc[:,df.dtypes==np.object]
df['colour'].value_counts().plot(kind='bar')
df.loc[:,df.dtypes==np.object]