![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
痴迷
SuperYPC
人生太短,我用Python!
展开
-
利用 pandas_datareader下载各大股票数据失败的解决方法
网上搜罗很久,发现这一条措施有用,再次记录一下。原文出处(知乎)点击打开链接from pandas_datareader import data as pdrimport fix_yahoo_finance as yfyf.pdr_override() #需要调用这个函数# 获取数据data = pdr.get_data_yahoo("SPY", start="2017-01-01",...转载 2018-06-03 13:27:02 · 7492 阅读 · 0 评论 -
pandas 中.dropna()的用法
文章转载自点击打开链接,个人记录以便以后查阅1.创建带有缺失值的数据库:import pandas as pdimport numpy as npdf = pd.DataFrame(np.random.randn(5, 3), index = list('abcde'), columns = ['one', 'two', 'three']) # 随机产生5行3列的数据 ...转载 2018-06-02 09:54:08 · 35886 阅读 · 0 评论