使用plotly.express折线图,线是否以奇怪的顺序连接?如何修复?

2024-05-14 01:11:52 发布

您现在位置:Python中文网/ 问答频道 /正文

enter image description here

拥有数据的df,做:

fig=px.line(df, x='date', y='px', color='description') 

下图的渲染方式与所附图像相同。这是预期的行为吗?如何使点只按时间顺序连接


Tags: 数据图像dfdate顺序方式line时间