A Python library for accessing open and community-curated datasets
Project description
librestats
A Python library for accessing open and community-curated datasets enabling data scientists, researchers and students to load, analyze and visualize reliable data in just a few lines of code.
Installation
pip install librestats
Quick Start
import librestats as ls
# 1. List available domains
print(ls.list_domains())
# ➝ ['awards', 'economy', 'sports']
# 2. List datasets inside a domain
print(ls.list_datasets("awards"))
# ➝ ['fields_medal_winners_data', 'nobel_prize']
# 3. Load a dataset in a DataFrame (df)
df = ls.load_dataset("awards", "fields_medal_winners_data")
# 4. Access data from a DataFrame (df)
ls.get(df,"Belgium","1978")
Dataset Organization
Datasets are stored in structured domains making it easy to browse, extend and contribute!
datasets/
├── awards/
│ ├── fields_medal.csv
│ ├── nobel_prize.csv
| ...
├── economy/
│ ├── gdp.csv
│ ├── inflation.csv
| ...
├── sports/
│ ├── olympics.csv
│ ├── world_cup.csv
| ...
...
With LibreStats, open data becomes more accessible, powerful and fun!
We welcome dataset contributions and feature ideas!
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
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 librestats-0.1.0.tar.gz.
File metadata
- Download URL: librestats-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ecc4f75cd25d69908358c5b560f65dd16fc05501ee4c74e95eeda1e22e32043
|
|
| MD5 |
58de7a7d647ed4e5955bb8d4ef775c2f
|
|
| BLAKE2b-256 |
3cfc057eabf05bb097629a18d1f99ffe9686c51e656b49b9d78ab1f9758e7ce9
|
File details
Details for the file librestats-0.1.0-py3-none-any.whl.
File metadata
- Download URL: librestats-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e0c6c90a3b55c111239a536fd2c8c92557964fb58faff645f1fd3f4851747f9
|
|
| MD5 |
931b493a30f320284cb4b1719bbda0ce
|
|
| BLAKE2b-256 |
811ebb9dc9b04b9cecb6539a19687eb537789e23cef9755eb21e39770ecdcb50
|