pyacs.gts.lib.primitive.n_obs module

pyacs.gts.lib.primitive.n_obs.n_obs(self, date)[source]

Return the number of available observations for the given date or period.

Parameters:

date (str or list) – Date or period. Formats: decimal year or pandas-style (e.g. ‘2018-01-01’, [‘2018-01-01’,’2018-02-01’], or [2019., 2019.5] for decimal year).

Returns:

Number of observations in the current time series for the given date/period.

Return type:

int

Examples

A specific day: ts.RIOP.n_obs(‘2018-01-01’) A period: ts.RIOP.n_obs([‘2018-01-01’,’2018-02-01’]) A period in decimal year: ts.RIOP.n_obs([2019., 2019.5])