cpi
cpi copied to clipboard
Quickly adjust U.S. dollars for inflation using the Consumer Price Index (CPI)
If I understand what's happening, data lives and is updated here: https://github.com/datadesk/cpi/blob/master/cpi/data.csv Two things make my queasy about this (with the caveat that I haven't used this in a project...
I'm using a dataset that stores dates as strings "YYYY-MM-DD". I sliced the first four characters, then inflate complained without providing useful error information. Converting the year_or_month parameter to an...
Every time I have starting to execute the script, I need to wait for the update process. There should be an auto-update mechanism or a method to check whether the...
Currently BLS website is unavailable like this:  The library just parsing the error HTML page and there is no validation check whether the correct thing gets...
Python 3.6 Every time I import the library, it is extremely slow (~50 seconds). I don't have time to review the codebase right now for a solution, so I am...
Hi, I've ran cpi.update() before applying the CPI function to a quarterly time series and it appeared to work. But oddly there is a gap between my nominal numbers and...
While `pd.apply()` works for small datasets like the example from the docs ```python df['ADJUSTED'] = df.apply(lambda x: cpi.inflate(x.MEDIAN_HOUSEHOLD_INCOME, x.YEAR), axis=1) ``` it quickly falls apart if one tries to _inflate_...
I wonder if csvkit could do the SQLite insert with less overhead.