Skip to content

Commit

Permalink
pct_change specifies fill_method='pad'
Browse files Browse the repository at this point in the history
 - Don't rely on default argument for `fill_method` as it was deprecated in Pandas 2.1.
  • Loading branch information
talumbau committed Jan 31, 2024
1 parent 9da4947 commit e03c79a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ogusa/macro_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def get_macro_params():

# find g_y
macro_parameters["g_y"] = (
fred_data_q["GDP Per Capita"].pct_change(periods=4, freq="Q").mean()
fred_data_q["GDP Per Capita"]
.pct_change(periods=4, freq="Q", fill_method="pad")
.mean()
)

# # estimate r_gov_shift and r_gov_scale
Expand Down

0 comments on commit e03c79a

Please sign in to comment.