Module macrobond_data_api.common.types.series_observation_history

Classes

class SeriesObservationHistory

The history of changes of an observation

Instance variables

var observation_date : datetime.datetime

The date of the observation

var time_stamps : Sequence[Optional[datetime.datetime]]

A tuple of timestamps of when the historical values were recorded. The first timestamp may be null if the time of the original is unknown.

var values : Sequence[Optional[float]]

The historical values of the observation or an empty tuple if there are no recorded values for the specified date.

Methods

def to_dict(self) ‑> Dict[str, Any]
def to_pd_data_frame(self) ‑> DataFrame
def to_pd_series(self, name: str = None) ‑> Series