vega-datasets
A Python package for offline access to Vega datasets
What it is and what it does
vega_datasets is a data-loading utility that gives you quick access to a collection of sample datasets commonly used in data visualization and analysis. It wraps the Vega project's public dataset collection and returns them as Pandas DataFrames. The package bundles a half-dozen datasets (iris, cars, seattle-weather, and others) for offline use, and falls back to fetching additional datasets via HTTP when needed.
You import a single `data` object, call methods like `data.iris()` to get a DataFrame, and optionally inspect the source URL or local file path. The package is designed for exploratory analysis, visualization prototyping, and testing—situations where you need real but small, well-known datasets without setting up a data pipeline.
Use it for:
- Prototyping data visualizations with Altair or Matplotlib using well-known reference datasets
- Teaching or demonstrating data analysis workflows with standard, reproducible sample data
- Unit testing visualization or data-processing code with bundled datasets that require no network
- Quick exploratory analysis when you need a familiar dataset like iris or flights without downloading
- Building examples or documentation that reference canonical datasets from the Vega ecosystem
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides offline and online access to Vega datasets as Pandas DataFrames, with a half-dozen datasets bundled locally and fallback to HTTP for others.
Yes, if you need sample datasets for visualization or analysis prototyping and can tolerate that the package is no longer maintained. The low install friction, permissive license, and bundled offline data make it convenient for development and teaching. However, do not rely on it for production pipelines or expect updates to bundled datasets or compatibility with future pandas versions.
Install
vega-datasets on PyPI
pip
pip install vega-datasetsuv
uv add vega-datasetspoetry
poetry add vega-datasetsInstalling vega-datasets
Before you install
Low install friction with a single pandas dependency and a pure-Python wheel. However, the package is archived and abandoned as of 2025-11-12, with no releases since 2020-11-26; it will not receive bug fixes or security updates.
License in practice
MIT license is permissive and poses no restrictions on use, modification, or redistribution in commercial or private projects.
Quickstart
pip install vega_datasets
from vega_datasets import data
df = data.iris()
print(df.head())
Verify before relying
- Whether bundled datasets remain current with upstream Vega datasets repository
- Compatibility with pandas versions released after 2020-11-26
- Whether HTTP fallback URLs remain valid and accessible
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pandas |
| Maintenance | abandoned — 2,087 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 199,869/month — #9,699 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: vega_datasets-0.9.0-py3-none-any.whl
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
palmerpenguinsLoads the Palmer penguins dataset—344…
permissive · top 15,000 on PyPI
vegafusionVegaFusion provides Rust-backed tools for…
permissive · top 15,000 on PyPI
vl-convert-pythonConverts Vega-Lite chart specifications to…
permissive · top 5,000 on PyPI
ucimlrepoImports datasets from the UC Irvine Machine…
permissive · top 15,000 on PyPI
datazetsDatazets provides a simple interface to…
permissive · top 15,000 on PyPI
altairAltair is a declarative Python library for…
permissive · top 1,000 on PyPI
facets-overviewGenerates summary statistics for dataset…
permissive · top 15,000 on PyPI
datasetsLoads and preprocesses datasets from the…
permissive · top 1,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI