Open flhang opened 1 year ago
Hi! There is an update in the data processors. At first, the clean_data
function is used for cleaning the data (dropping nans and changing column names) and filling nans. The filling nans mainly deal with the data missing caused by stock suspensions. And now, we have separated it into two functions clean_data
and fillna
. We have updated the code in the demo notebook here and the practical example here, and hope these example can help you to have a better understanding.
你好!这个问题应该是由 data processor
类的更新导致的,一开始,clean_data
函数既用来清理数据(删除nan并更改列名)又用来填充由停牌等产生的数据缺失。现在,我们将它分成了两个函数独立的函数 clean_data
和 fillna
来实现上述两种功能。我们更新了示例 notebook 和这里的实际运用 notebook 中的代码,希望这些示例可以帮助您更好地理解。
tushare.py被修改后? China_A_share_market_tushare1 的最简单示例都没办法正常运行了, 少了clean_data , 无法正确添加indicators