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
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
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.0.0.tar.gz
(4.2 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.0.0.tar.gz.
File metadata
- Download URL: statscanpy-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3c798fd57643f7e731f414fca9d39bcecaebbe184b7a14ac5c959b15fcf7a9f
|
|
| MD5 |
6fb2c2f4cff8abc660b1dccf3b4668b1
|
|
| BLAKE2b-256 |
5d1058de0ff96b262b88751500bdc3975a27a36a12b26d14d86b62ceafd86c68
|
File details
Details for the file statscanpy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: statscanpy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 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 |
7f3ca02b89a1dd671df41e5fa708aa61a880753285b53ca62484d932df15625e
|
|
| MD5 |
afbcca23f13e376026c3fc5081f0482e
|
|
| BLAKE2b-256 |
c0a2c265638920643a93f05fd486901b74d8223dde329ec555c8637d0dafffe2
|