Created
June 21, 2022 02:42
-
-
Save susanli2016/78cfe91e8f2938606bccfddf20cbb49f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas_datareader as pdr | |
import pandas as pd | |
import requests | |
import plotly.express as px | |
from datetime import datetime | |
def get_fred_data(series_list, start_date, end_date): | |
df = pdr.DataReader(series_list, 'fred', start_date, end_date) | |
return df.reset_index() | |
series = 'QCAR628BIS' | |
df_canada = get_fred_data(series_list=[series], | |
start_date='1970-01-01', | |
end_date='2021-10-01') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment