Skip to content

anytrellis.datasets

Small, well-known datasets for the examples: load("barley").

name rows columns
anscombe 44 dataset, x, y
barley 120 site, variety, year, yield
cars 406 name, mpg, cylinders, displacement, horsepower, weight, acceleration, year, origin
gapminder 693 country, region, year, pop, life_expect, fertility
penguins 344 species, island, bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, sex
seattle_weather 1461 date, precipitation, temp_max, temp_min, wind, weather

anscombe is Anscombe's quartet; barley is Immer et al. (1934), made famous by Cleveland (1993); cars is the classic auto-mpg data; gapminder runs from 1955 to 2005; penguins are the Palmer penguins.

cars is the UCI Machine Learning Repository's Auto MPG (CC BY 4.0); the others are taken from vega-datasets 2.8.0, with snake_case column names and readable categories (gapminder.region). Each keeps its source's licence: see SOURCES.md here. The gapminder data is based on free material from GAPMINDER.ORG, CC-BY LICENSE.

load

load(name: str, backend: Backend | None = None) -> Any

Dataset name as a table of backend (default: Polars, else pandas, else PyArrow, whichever is installed).

Sources and licences

The datasets are not covered by anytrellis's MIT licence: each keeps the terms of its source.

dataset source licence
anscombe F. J. Anscombe (1973), Graphs in Statistical Analysis, The American Statistician 27(1):17-21; as in vega-datasets 2.8.0 published numbers, also in R's datasets package; no licence stated
barley Minnesota Agricultural Experiment Station; Immer, Hayes and Powers (1934); republished in Wiebe et al. (1940), Yields of Barley Varieties in the United States and Canada, 1932-36, USDA Technical Bulletin 735; as in vega-datasets 2.8.0 a U.S. Government publication; also in R's lattice package
cars Quinlan, R. (1993). Auto MPG [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5859H CC BY 4.0
gapminder Gapminder Foundation: life expectancy, population and fertility, 1955-2005; as in vega-datasets 2.8.0 CC BY 4.0: based on free material from GAPMINDER.ORG, CC-BY LICENSE
penguins Gorman, Williams and Fraser (2014), Palmer Station Antarctica LTER; palmerpenguins by Horst, Hill and Gorman; as in vega-datasets 2.8.0 CC0 1.0
seattle_weather NOAA National Climatic Data Center, daily records for Seattle, 2012-2015; as in vega-datasets 2.8.0 a U.S. Government work: public domain

Changes made here: column names in snake_case; for gapminder, readable region names; for cars, the 406 cars of UCI's auto-mpg.data-original, with the model year as 1970-1982, the origin as USA, Europe or Japan, and missing values left empty.