Search⌘ K
AI Features

Working with CPI and Salary Data

Discover how to import and process CPI and salary data using Python. Learn to handle different data formats and time intervals to enable accurate comparison and analysis of wage trends alongside consumer prices.

Working with CPI and salary data is quite simple. Firstly, we’ll import libraries, and then we’ll access the data series using CSV files.

Import libraries

With that out of the way, we’re all set to start digging for CPI and employment data. Importing four libraries, including bls will give us the tools we’re going to need.

Now we pass the BLS endpoint for the wages and salaries data series to the ...