Working with CPI and Salary Data
Explore techniques to work with Consumer Price Index and salary data using Python. Learn to import multiple data sources, access BLS API datasets, and address challenges like differing time formats and data units. This lesson prepares you to clean and format data for meaningful wage and price comparisons.
We'll cover the following...
We'll cover the following...
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 bls.get_series command from the bls library.
We copied the ...