Built-in Datasets¶
dynaris ships with six classic time series datasets for examples and testing.
Each loader returns a pandas Series with an appropriate index.
Dataset |
Loader |
N |
Frequency |
Domain |
|---|---|---|---|---|
Nile river flow |
|
100 |
Annual |
Hydrology |
Airline passengers |
|
144 |
Monthly |
Transportation |
Lynx population |
|
114 |
Annual |
Ecology |
Sunspot numbers |
|
288 |
Annual |
Astronomy |
Global temperature |
|
144 |
Annual |
Climate |
US GDP growth |
|
319 |
Quarterly |
Economics |
Usage¶
from dynaris.datasets import load_airline
y = load_airline()
print(y.head())
print(f"Shape: {y.shape}, Index: {y.index[0]} to {y.index[-1]}")
All loaders accept no arguments and return a pandas Series. The index
is a DatetimeIndex for monthly/quarterly data or an integer index for
annual data.
See Datasets for the full API reference.