上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页
摘要: import pandas as pdimport numpy as np # Pandas 支持多种方式的排序,如按索引排序、按值排序等。df = pd.DataFrame(np.random.randint(low=1, high=10, size=(3,4)),columns=['b','c' 阅读全文
posted @ 2022-04-11 21:40 星涅爱别离 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding: utf-8 -*- import time import akshare as ak from snownlp import SnowNLP # 使用snownlp stock_code = '603777' date = time.strftime("%Y%m%d" 阅读全文
posted @ 2022-04-09 20:05 星涅爱别离 阅读(3255) 评论(0) 推荐(0) 编辑
摘要: # https://zhuanlan.zhihu.com/p/61488013/ # 先引入后面可能用到的包(package) import pandas as pd import numpy as np import matplotlib.pyplot as plt import akshare 阅读全文
posted @ 2022-04-09 20:03 星涅爱别离 阅读(2913) 评论(0) 推荐(0) 编辑
摘要: NLTK ERROR LOADING 问题解决方法(使用nltk下载) 参考:https://blog.csdn.net/justlpf/article/details/121707223 https://www.nltk.org/data.html# 手动从这歌网站下载zip https://gi 阅读全文
posted @ 2022-04-09 14:52 星涅爱别离 阅读(423) 评论(0) 推荐(0) 编辑
摘要: pip install XXXXXX --user -i https://pypi.douban.com/simple 阅读全文
posted @ 2022-04-08 17:24 星涅爱别离 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 国内镜像源: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学:h 阅读全文
posted @ 2022-04-08 15:21 星涅爱别离 阅读(55) 评论(0) 推荐(0) 编辑
摘要: MAC不能匹配这个windows专用的库 在cygwin下事件不起作用,所以不用考虑Mac 替代方案暂时没找到,欢迎评论区探讨 阅读全文
posted @ 2022-04-08 15:19 星涅爱别离 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 本例中出现这个问题是因为tushare调用使用pandas导致,更新tushare就好了。 pip install tushare --upgrade 是tushare和pandas版本匹配问题。因为tushare本身有调用pandas,随着tushare版本更新,其调用的pandas版本也在升高。 阅读全文
posted @ 2022-04-08 15:19 星涅爱别离 阅读(128) 评论(0) 推荐(0) 编辑
摘要: attr版本回退 pip install attrs==19.1.0 或者升级pytest(建议) python -m pip install --upgrade pytest 阅读全文
posted @ 2022-04-08 15:17 星涅爱别离 阅读(369) 评论(0) 推荐(0) 编辑
摘要: pip install seaborn --upgrade 阅读全文
posted @ 2022-04-08 10:21 星涅爱别离 阅读(318) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页