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[datetime.datetime | None]-
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[float | None]-
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) ‑> DataFramedef to_pd_series(self, name: str = None) ‑> Series