consumer price index icon

Consumer Price Index Python Library

From the CORGIS Dataset Project

By Sam Donald
Version 1.0.1, created 9/27/2022
Tags: consumer goods, price trends

Overview

Data related to USA consumer price index from 1900 onwards (normalized to 1900)

https://github.com/owid/owid-datasets/tree/master/datasets

Explore Structure

Each row represents Yearly report of normalized prices.

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"Year" int 1900 Year
"Data" dict { }
Key Type Example Value Description
"Meat" dict { }
"Fuel" dict { }
"Grain" dict { }
"Metal" dict { }
"Plant extract" dict { }
Key Type Example Value Description
"Beef" float 100.0 Normalized price of good based on 1900 price
"Lamb" float 100.0 Normalized price of good based on 1900 price
"Pork" float 100.0 Normalized price of good based on 1900 price
"Average" float 100.0 Average normalized price of good based on 1900 price
Key Type Example Value Description
"Coal" float 100.0 Normalized price of good based on 1900 price
"Natural gas" float 100.0 Normalized price of good based on 1900 price
"Petroleum" float 100.0 Normalized price of good based on 1900 price
"Average" float 100.0 Average normalized price of good based on 1900 price
Key Type Example Value Description
"Corn" float 100.0 Normalized price of good based on 1900 price
"Rice" float 100.0 Normalized price of good based on 1900 price
"Rye" float 100.0 Normalized price of good based on 1900 price
"Wheat" float 100.0 Normalized price of good based on 1900 price
"Average" float 100.0 Average normalized price of good based on 1900 price
Key Type Example Value Description
"Aluminum" float 100.0 Normalized price of good based on 1900 price
"Chromium" float 100.0 Normalized price of good based on 1900 price
"Copper" float 100.0 Normalized price of good based on 1900 price
"Lead" float 100.0 Normalized price of good based on 1900 price
"Manganese" float 100.0 Normalized price of good based on 1900 price
"Nickel" float 100.0 Normalized price of good based on 1900 price
"Steel" float 100.0 Normalized price of good based on 1900 price
"Tin" float 100.0 Normalized price of good based on 1900 price
"Zinc" float 100.0 Normalized price of good based on 1900 price
"Iron ore" float 100.0 Normalized price of good based on 1900 price
"Gold" float 100.0 Normalized price of good based on 1900 price
"Platinum" float 100.0 Normalized price of good based on 1900 price
"Silver" float 100.0 Normalized price of good based on 1900 price
"Average" float 100.0 Average normalized price of good based on 1900 price
Key Type Example Value Description
"Cocoa" float 100.0 Normalized price of good based on 1900 price
"Coffee" float 100.0 Normalized price of good based on 1900 price
"Cotton" float 100.0 Normalized price of good based on 1900 price
"Cottonseed" float 100.0 Normalized price of good based on 1900 price
"Palm oil" float 100.0 Normalized price of good based on 1900 price
"Rubber" float 100.0 Normalized price of good based on 1900 price
"Sugar" float 100.0 Normalized price of good based on 1900 price
"Tea" float 100.0 Normalized price of good based on 1900 price
"Tobacco" float 100.0 Normalized price of good based on 1900 price
"Average" float 100.0 Average normalized price of good based on 1900 price

Downloads

Download all of the following files.

  1. consumer_price_index.py
  2. consumer_price_index.data

Usage

import consumer_price_index
report = consumer_price_index.get_report()

Documentation

get_report()
Returns a list of dictionaries representing Report.