Previous topic

scikits.timeseries.DateArray.find_dates

Next topic

scikits.timeseries.DateArray.tofloat

This Page

scikits.timeseries.DateArray.tovalue

DateArray.tovalue()

Converts the instance to a ndarray of integers.

The values correspond to the integer representation of the underlying Date objects, as controlled by the frequency attribute.

Examples

>>> d = ts.date_array(start_date=ts.Date('M', '2001-01'), length=5)
>>> d.tovalues()
array([24001, 24002, 24003, 24004, 24005])