Module macrobond_data_api.common.types.revision_info
Classes
class RevisionInfo-
Information about revisions of a time series.
Instance variables
var error_message : str-
Contains an error message in case of an error.
var has_revisions : bool-
Returns True if any revisions have been stored for this series.
var name : str-
The name of the series
var stores_revisions : bool-
Returns True if revision history is stored for this series.
var time_stamp_of_first_revision : datetime.datetime | None-
The timestamp of the first stored revision.
var time_stamp_of_last_revision : datetime.datetime | None-
The timestamps of the last strored revision.
var vintage_time_stamps : Sequence[datetime.datetime]-
A tuple with the timestams of all stored revisions in time order with the oldest first.
Methods
def to_dict(self) ‑> RevisionInfoDict-
Returns a dictionary with the information of the series revisions.
def to_pd_data_frame(self) ‑> DataFrame-
Returns a Pandas dataframe with the information about the series revisions.
class RevisionInfoDict-
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Ancestors
- builtins.dict
Class variables
var error_message : strvar has_revisions : boolvar name : strvar stores_revisions : boolvar time_stamp_of_first_revision : datetime.datetime | Nonevar time_stamp_of_last_revision : datetime.datetime | Nonevar vintage_time_stamps : Sequence[datetime.datetime]