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
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.0.1.tar.gz
(4.1 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.1.tar.gz.
File metadata
- Download URL: statscanpy-1.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52496f24b42dcb6d275a291bb9819b519df0278d62b07d3c732eaa8fd95c7e82
|
|
| MD5 |
7d85d8dcbfe65485769e1a6ceba0dd9d
|
|
| BLAKE2b-256 |
df7f3548266be5ac4b3830c6a2a4ab4e2071fc7296ca59d3b8ae5a5bad97e5fb
|
File details
Details for the file statscanpy-1.0.1-py3-none-any.whl.
File metadata
- Download URL: statscanpy-1.0.1-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 |
7d9eb9e2034c4dca36b97565eaa7548b826e7f02ccd7db5b413170397e04f26a
|
|
| MD5 |
21f0eeabe3aeeab4ce15622225c4339c
|
|
| BLAKE2b-256 |
f83122a4d1aebd61ad88ca926b603cd0f47fdeacadaaf23defe382970500a95b
|