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.1.tar.gz
(4.4 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.1.tar.gz.
File metadata
- Download URL: statscanpy-1.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f592353ff6bc968f82ae8041149615e60846057d014af81633c795627512d55
|
|
| MD5 |
69ff74564117cec936e337803c29a606
|
|
| BLAKE2b-256 |
a7f9fbd2b4fc39ff842b2cfd00edf4298a09d8080ffd6b4e4f5ab3f1e2f750ff
|
File details
Details for the file statscanpy-1.1.1-py3-none-any.whl.
File metadata
- Download URL: statscanpy-1.1.1-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 |
007dcb19e90ce42fc08f07a50f6229dc53309923c53313e4ceba81eb5ec22fb3
|
|
| MD5 |
bb7ce3153a203bb1d89e33be9468739a
|
|
| BLAKE2b-256 |
ed8c8f074cee2ece2fc5dfe2e11056ae0ddd1945373c55f60dacbf0ff6b0dafe
|