intent: pandas plot dataframe barplot with colors by category
rewritten_intent: make a barplot of data in column `group` of dataframe `df` colour-coded according to list `color`
snippet: df['group'].plot(kind='bar', color=['r', 'g', 'b', 'r', 'g', 'b', 'r'])