I want to get a cartesian product of dates. I have following dates ( months) in data set
201801 201802
as an output i want as
I want to get a cartesian product of dates. I have following dates ( months) in data set
201801 201802
as an output i want as
Copyright © 2021 Jogjafile Inc.
You can use
itertools.product
. Let L be your columndf['dates']
for example -Or you could simply use a list comprehension to iterate l 2 times.