-1

I wrote the following code to create a bar plot:

ords_prods_merge['order_dow'].value_counts().plot.bar()

The output is a barchart which shows e.g. le6 at the y axis. I want "normal" numbers there, e.g. 6000000.

Can I write something into my line of code to make that happen?

Thanks!

DataVE
  • 59
  • 8
  • Don't know of a by-default method of doing that. But customizing tick labels is fairly easy. Refer to this https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xticks.html. – Abdur Rakib Nov 22 '21 at 10:35

1 Answers1

0
from matplotlib import pyplot as plt
plt.bar(ords_prods_merge['order_dow'].value_counts())
plt.ticklabel_format(style='plain')    # prevents scientific notation
plt.show()