Previous topic

scikits.timeseries.TimeSeries.compressed

Next topic

scikits.timeseries.adjust_endpoints

This Page

scikits.timeseries.TimeSeries.fill_missing_dates

TimeSeries.fill_missing_dates(data, dates=None, freq=None, fill_value=None)

Finds and fills the missing dates in a time series. The data corresponding to the initially missing dates are masked, or filled to fill_value.

Parameters:

data : {TimeSeries, ndarray}

Initial array of data.

dates : {DateArray} (optional)

Initial array of dates. Specify this if you are passing a plain ndarray for the data instead of a TimeSeries.

freq : {freq_spec} (optional)

Frequency of result. If not specified, the initial frequency is used.

fill_value : {scalar of type data.dtype} (optional)

Default value for missing data. If Not specified, the data are just masked.