Skip to main content

A python package that provides some time series datasets available R distribution and in astsa R package.

Project description

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

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}
}

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytsdatasets-1.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

pytsdatasets-1.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file pytsdatasets-1.0.tar.gz.

File metadata

  • Download URL: pytsdatasets-1.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytsdatasets-1.0.tar.gz
Algorithm Hash digest
SHA256 f97ad371b9ea5e993194cb508007604981fc012fc522e850adc1462f138678a7
MD5 3f24dcdcb81cc10afb54a82d4733e417
BLAKE2b-256 d3dde1fca1594a6b4ad9dec6db9882b2cba81850b50cf1f945c8598837a41f71

See more details on using hashes here.

File details

Details for the file pytsdatasets-1.0-py3-none-any.whl.

File metadata

  • Download URL: pytsdatasets-1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pytsdatasets-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b403225bc248e2fc14db902464c6c87e20d740f0f22b059f2b7c7c08ef30ee2a
MD5 7c693c9fd52745b5f17ebbdcb5c5aa64
BLAKE2b-256 8c6b434830ba0f354058c5f165b9c73b37d6e620a693580c657468ff79e65a07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page