Skip to content

Commit

Permalink
Update data
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Aug 14, 2024
1 parent 221a80c commit a591764
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion notebooks/cpi-mom.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
date,pct_change,pct_change_rounded
2022-05-01,0.8986577274175289,0.9
2022-06-01,1.2482881942895263,1.2
2022-07-01,-0.006440765298509898,-0.0
2022-08-01,0.07865019984609756,0.1
Expand All @@ -25,3 +24,4 @@ date,pct_change,pct_change_rounded
2024-04-01,0.3129103545463252,0.3
2024-05-01,0.00574699799176237,0.0
2024-06-01,-0.05618964003513138,-0.1
2024-07-01,0.1549278228009099,0.2
2 changes: 1 addition & 1 deletion notebooks/latest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"all": {"latest_month": "2024-06-01", "latest_change": -0.1, "previous_month": "2024-05-01", "previous_change": 0.0}, "food": {"latest_month": "2024-06-01", "latest_change": 0.2, "previous_month": "2024-05-01", "previous_change": 0.1}, "energy": {"latest_month": "2024-06-01", "latest_change": -2.0, "previous_month": "2024-05-01", "previous_change": -2.0}, "less_food_and_energy": {"latest_month": "2024-06-01", "latest_change": 0.1, "previous_month": "2024-05-01", "previous_change": 0.2}, "yoy_change": 3.0}
{"all": {"latest_month": "2024-07-01", "latest_change": 0.2, "previous_month": "2024-06-01", "previous_change": -0.1}, "food": {"latest_month": "2024-07-01", "latest_change": 0.2, "previous_month": "2024-06-01", "previous_change": 0.2}, "energy": {"latest_month": "2024-07-01", "latest_change": 0.0, "previous_month": "2024-06-01", "previous_change": -2.0}, "less_food_and_energy": {"latest_month": "2024-07-01", "latest_change": 0.2, "previous_month": "2024-06-01", "previous_change": 0.1}, "yoy_change": 2.9}
6 changes: 3 additions & 3 deletions notebooks/three-categories-yoy.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,series_periodicity_id,series_periodicity_code,series_periodicity_name,series_area_id,series_area_code,series_area_name,series_items_id,series_items_code,series_items_name,period_id,period_code,period_abbreviation,period_name,period_month,period_type,pct_change
2014,2014-07-01,238.25,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M07,M07,JUL,July,7,monthly,0.019923286357643066
2014,2014-08-01,237.852,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M08,M08,AUG,August,8,monthly,0.016996113341628316
2014,2014-09-01,238.031,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M09,M09,SEP,September,9,monthly,0.01657918675715031
2014,2014-10-01,237.433,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M10,M10,OCT,October,10,monthly,0.01664340215632043
Expand Down Expand Up @@ -119,7 +118,7 @@ year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,
2024,2024-04-01,313.548,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M04,M04,APR,April,4,monthly,0.03357363950119163
2024,2024-05-01,314.069,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M05,M05,MAY,May,5,monthly,0.032690290569400204
2024,2024-06-01,314.175,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M06,M06,JUN,June,6,monthly,0.029713971072633072
2014,2014-07-01,257.907,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M07,M07,JUL,July,7,monthly,0.02600548991526419
2024,2024-07-01,314.54,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M07,M07,JUL,July,7,monthly,0.028947531984913066
2014,2014-08-01,250.951,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M08,M08,AUG,August,8,monthly,0.00375983456727913
2014,2014-09-01,247.077,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M09,M09,SEP,September,9,monthly,-0.0057783697432327585
2014,2014-10-01,234.745,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M10,M10,OCT,October,10,monthly,-0.015843269440391716
Expand Down Expand Up @@ -239,7 +238,7 @@ year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,
2024,2024-04-01,290.76,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M04,M04,APR,April,4,monthly,0.026144159914170517
2024,2024-05-01,290.139,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M05,M05,MAY,May,5,monthly,0.03689210052320102
2024,2024-06-01,286.675,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M06,M06,JUN,June,6,monthly,0.00993820767014042
2014,2014-07-01,243.034,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M07,M07,JUL,July,7,monthly,0.025455588794983885
2024,2024-07-01,287.868,CUUR0000SA0E,"Energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0E,SA0E,Energy,M07,M07,JUL,July,7,monthly,0.010673107980956997
2014,2014-08-01,243.811,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M08,M08,AUG,August,8,monthly,0.02697909909606322
2014,2014-09-01,244.63,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M09,M09,SEP,September,9,monthly,0.029925648992514375
2014,2014-10-01,245.166,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M10,M10,OCT,October,10,monthly,0.030667883012220898
Expand Down Expand Up @@ -359,3 +358,4 @@ year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,
2024,2024-04-01,328.678,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M04,M04,APR,April,4,monthly,0.022116766076015537
2024,2024-05-01,329.12,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M05,M05,MAY,May,5,monthly,0.021322021169964733
2024,2024-06-01,329.71,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M06,M06,JUN,June,6,monthly,0.022179094482818407
2024,2024-07-01,330.561,CUUR0000SAF1,"Food in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SAF1,SAF1,Food,M07,M07,JUL,July,7,monthly,0.021754249311486173
4 changes: 2 additions & 2 deletions notebooks/two-categories-yoy.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,series_periodicity_id,series_periodicity_code,series_periodicity_name,series_area_id,series_area_code,series_area_name,series_items_id,series_items_code,series_items_name,period_id,period_code,period_abbreviation,period_name,period_month,period_type,pct_change
2023,2023-06-01,305.109,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M06,M06,JUN,June,6,monthly,0.029691776545588855
2023,2023-07-01,305.691,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M07,M07,JUL,July,7,monthly,0.03177780177942169
2023,2023-08-01,307.026,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M08,M08,AUG,August,8,monthly,0.03665112384399549
2023,2023-09-01,307.789,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M09,M09,SEP,September,9,monthly,0.0369969812134443
Expand All @@ -12,7 +11,7 @@ year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,
2024,2024-04-01,313.548,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M04,M04,APR,April,4,monthly,0.03357363950119163
2024,2024-05-01,314.069,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M05,M05,MAY,May,5,monthly,0.032690290569400204
2024,2024-06-01,314.175,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M06,M06,JUN,June,6,monthly,0.029713971072633072
2023,2023-06-01,308.91,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M06,M06,JUN,June,6,monthly,0.04828967015067187
2024,2024-07-01,314.54,CUUR0000SA0,"All items in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0,SA0,All items,M07,M07,JUL,July,7,monthly,0.028947531984913066
2023,2023-07-01,309.402,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M07,M07,JUL,July,7,monthly,0.04652861868586067
2023,2023-08-01,310.103,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M08,M08,AUG,August,8,monthly,0.04349245233496424
2023,2023-09-01,310.817,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M09,M09,SEP,September,9,monthly,0.04146534334979668
Expand All @@ -25,3 +24,4 @@ year,date,value,series_id,series_title,series_survey,series_seasonally_adjusted,
2024,2024-04-01,317.978,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M04,M04,APR,April,4,monthly,0.03609982437218773
2024,2024-05-01,318.629,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M05,M05,MAY,May,5,monthly,0.03418739613626931
2024,2024-06-01,319.003,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M06,M06,JUN,June,6,monthly,0.03267294681298738
2024,2024-07-01,319.214,CUUR0000SA0L1E,"All items less food and energy in U.S. city average, all urban consumers, not seasonally adjusted",All urban consumers,False,R,R,Monthly,0000,0000,U.S. city average,SA0L1E,SA0L1E,All items less food and energy,M07,M07,JUL,July,7,monthly,0.03171278789406662
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class BaseCPITest(unittest.TestCase):
LATEST_YEAR = 2023
LATEST_YEAR_1950_ALL_ITEMS = 1264.323651452282
LATEST_YEAR_1950_CUSR0000SA0 = 1264.323651452282
LATEST_MONTH = date(2024, 6, 1)
LATEST_MONTH_1950_ALL_ITEMS = 1336.9148936170213
LATEST_MONTH_1950_CUSR0000SA0 = 1331.5567843470862
LATEST_MONTH = date(2024, 7, 1)
LATEST_MONTH_1950_ALL_ITEMS = 1338.4680851063831
LATEST_MONTH_1950_CUSR0000SA0 = 1333.6197362824328


class CPITest(BaseCPITest):
Expand Down

0 comments on commit a591764

Please sign in to comment.