A Python package for offline access to data needed to run restart
vega_datasets
is compatible with Python 3.8 or newer. Install with:
$ pip install restart_datasets
The main object in this library is data
:
>>> from restart_datasets import data
To access the BLS data for, say, the state of California:
df = data.California()
This will return a dataframe containing employment statistics for the state of California.
To list all the available datsets, use list_datasets
:
datasets = data.list_datasets()
If you want more information about any dataset, you can use the description
property:
data.California.description