0

I have been having Problems with price column every time I try to plot graphs on it and all my graphs have this problem and I want to change it to its actual values instead of decimals

Example of of linear graph

This is the dataframe containing the information of the dataset

Train is the name of dataframe.

Column contains the selected

columns = ['Id', 'year', 'distance_travelled(kms)', 'brand_rank', 'car_age']

for i in columns:
plt.scatter(train[i], y, label='Actual')
plt.xlabel(i)
plt.ylabel('price')
plt.show()
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • Welcome to SO! Please post a [minimum reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). Please [do not post images of data/code/errors](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors-when-asking-a-question). – medium-dimensional Oct 25 '22 at 06:57
  • The issue is that some prices are orders of magnitude larger than others. So, matplotlib is switching to linear scale with the exponent 1e7 here. Please check if [this](https://stackoverflow.com/questions/40511476/how-to-properly-use-funcformatterfunc) helps. – medium-dimensional Oct 25 '22 at 07:57

0 Answers0