摘要: import sysfrom selenium.webdriver.support.select import Selectfrom selenium import webdriverfrom selenium.webdriver.remote.webelement import WebElemen 阅读全文
posted @ 2022-05-26 20:01 figo1421 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1. scrapy startproject lianjia--cd lianjia--scrapy genspider lianjia_ershoufang https://sh.lianjia.com/ershoufang/ 2. scrapy crawl lianjia_ershoufang 阅读全文
posted @ 2021-12-14 17:20 figo1421 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1. 使用pd.DatetimeIndex(),该函数有较多的属性和方法,参考官方文档https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.html。 阅读全文
posted @ 2021-11-26 15:10 figo1421 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1、过滤停牌 2、交易日迁移 3、选取多头排列的股票 4.画k线图 阅读全文
posted @ 2019-05-28 10:30 figo1421 阅读(2171) 评论(0) 推荐(0) 编辑
摘要: 一、线性回归 1. 基本线性回归 2. CV 3. pipline和meshgrid画图(鸢尾花数据) 阅读全文
posted @ 2019-02-15 17:06 figo1421 阅读(333) 评论(0) 推荐(0) 编辑
摘要: ['bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn-bright', 'seaborn-colorblind', 'seaborn-dark-palette' 阅读全文
posted @ 2018-12-06 16:35 figo1421 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 问题:1、注册时无法收到验证;2、下载数据集无法收到短信验证。 解决步骤: 1、安装谷歌访问助手(自行百度解决),本人用的是Chrome浏览器,其他没试过 2、翻##墙(蓝灯或XX_net,去github下载) 3、注册时主要涉及谷歌的人机验证,上面两步完成后,验证图片能够正常显示 4、下载有奖数据 阅读全文
posted @ 2018-12-05 10:35 figo1421 阅读(5577) 评论(1) 推荐(0) 编辑
摘要: from sklearn.model_selection import GridSearchCV param_grid = {'C': np.arange(1e-05, 3, 0.1)} scoring = {'Accuracy': 'accuracy', 'AUC': 'roc_auc', 'Log_loss': 'neg_log_loss'} gs = GridSearchCV(Logis... 阅读全文
posted @ 2018-11-23 16:20 figo1421 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 引自:https://www.cnblogs.com/jasonfreak/p/5448385.html 阅读全文
posted @ 2018-11-21 13:56 figo1421 阅读(115) 评论(0) 推荐(0) 编辑
摘要: plt.figure(figsize=(10, 10)) # plt1.plot.pie(autopct='%1.1f%%',colors=sns.color_palette('Paired',10),startangle=90,wedgeprops = { 'linewidth' : 2, 'edgecolor' : 'white' }) plt.pie(plt1.values, labels... 阅读全文
posted @ 2018-10-17 13:45 figo1421 阅读(324) 评论(0) 推荐(0) 编辑