Python Time Series Datasets (pytsdatasets)
The pytsdatasets is a python package that provides some time series datasets available R distribution and in astsa R package.
Datasets are in pandas DataFrame format.
This package could be useful for educational and/or scientific purposes.
Author
- Mario Juez-Gil <mariojg@ubu.es> Department of Computer Science - Universidad de Burgos - ADMIRABLE Research Group
Installation
This package can be installed using PIP.
pip install pytsdatasets
Basic Usage
For example, loading jj dataset is as simple as:
import pytsdatasets as tsds
tsds.jj.info()
# >> <class 'pandas.core.frame.DataFrame'>
# PeriodIndex: 84 entries, 1960Q1 to 1980Q4
# Freq: Q-DEC
# Data columns (total 1 columns):
# # Column Non-Null Count Dtype
# --- ------ -------------- -----
# 0 data 84 non-null float64
# dtypes: float64(1)
# memory usage: 1.3 KB
Available datasets
The available datasets are:
- airpassengers: The classic Box & Jenkins airline data. Monthly totals of international airline passengers, 1949 to 1960.
- co2: Monthly mean carbon dioxide (in ppm) measured at Mauna Loa Observatory, Hawaii.
- globaltemp: Global mean land-ocean temperature deviations (from 1951-1980 average), measured in degrees centigrade, for the years 1880-2015. This was an update of gtemp, but gtemp_land and gtemp_ocean are the most recent updates.
- jj: Johnson and Johnson quarterly earnings per share, 84 quarters (21 years) measured from the first quarter of 1960 to the last quarter of 1980.
- uschange: Percentage changes in quarterly personal consumption expenditure, personal disposable income, production, savings and the unemployment rate for the US, 1960 to 2016.
- h02: Total monthly scripts for pharmaceutical products falling under ATC code H02, as recorded by the Australian Health Insurance Commission. Measured in millions of scripts.
Contribute
Feel free to submit any pull requests 😊
Acknowlegments
This work was supported by the pre-doctoral grant (EDU/1100/2017) of the Consejería de Educación of the Junta de Castilla y León, Spain, and the European Social Fund.
License
This work is licensed under GNU GPL v3.
Citation policy
Please, cite this work as:
@software{pytsdatasets,
author = {Mario Juez-Gil},
title = {{mjuez/pytsdatasets}},
month = oct,
year = 2020,
publisher = {Zenodo},
version = {v1.0},
doi = {10.5281/zenodo.4063496},
url = {https://doi.org/10.5281/zenodo.4063496}
}
Metadata
Release files for pytsdatasets 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytsdatasets-1.0.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytsdatasets-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.6 kB
Release files / pytsdatasets-1.0.tar.gz
| Download URL | pytsdatasets-1.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f97ad371b9ea5e993194cb508007604981fc012fc522e850adc1462f138678a7
|
|
BLAKE2b-256 checksum How to use checksums |
d3dde1fca1594a6b4ad9dec6db9882b2cba81850b50cf1f945c8598837a41f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2
|
Release files / pytsdatasets-1.0-py3-none-any.whl
| Download URL | pytsdatasets-1.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b403225bc248e2fc14db902464c6c87e20d740f0f22b059f2b7c7c08ef30ee2a
|
|
BLAKE2b-256 checksum How to use checksums |
8c6b434830ba0f354058c5f165b9c73b37d6e620a693580c657468ff79e65a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2
|