Home > Net >  Scatterplot with plotly vs pyplot / different approach in data table needed?
Scatterplot with plotly vs pyplot / different approach in data table needed?

Time:03-05

I'm trying to create a scatterplot in plotly, but have some difficulties. I think I need to rearrange my data table to be able to work with it, but am note sure.

This is how my data table looks:

enter image description here

alternate

  • just move data into index and define columns to be plotted
px.scatter(df.set_index("YYYY-MM-DD"), y=["Average Price", "Predictions"])
  • Related