Skip to main content

Python library for loading/cleaning data used in Valorum training

Project description

This package provides a simplified interface to datasets that we use frequently.

Loading data

To see a list of available datasets run

import valorum

To load one of the listed datasets run

df ="dataset_name")

where dataset_name is replaced by one of the names returned by

When you first load a dataset, valorum will fetch the data from somewhere online. It will then save a local copy of the data to your hard drive. Subsequent requests to load a dataset (even in different python sessions) will first attempt to load the data from your hard drive and only fetch from online if necessary.


The valorum library is configurable. Below is a listing of available configuration options.

To see a list of valid configuration options run

import valorum

To set a configuration use[section.option] = value.

For example, to set the configuration option for the BLS api_key I would call:

import valorum["bls.api_key"] = "MY_API_KEY"

Developer docs

Contributing datasets

To contribute a dataset you need to implement a function _retrieve_{name} inside the file data/ This function is responsible for obtaining the data either “by hand” (data hard coded into the function) or from online. The function must return a pandas DataFrame with the data.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for valorum, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size valorum-0.3.2.tar.gz (21.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page