I would like to get a list or a series of n dates between the start and end dates (including these boundaries), but
dateIndex=pd.date_range(start=dt.datetime.today().date(), end=pd.to_datetime(expiry).date(), periods=n)
Results with ValueError: must indicate two beginnings, an end, or periods. I cannot use the argument freq = Freq, because my date range will not be uniform - it can be from a month to two years, so I would like to have the same time intervals with n points.
Thanks!
python pandas datetime time-series
arosner09
source share