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 querying datasets via plain text search or table ID.
Installation
pip install statscanpy
Usage
Basic Usage
from statscanpy import StatsCanPy
# if isSpark==True, data returns will be in PySpark; otherwise it will return as a pandas.DataFrame
statscan = StatsCanPy(path="/data/saved/here", isSpark=True)
Getting Table ID from Table Name
await statscan.get_table_id_from_name("Household spending, Canada, regions and provinces")
Getting Table Data from Table Name
await 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
statscanpy-1.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file statscanpy-1.1.0.tar.gz.
File metadata
- Download URL: statscanpy-1.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32051c8d332a619110524a84eaa62aa5ff949d35638abefeb6d725618f7984f4
|
|
| MD5 |
77588d4868ede93a4dddb19f7d7eb0ba
|
|
| BLAKE2b-256 |
15fea1866cdac3d9aa752e5b57820325048135aca94a944713f02d7f52f218d1
|
File details
Details for the file statscanpy-1.1.0-py3-none-any.whl.
File metadata
- Download URL: statscanpy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f83d1857496a6bc5984eb414ab0c3ad36a3e4f8aafe071b86e54d5b63e68729
|
|
| MD5 |
18afad756f25a99eaca7d142c9200c9d
|
|
| BLAKE2b-256 |
cfe5e5ba91f7a198f785306b324300fc822f8866b9a7ad6b5398334aaafc4781
|