altair.datasets.Loader#

class altair.datasets.Loader#

Load example datasets remotely from vega-datasets, with caching.

A new Loader must be initialized by specifying a backend:

from altair.datasets import Loader

load = Loader.from_backend("polars")
load
Loader[polars]
__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_backend([backend_name])

Initialize a new loader, with the specified backend.

from_reader(reader, /)

url(name[, suffix])

Return the address of a remote dataset.

Attributes

cache

Caching of remote dataset requests.