下面是我的数据集的外观:
S.No, Customer, Min Date, Max Date
1, Cus1 , 2015-04-01, 2018-12-01
2, Cus2 , 2015-01-01, 2017-11-01
我想为每个客户在最小日期和最大日期之间创建更多日期值。
以下是预期的输出:
S.No, Customer, Min Date, Max Date , Date
1, Cus1 , 2015-04-01, 2018-12-01,2015-04-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-05-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-06-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-07-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-08-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-09-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-10-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-11-01
1, Cus1 , 2015-04-01, 2018-12-01,2015-12-01
1, Cus1 , 2015-04-01, 2018-12-01,2016-01-01
1, Cus1 , 2015-04-01, 2018-12-01,2016-02-01
1, Cus1 , 2015-04-01, 2018-12-01,2016-03-01
...........................................
...........................................
1, Cus1 , 2015-04-01, 2018-12-01,2018-01-12
任何线索都将受到高度赞赏。
谢谢。