Skip to main content

A curated collection of datasets focused on the United States for data analysis, education, and research

Project description

usdatasets

License: MIT Python 3.8+

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usdatasets-0.1.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

usdatasets-0.1.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file usdatasets-0.1.0.tar.gz.

File metadata

  • Download URL: usdatasets-0.1.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for usdatasets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae8bff99ab74f25f293eb0751b313889c00a7af229bb7ce3d2afb29e229dc25e
MD5 44f84f1b84cd8fb05487f51e60a7495c
BLAKE2b-256 469233b48d31419e9b0a7c9f1672886a8b777b6800e5ba51f680e51dc839e59a

See more details on using hashes here.

File details

Details for the file usdatasets-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: usdatasets-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for usdatasets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89c992c4ff8a69de39c028d2d57d882ef54a840f601e911a1e429ba5d300890d
MD5 c7ab10cf51a026236f0ad473a2a65f14
BLAKE2b-256 e7785b096eb2933c4720c966bf7a6089d27b84bc229b72223afe585f926ece57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page