Skip to content

Commit

Permalink
Update data
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Nov 13, 2024
1 parent fb90d5e commit 187a4d9
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-08-01,0.07865019984609756,0.1
2022-09-01,0.38345714392176156,0.4
2022-10-01,0.5135975109755275,0.5
2022-11-01,0.26354397827190734,0.3
Expand All @@ -25,3 +24,4 @@ date,pct_change,pct_change_rounded
2024-07-01,0.1549278228009099,0.2
2024-08-01,0.1872205247277714,0.2
2024-09-01,0.17986699392908978,0.2
2024-10-01,0.24405280184056632,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-09-01", "latest_change": 0.2, "previous_month": "2024-08-01", "previous_change": 0.2}, "food": {"latest_month": "2024-09-01", "latest_change": 0.4, "previous_month": "2024-08-01", "previous_change": 0.1}, "energy": {"latest_month": "2024-09-01", "latest_change": -1.9, "previous_month": "2024-08-01", "previous_change": -0.8}, "less_food_and_energy": {"latest_month": "2024-09-01", "latest_change": 0.3, "previous_month": "2024-08-01", "previous_change": 0.3}, "yoy_change": 2.4}
{"all": {"latest_month": "2024-10-01", "latest_change": 0.2, "previous_month": "2024-09-01", "previous_change": 0.2}, "food": {"latest_month": "2024-10-01", "latest_change": 0.2, "previous_month": "2024-09-01", "previous_change": 0.4}, "energy": {"latest_month": "2024-10-01", "latest_change": -0.0, "previous_month": "2024-09-01", "previous_change": -1.9}, "less_food_and_energy": {"latest_month": "2024-10-01", "latest_change": 0.3, "previous_month": "2024-09-01", "previous_change": 0.3}, "yoy_change": 2.6}
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 @@
series_id,year,date,value,period_id,period_code,period_abbreviation,period_name,period_month,period_type,pct_change
CUUR0000SA0,2014,2014-10-01,237.433,M10,M10,OCT,October,10,monthly,0.01664340215632043
CUUR0000SA0,2014,2014-11-01,236.151,M11,M11,NOV,November,11,monthly,0.013223551823708934
CUUR0000SA0,2014,2014-12-01,234.812,M12,M12,DEC,December,12,monthly,0.007564932696557447
CUUR0000SA0,2015,2015-01-01,233.707,M01,M01,JAN,January,1,monthly,-0.0008934831306964819
Expand Down Expand Up @@ -119,7 +118,7 @@ CUUR0000SA0,2024,2024-06-01,314.175,M06,M06,JUN,June,6,monthly,0.029713971072633
CUUR0000SA0,2024,2024-07-01,314.54,M07,M07,JUL,July,7,monthly,0.028947531984913066
CUUR0000SA0,2024,2024-08-01,314.796,M08,M08,AUG,August,8,monthly,0.025307302964569622
CUUR0000SA0,2024,2024-09-01,315.301,M09,M09,SEP,September,9,monthly,0.02440633031069983
CUUR0000SA0E,2014,2014-10-01,234.745,M10,M10,OCT,October,10,monthly,-0.015843269440391716
CUUR0000SA0,2024,2024-10-01,315.664,M10,M10,OCT,October,10,monthly,0.02597904904914672
CUUR0000SA0E,2014,2014-11-01,221.844,M11,M11,NOV,November,11,monthly,-0.048435248095532235
CUUR0000SA0E,2014,2014-12-01,209.785,M12,M12,DEC,December,12,monthly,-0.1055546554561656
CUUR0000SA0E,2015,2015-01-01,192.619,M01,M01,JAN,January,1,monthly,-0.19591652716957975
Expand Down Expand Up @@ -239,7 +238,7 @@ CUUR0000SA0E,2024,2024-06-01,286.675,M06,M06,JUN,June,6,monthly,0.00993820767014
CUUR0000SA0E,2024,2024-07-01,287.868,M07,M07,JUL,July,7,monthly,0.010673107980956997
CUUR0000SA0E,2024,2024-08-01,282.614,M08,M08,AUG,August,8,monthly,-0.039799135658177276
CUUR0000SA0E,2024,2024-09-01,275.74,M09,M09,SEP,September,9,monthly,-0.06845853434413052
CUUR0000SAF1,2014,2014-10-01,245.166,M10,M10,OCT,October,10,monthly,0.030667883012220898
CUUR0000SA0E,2024,2024-10-01,272.807,M10,M10,OCT,October,10,monthly,-0.04863750810799505
CUUR0000SAF1,2014,2014-11-01,245.192,M11,M11,NOV,November,11,monthly,0.031774820001599036
CUUR0000SAF1,2014,2014-12-01,245.976,M12,M12,DEC,December,12,monthly,0.03408178451164301
CUUR0000SAF1,2015,2015-01-01,246.538,M01,M01,JAN,January,1,monthly,0.0320925014233564
Expand Down Expand Up @@ -359,3 +358,4 @@ CUUR0000SAF1,2024,2024-06-01,329.71,M06,M06,JUN,June,6,monthly,0.022179094482818
CUUR0000SAF1,2024,2024-07-01,330.561,M07,M07,JUL,July,7,monthly,0.021754249311486173
CUUR0000SAF1,2024,2024-08-01,330.75,M08,M08,AUG,August,8,monthly,0.020518358531317338
CUUR0000SAF1,2024,2024-09-01,332.083,M09,M09,SEP,September,9,monthly,0.022725312900364614
CUUR0000SAF1,2024,2024-10-01,332.678,M10,M10,OCT,October,10,monthly,0.021327414338825568
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 @@
series_id,year,date,value,period_id,period_code,period_abbreviation,period_name,period_month,period_type,pct_change
CUUR0000SA0,2023,2023-09-01,307.789,M09,M09,SEP,September,9,monthly,0.0369969812134443
CUUR0000SA0,2023,2023-10-01,307.671,M10,M10,OCT,October,10,monthly,0.03241144651893202
CUUR0000SA0,2023,2023-11-01,307.051,M11,M11,NOV,November,11,monthly,0.03137270708841777
CUUR0000SA0,2023,2023-12-01,306.746,M12,M12,DEC,December,12,monthly,0.033521228314302265
Expand All @@ -12,7 +11,7 @@ CUUR0000SA0,2024,2024-06-01,314.175,M06,M06,JUN,June,6,monthly,0.029713971072633
CUUR0000SA0,2024,2024-07-01,314.54,M07,M07,JUL,July,7,monthly,0.028947531984913066
CUUR0000SA0,2024,2024-08-01,314.796,M08,M08,AUG,August,8,monthly,0.025307302964569622
CUUR0000SA0,2024,2024-09-01,315.301,M09,M09,SEP,September,9,monthly,0.02440633031069983
CUUR0000SA0L1E,2023,2023-09-01,310.817,M09,M09,SEP,September,9,monthly,0.04146534334979668
CUUR0000SA0,2024,2024-10-01,315.664,M10,M10,OCT,October,10,monthly,0.02597904904914672
CUUR0000SA0L1E,2023,2023-10-01,311.38,M10,M10,OCT,October,10,monthly,0.040308704876133916
CUUR0000SA0L1E,2023,2023-11-01,311.606,M11,M11,NOV,November,11,monthly,0.04007343124165552
CUUR0000SA0L1E,2023,2023-12-01,311.907,M12,M12,DEC,December,12,monthly,0.03929853088669932
Expand All @@ -25,3 +24,4 @@ CUUR0000SA0L1E,2024,2024-06-01,319.003,M06,M06,JUN,June,6,monthly,0.032672946812
CUUR0000SA0L1E,2024,2024-07-01,319.214,M07,M07,JUL,July,7,monthly,0.03171278789406662
CUUR0000SA0L1E,2024,2024-08-01,320.017,M08,M08,AUG,August,8,monthly,0.03197002286337125
CUUR0000SA0L1E,2024,2024-09-01,321.109,M09,M09,SEP,September,9,monthly,0.033112731929077155
CUUR0000SA0L1E,2024,2024-10-01,321.758,M10,M10,OCT,October,10,monthly,0.03332905131993069
6 changes: 3 additions & 3 deletions tests/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
LATEST_YEAR = 2023
LATEST_YEAR_1950_ALL_ITEMS = 1264.323651452282
LATEST_YEAR_1950_CUSR0000SA0 = 1264.323651452282
LATEST_MONTH = date(2024, 9, 1)
LATEST_MONTH_1950_ALL_ITEMS = 1341.7063829787232
LATEST_MONTH_1950_CUSR0000SA0 = 1338.5197788175244
LATEST_MONTH = date(2024, 10, 1)
LATEST_MONTH_1950_ALL_ITEMS = 1343.2510638297872
LATEST_MONTH_1950_CUSR0000SA0 = 1341.7864738409187


def test_latest_year():
Expand Down

0 comments on commit 187a4d9

Please sign in to comment.