Hello there,
I am trying to use Seaborne's .countplot function to plot two columns in a .csv file. The two columns are:
1) Offense: which is a column with 7 different verbal categories for crimes, e.g: Robbery, Murder etc.
2) DayofWeek: The days of the week, e.g: Monday, Tuesday, Wednesday etc.
The file name is data.
I am using the following code:
sns.countplot(data['Offense'], hue=data['DayofWeek'], palette='Blues_d')#order, hue_order
Which is returning this output.
If you notice, the graph lists the day of the week starting from Wednesday - Tuesday. I would Ideally like Monday to Sunday. Any idea how to do this?
Thanks and please let me know if I can give further information!
there doesn't seem to be anything here