I am trying to plot my project's data. The plot data is represented as the Index [0,1,2,3,4]. But I want to plot the data as index [3,0,1,4,5].
xx = df_new.groupby('Data' ,as_index=False).count().index
values = df_new.groupby('Data').size().values
plt.figure(figsize=(10,5))
plt.bar(xx ,values)
here is my data plot graph:
Is there any way to do this? Thank you.


