df = pd.DataFrame({'SKU': ['10001', '10002', '10003', '10004', '10004', '10001', '10002', '10003', '10004', '10004'],
'shop': ['s001', 's001', 's001', 's001', 's001', 's002', 's002', 's002', 's002', 's002'],
'date_start': ['01.02.2022', '21.02.2022', '15.03.2022', '20.03.2022', '20.03.2022', '01.02.2022', '21.02.2022', '15.03.2022', '20.03.2022', '20.03.2022'],
'date_end': ['02.05.2022', '03.03.2022', '23.03.2022', '30.03.2022', '22.03.2022', '02.05.2022', '03.03.2022', '23.03.2022', '30.03.2022', '22.03.2022']
})
I have table like "1" on the image, and i want transforme it to the "2".
I want get date range between date_start
and date_end
in my dataframe, for every SKU
, shop
and other data.
I think I should make some date generate in new column and after that open up.