Skip to content
Advertisement

how to convert Exponential value into Int in Graph

plt.figure(figsize=(28,8))
plt.xticks(rotation=90)
a = df2.groupby('Province/State')['Confirmed'].sum().astype('int64')
print(a)
a.plot(kind = 'bar')

When I am trying to create graph for above code It’s converting into the Exponential. How can I prevent That?

Advertisement

Answer

I do not know the size of your data set. But you can try this.

plt.ticklabel_format(useOffset=False,style='plain', axis='y')
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement