Python pandas 从yahoo finance记录分红信息
Python pandas Recording dividend information from yahoo finance
除了从 Datareader 中提取 OHLC、交易量和调整后的收盘价之外,还有没有办法使用 pandas.io.data
中的方法获取之前的除息日期和股息价格?
如果不是,使用 request
库和来自 here 的代码提取股息数据的最佳方法是什么?
Is there a way to capture the previous ex dividend dates and the
dividend price using methods in pandas.io.data?
不,目前不支持。
If not is the best way to pull dividend data using the request library and codes from here?
最佳方法未定义,但对我来说这看起来是一个明智的方法(我会这样做)。
Pandas现在支持从yahoo finance中提取股息信息。
from pandas_datareader import data
data.DataReader('PFF', 'yahoo-actions') # returns dividend history for ticker PFF
除了从 Datareader 中提取 OHLC、交易量和调整后的收盘价之外,还有没有办法使用 pandas.io.data
中的方法获取之前的除息日期和股息价格?
如果不是,使用 request
库和来自 here 的代码提取股息数据的最佳方法是什么?
Is there a way to capture the previous ex dividend dates and the dividend price using methods in pandas.io.data?
不,目前不支持。
If not is the best way to pull dividend data using the request library and codes from here?
最佳方法未定义,但对我来说这看起来是一个明智的方法(我会这样做)。
Pandas现在支持从yahoo finance中提取股息信息。
from pandas_datareader import data
data.DataReader('PFF', 'yahoo-actions') # returns dividend history for ticker PFF