Код: Выделить всё
my_dic = {'stats': {'apr': 23083904, 'may': 16786816, 'june': 26197936}}
my_df = pd.DataFrame(my_dic)
< /code>
вот как я его настраиваю: < /p>
ax = my_df['stats'].plot(kind='bar', legend=False)
ax.set_xlabel("Month", fontsize=12)
ax.set_ylabel("Stats", fontsize=12)
ax.ticklabel_format(useOffset=False) #AttributeError: This method only works with the ScalarFormatter.
plt.show()
< /p>
Я хотел бы контролировать научную нотацию. Я попытался подавить его по этой строке, как было предложено в других вопросах plt.ticklabel_format (useOffset = false) , но я получаю эту ошибку обратно -
Код: Выделить всё
AttributeError: This method only works with the ScalarFormatter
Подробнее здесь: https://stackoverflow.com/questions/467 ... matplotlib