- 강의 질문
- 금융/투자
FRED 거시지표 데이터 로드 오류
안녕하세요 강사님
강의 잘 듣고 있습니다.
올려주신 코드 실행 중 문제가 있어 문의 드립니다.
Part 2_Ch 2_거시경제_지표_이해와_Regime_분류기_만들기.ipynb
에서 데이터 불러오기가 안되는 문제가 있습니다.
기간이 현재까지는 너무 긴가 해서 위에 코드에서 end="2001-01-01"으로 변경했는데도 안되네요....
# series_info에서 경제지표를 불러와 macro에 합침
macro = pd.DataFrame()
for sid, label in series_info.items():
try:
print(f"Loading {sid} - {label}")
df = get_fred_series(sid, start="2000-01-01")
df.columns = [label]
macro = macro.join(df, how="outer")
except Exception as e:
print(f"Failed to load {sid}: {e}")
============================================
Loading GDPC1 - Real GDP
Loading PCE - Personal Consumption Expenditures
Loading INDPRO - Industrial Production Index
Failed to load INDPRO: Too Many Requests. Exceeded Rate Limit
Loading UNRATE - Unemployment Rate
Failed to load UNRATE: Too Many Requests. Exceeded Rate Limit
Loading PAYEMS - Nonfarm Payrolls
Failed to load PAYEMS: Too Many Requests. Exceeded Rate Limit
Loading JTSJOL - Job Openings (JOLTS)
Loading CPIAUCSL - CPI (All Items)
Loading PCEPILFE - Core PCE Price Index
Failed to load PCEPILFE: Too Many Requests. Exceeded Rate Limit
Loading PPIFIS - PPI (Final Demand)
Failed to load PPIFIS: Too Many Requests. Exceeded Rate Limit
Loading FEDFUNDS - Federal Funds Effective Rate
Failed to load FEDFUNDS: Too Many Requests. Exceeded Rate Limit
Loading T10Y2Y - 10-Year Treasury Constant Maturity Minus 2-Year Loading M2SL - M2 Money Stock
여기서 오류가 나오니 거시지표 분석은 작동이 안되어서 이후 코드 진행이 안됩니다.
확인 부탁드리겠습니다.
감사합니다