【发布时间】:2020-05-07 00:21:22
【问题描述】:
如何将此月度表(表 A)扩展为将收入分布在 30 天期间的日表(表 B)?
表 A
index Month Revenue ($)
0 1 300
1 2 330
2 3 390
(假设每个月有30天)
表 B
index Month Day Revenue ($)
0 1 1 10
1 1 2 10
2 1 3 10
... ... ... ...
30 2 1 11
31 2 2 11
... ... ... ...
60 3 1 13
... ... ... ...
89 3 30 13
【问题讨论】:
标签: python pandas data-manipulation expand days