statsmodels.tsa.tests.test_x13.dates_from_range

statsmodels.tsa.tests.test_x13.dates_from_range(start, end=None, length=None)[source]

Turns a sequence of date strings and returns a list of datetime.

Parameters:

start : str

The first abbreviated date, for instance, ‘1965q1’ or ‘1965m1’

end : str, optional

The last abbreviated date if length is None.

length : int, optional

The length of the returned array of end is None.

Returns:

date_list : array

A list of datetime types.

Examples

>>> import statsmodels.api as sm
>>> dates = sm.tsa.datetools.date_range('1960m1', length=nobs)