datazets
Datazets is a python package to import well known example data sets.
What it is and what it does
Datazets is a Python package that centralizes access to a curated collection of example datasets commonly used in machine learning, data science, and educational contexts. Instead of hunting down datasets from multiple sources or generating synthetic data, you import datazets and call a single function to load datasets like titanic, iris, mnist, or bitcoin directly into a pandas DataFrame. The package wraps network retrieval and parsing, so you get clean, ready-to-use data in one line.
The library covers diverse data types—continuous time series (stock prices, bitcoin), discrete synthetic data (for probability modeling), text data (malicious URLs for cybersecurity), network graphs (character relationships from fiction), images (handwritten digits, faces), and mixed tabular datasets (census, student performance, predictive maintenance). It depends on numpy, pandas, and requests to handle data loading and transformation, and supports current Python versions. The package is aimed at researchers, educators, and practitioners who need standard benchmark datasets for prototyping, testing, or teaching without the overhead of data collection.
Use it for:
- Quickly prototype machine learning models using well-known datasets like titanic or breast_cancer without manual data sourcing
- Teach data science concepts with standardized datasets that students can reproduce across different environments
- Benchmark classification or regression algorithms against established datasets for fair performance comparison
- Test data pipelines and ETL workflows with diverse data types (images, text, tabular, network) in one package
- Develop cybersecurity models using labeled malicious URL datasets for phishing and malware detection
- Experiment with time-series forecasting using historical price data (bitcoin, gas prices, stock prices)
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Datazets provides a simple interface to download and import well-known example datasets for machine learning, data science, and educational purposes without manual data collection.
Yes. Datazets is a lightweight, actively maintained utility with permissive licensing and no known vulnerabilities. It solves a genuine friction point—sourcing standard datasets—and has low install overhead. Install it if you regularly prototype with example data or teach data science; skip it if you work exclusively with proprietary or custom datasets.
Install
datazets on PyPI
pip
pip install datazetsuv
uv add datazetspoetry
poetry add datazetsInstalling datazets
Before you install
Low friction installation with three common dependencies (numpy, pandas, requests). Active maintenance with recent releases; repo is current as of 2026-07-12.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both commercial and personal projects.
Quickstart
pip install datazets
import datazets as dz
df = dz.get('titanic')
Verify before relying
- Whether datasets are automatically cached locally or re-downloaded on each call
- Network requirements and data transfer sizes for large datasets like malicious_phish (651191 rows)
- Offline availability or fallback behavior when network is unavailable
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — numpy, pandas, requests |
| Maintenance | actively maintained — 33 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 105,771/month — #12,681 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: datazets-1.1.4-py3-none-any.whl
Keywords: Python, datasets, data, example datasets, sample data, machine learning, data science, import, open data, benchmark, testing, education, research
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
mlcroissantValidates and loads datasets described in the…
unclear · top 15,000 on PyPI
ucimlrepoImports datasets from the UC Irvine Machine…
permissive · top 15,000 on PyPI
vega-datasetsProvides offline and online access to Vega…
permissive · top 15,000 on PyPI
openmlOpenML-Python provides a Python interface to…
permissive · top 15,000 on PyPI
palmerpenguinsLoads the Palmer penguins dataset—344…
permissive · top 15,000 on PyPI
opendatalabOpenDataLab Python SDK provides programmatic…
permissive · top 15,000 on PyPI
tsdbTSDB downloads and loads 173 open-source…
permissive · top 15,000 on PyPI
ogbOGB provides standardized benchmark datasets,…
permissive · top 15,000 on PyPI
ydata-profilingGenerates comprehensive exploratory data…
permissive · top 5,000 on PyPI
webdatasetWebDataset reads and streams large-scale…
permissive · top 5,000 on PyPI