usdatasets
The usdatasets package provides a comprehensive collection of datasets focused on the United States, designed for data analysis, education, and research in Python. It includes extensive data on topics such as crime and public safety, political history, economic indicators, education, public health, natural disasters, demographics, infrastructure, sports, and cultural events.
The collection covers diverse data types, including historical political records, crime statistics, wage and income data, election results, mortality rates, presidential information, educational metrics, environmental incidents, asylum records, firefighter fatalities, terrorist activity, NFL statistics, stock market data, and entertainment industry records.
Installation
You can install the usdatasets package from PyPI:
pip install usdatasets
Usage
import usdatasets as usd
# List all available datasets
datasets = usd.list_datasets()
print(datasets)
# Load a specific dataset
df = usd.load_dataset('crime_and_incarceration_by_state')
print(df.head())
📊 Some Available Datasets
Economy & Finance
| Dataset | Description | Period |
|---|---|---|
wages_by_education |
Hourly wages by education level and gender | 1973-2022 |
college_school_wage |
Wage comparison: college vs high school | 1973-2022 |
counties_per_capita_income |
Counties by per capita income | Current |
google_stock_price |
Google/Alphabet stock price data | Historical |
The usdatasets library is released under the MIT License, allowing free use for both commercial and non-commercial purposes.
Release files for usdatasets 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| usdatasets-0.1.0.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usdatasets-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.7 MB
Release files / usdatasets-0.1.0.tar.gz
| Download URL | usdatasets-0.1.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae8bff99ab74f25f293eb0751b313889c00a7af229bb7ce3d2afb29e229dc25e
|
|
BLAKE2b-256 checksum How to use checksums |
469233b48d31419e9b0a7c9f1672886a8b777b6800e5ba51f680e51dc839e59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / usdatasets-0.1.0-py3-none-any.whl
| Download URL | usdatasets-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89c992c4ff8a69de39c028d2d57d882ef54a840f601e911a1e429ba5d300890d
|
|
BLAKE2b-256 checksum How to use checksums |
e7785b096eb2933c4720c966bf7a6089d27b84bc229b72223afe585f926ece57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|