【发布时间】:2021-12-07 15:16:24
【问题描述】:
我有两个日期列,对应的美元在另外两个列中关联。我想将它绘制在单个图表中,但是对于 python 中需要的数据准备。
实际表格
| StartDate | start$ | EndDate | End$ |
|---|---|---|---|
| 5 June | 500 | 7 June | 300 |
| 7 June | 600 | 10 June | 550 |
| 8 june | 900 | 10 June | 600 |
预期表
| PythonDate | start$ | End$ |
|---|---|---|
| 5 June | 500 | 0 |
| 6 june | 0 | 0 |
| 7 June | 600 | 300 |
| 8 June | 900 | 0 |
| 9 June | 0 | 0 |
| 10June | 0 | 1150 |
Python 中的任何解决方案?
【问题讨论】: