Skip to main content

Basic package for querying & downloading StatsCan data by table name.

Project description

StatsCanPy

Basic package for querying & downloading StatsCan data by table name. Saves data into a dataframe (Pandas or PySpark).

Allows for searching datasets via plain text search or table ID.

Installation

pip install statscanpy

Usage

Basic Usage

  from statscanpy import StatsCanPy
  statscan = StatsCanPy(path="/data/saved/here", isSpark=True)

Getting Table ID from Table Name

  statscan.get_table_id_from_name("Household spending, Canada, regions and provinces")

Getting Table Data from Table Name

  statscan.get_table_from_name("Household spending, Canada, regions and provinces")

Searching for Table(s) by String

  statscan.find_table_id_from_name("GDP", limit=15)

Further Reading

Project details


Download files

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

Source Distribution

statscanpy-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statscanpy-0.1.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file statscanpy-0.1.5.tar.gz.

File metadata

  • Download URL: statscanpy-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for statscanpy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d97939e06905e51666904a567ae18d57285251aa7264f8cafa98e608c40a6d90
MD5 944dee85ad6716d4799a662fecec0f90
BLAKE2b-256 b9ae4fdbce0ee236fe7876d12f8017d1a423b60733fda9cc8e84d000cdef3329

See more details on using hashes here.

File details

Details for the file statscanpy-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: statscanpy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for statscanpy-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 640322fb407e7d7bd3010658fa43e28b27779893dfe7ca7e3820183e74e0ac53
MD5 ed2ed0592365294290678d934f5ebc21
BLAKE2b-256 357677af8bc83fae6ce0e5cb1fa83743be506b00a63dd69004c60aaae5158385

See more details on using hashes here.

Supported by

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