How do I create a repeating date range? For example, I would like the following to repeat three times
rng = pd.date_range('1/1/2011', periods=3, freq='W')
Expected output:
2011-01-02
2011-01-09
2011-01-16
2011-01-02
2011-01-09
2011-01-16
2011-01-02
2011-01-09
2011-01-16
I have tried:
rng = pd.concat([rng] * 3, axis=1) #which does not work with dates
rng = np.repeat(rng,3) #this repeats each date three times instead of the list three times?