Y-axis unordered on CSV import (Plotly Express)

HI @CEr , welcome to the forums.

EDIT:

The problem with your CSV file is, that the decimal point is a comma ā€œ,ā€ instead of a point ā€œ.ā€ As of now, the values are interpreted as objects instead of float. You can check this using df.info() in your jupyter Notebook. You have two options:

  • You could use the decimal parameter when importing your *.csv without having to change the *.csv itself: pd.read_csv('C:\\Users\\cer\\plotly_tests\\20221022\\RT_GN6021_VGL.csv', sep=';', decimal=',')

  • Second option would be to replace all commas with a point in your *.csv

As for IDE or not: I really like Jupyter Notebooks for trying stuff, but I prefer an IDE sucha as Pycharm for coding.

2 Likes