我正在嘗試在情節中創建一個散點圖,但有一些困難。我想我需要重新排列我的資料表才能使用它,但我確定。
這是我的資料表的樣子:

備用
- 只需將資料移動到索引中并定義要繪制的列
px.scatter(df.set_index("YYYY-MM-DD"), y=["Average Price", "Predictions"])
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/438504.html
標籤:Python matplotlib 情节地
