skillfed

vega-datasets

A Python package for offline access to Vega datasets

vega-datasets v0.9.0 199.9K downloads/30d#9,699 on PyPI189
Permissive license MIT Abandoned released

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-datasets

uv

uv add vega-datasets

poetry

poetry add vega-datasets

Installing 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

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

vega datasets pythonload vega data offlineiris dataset pandassample datasets for visualizationvega-datasets packagebundled datasets pandasvisualization sample data
sample-datavisualizationabandoned

More Information Analysis packages