Skip to content

Commit

Permalink
updates for package deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Aug 22, 2024
1 parent 57791a5 commit 50c8afa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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="QE").mean()
fred_data_q["GDP Per Capita"]
.pct_change(periods=4, freq="QE", fill_method=None)
.mean()
)

# # estimate r_gov_shift and r_gov_scale
Expand Down
4 changes: 2 additions & 2 deletions ogusa/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd
import numpy as np
from scipy.stats import kde
from scipy.stats import gaussian_kde
import matplotlib.pyplot as plt
import requests
import urllib3
Expand Down Expand Up @@ -203,7 +203,7 @@ def MVKDE(
k += 1

freq_mat = np.vstack((age_frequency, income_frequency)).T
density = kde.gaussian_kde(freq_mat.T, bw_method=bandwidth)
density = gaussian_kde(freq_mat.T, bw_method=bandwidth)
age_min, income_min = freq_mat.min(axis=0)
age_max, income_max = freq_mat.max(axis=0)
agei, incomei = np.mgrid[
Expand Down

0 comments on commit 50c8afa

Please sign in to comment.