Module macrobond_data_api.common.types.series

Classes

class Series

Represents a Macrobond time series.

Ancestors

Subclasses

Instance variables

var dates : Sequence[datetime.datetime]

The dates of the periods corresponding to the values The number of dates is the same as the number of Series.values.

var values : Sequence[Optional[float]]

The values of the series. The number of values is the same as the number of Series.dates.

var values_metadata : Optional[ValuesMetadata]

The meta data for the values.

Methods

def to_dict(self) ‑> Dict[str, Any]

The series content as a dictionary of "Name", "Values" and "Dates".

def values_to_pd_data_frame(self) ‑> DataFrame

A Pandas DataFrame with the with a series called "date" and one called "value"

Inherited members