from pandas_datareader.oanda import get_oanda_currency_historical_rates
start, end = "2016-01-01", "2016-06-01"
quote_currency = "USD"
base_currency = ["EUR", "GBP", "JPY"]
df_rates = get_oanda_currency_historical_rates(
start, end,
quote_currency=quote_currency,
base_currency=base_currency
)
print(df_rates)
ParserError:','在'''之后预期。错误可能是由于在跳过的页脚行中解析错误(只有在Python的csv库解析了所有行之后才应用skipfooter关键字)。