04 2022 档案

摘要:wget http://xmlsoft.org/sources/libxml2-2.9.1.tar.gztar -xvf libxml2-2.9.1.tar.gzcd libxml2-2.9.1./configure && make && make install 可能报错 configure: e 阅读全文
posted @ 2022-04-18 14:53 星涅爱别离 阅读(7697) 评论(0) 推荐(0) 编辑
摘要:pkg install openssl 之后再重新pip,⚠️自己的pip版本,比如 pip3.10 install ipython -i https://pypi.tuna.tsinghua.edu.cn/simple some-package输入 ls /data/data/com.termux 阅读全文
posted @ 2022-04-18 10:18 星涅爱别离 阅读(715) 评论(0) 推荐(0) 编辑
摘要:先执行 https://www.sqlsec.com/2020/04/termuxlinux.html安装ubuntu 再执行 http://betheme.net/news/txtlist_i163222v.html中三、安装Ubuntu桌面后的部分 之后每次使用,都需要 cd ~/Termux- 阅读全文
posted @ 2022-04-17 15:54 星涅爱别离 阅读(223) 评论(0) 推荐(0) 编辑
摘要:lsof -i | grep 9777 | awk '{print $2}' | xargs kill -9 阅读全文
posted @ 2022-04-16 15:18 星涅爱别离 阅读(297) 评论(0) 推荐(0) 编辑
摘要:cart回归树构建过程:x1 x2 y2 1 34 3 26 5 48 7 1步骤1:找最优划分属性和对应的划分点x1候选的划分点(3,5,7)和x2的候选划分点(2,4,6)计算mse_x1_3,按照x1小于3和大于3划分左右两个节点左边 右边x1 x2 y x1 x2 y2 1 3 4 3 2 阅读全文
posted @ 2022-04-16 14:03 星涅爱别离 阅读(111) 评论(0) 推荐(0) 编辑
摘要:如上报错,print 输入的数据,得到: KerasTensor(type_spec=TensorSpec(shape=(None, 1), dtype=tf.float32, name='4'), name='4', description="created by layer '4'") Kera 阅读全文
posted @ 2022-04-15 11:34 星涅爱别离 阅读(2175) 评论(0) 推荐(0) 编辑
摘要:以前的网址是https://www.tensorflow.org/,当时得fq才能打开,现在这个我fq都打不开了。 现在新网址是https://tensorflow.google.cn/这个不fq都可以打开了。总体来讲是好事,不fq就能查到资料了。 阅读全文
posted @ 2022-04-14 11:32 星涅爱别离 阅读(34) 评论(0) 推荐(0) 编辑
摘要:1、打开访达后,使用快捷键:command(⌘)+⇧+G,或者顶部菜单,选择前往——前往文件夹 2、在弹出的对话框中输入以下路径,点击前往 /Library/Application Support/Microsoft/ 3、删除文件夹MAU2.0,也可以进 入此文件夹删除Microsoft Auto 阅读全文
posted @ 2022-04-13 14:52 星涅爱别离 阅读(701) 评论(0) 推荐(0) 编辑
摘要:tf: from tensorflow.python.keras import layers(tf自带) local: import keras(额外下载) 阅读全文
posted @ 2022-04-13 10:49 星涅爱别离 阅读(42) 评论(0) 推荐(0) 编辑
摘要:只需加上dtype=object即可,亲测可行 pd.read_csv(paths, header=None, delimiter=',', dtype=object) 阅读全文
posted @ 2022-04-13 09:42 星涅爱别离 阅读(439) 评论(0) 推荐(0) 编辑
摘要:python中文件路径的格式 文件路径共分为两种:绝对路径和相对路径1、绝对路径就是文件的真正存在的路径,是指从硬盘的根目录(盘符)开始,进行一级级目录指向文件。2、 相对路径是以当前文件为基准进行一级级目录指向被引用的资源文件。 常用的表示当前目录和当前目录的父级目录的标识符 :①…/ 表示当前文 阅读全文
posted @ 2022-04-13 09:42 星涅爱别离 阅读(4175) 评论(0) 推荐(1) 编辑
摘要:本文摘自https://blog.csdn.net/m0_46603114/article/details/107889583 日志功能 可以通过下面的代码在backtrader中添加日志功能: cerebro.addwriter(bt.WriterFile, out = 'log.csv', cs 阅读全文
posted @ 2022-04-13 07:58 星涅爱别离 阅读(926) 评论(0) 推荐(0) 编辑
摘要:本文来源:码农甲,个人学习笔记,详情见原博主文章 提前小结: 订单创建通过调用Strategy的buy()、sell()、close()方法来返回订单实例。订单取消通过调用Strategy的cancel(order)方法来取消订单订单通知通过调用Strategy的notify_order(order 阅读全文
posted @ 2022-04-12 15:12 星涅爱别离 阅读(1294) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/sinat_26811377/article/details/100065580 输入:my_dict = {'i': 1, 'love': 2, 'you': 3} 期望输出:my_df 0i 1love 2you 3如果字典里key和value是一一对 阅读全文
posted @ 2022-04-11 21:42 星涅爱别离 阅读(3035) 评论(0) 推荐(0) 编辑
摘要: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 星涅爱别离 阅读(426) 评论(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 星涅爱别离 阅读(4005) 评论(1) 推荐(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 星涅爱别离 阅读(3570) 评论(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 星涅爱别离 阅读(512) 评论(0) 推荐(0) 编辑
摘要:pip install XXXXXX --user -i https://pypi.douban.com/simple 阅读全文
posted @ 2022-04-08 17:24 星涅爱别离 阅读(387) 评论(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 星涅爱别离 阅读(72) 评论(0) 推荐(0) 编辑
摘要:MAC不能匹配这个windows专用的库 在cygwin下事件不起作用,所以不用考虑Mac 替代方案暂时没找到,欢迎评论区探讨 阅读全文
posted @ 2022-04-08 15:19 星涅爱别离 阅读(240) 评论(0) 推荐(0) 编辑
摘要:本例中出现这个问题是因为tushare调用使用pandas导致,更新tushare就好了。 pip install tushare --upgrade 是tushare和pandas版本匹配问题。因为tushare本身有调用pandas,随着tushare版本更新,其调用的pandas版本也在升高。 阅读全文
posted @ 2022-04-08 15:19 星涅爱别离 阅读(164) 评论(0) 推荐(0) 编辑
摘要:attr版本回退 pip install attrs==19.1.0 或者升级pytest(建议) python -m pip install --upgrade pytest 阅读全文
posted @ 2022-04-08 15:17 星涅爱别离 阅读(452) 评论(0) 推荐(0) 编辑
摘要:pip install seaborn --upgrade 阅读全文
posted @ 2022-04-08 10:21 星涅爱别离 阅读(369) 评论(0) 推荐(0) 编辑
摘要:/Users/christopher/opt/anaconda3/lib/python3.7/site-packages/ https://blog.csdn.net/SEU_LL/article/details/119385057 sudo python3 setup.py install sud 阅读全文
posted @ 2022-04-06 22:08 星涅爱别离 阅读(736) 评论(0) 推荐(0) 编辑
摘要:from __future__ import (absolute_import, division, print_function, unicode_literals) import backtrader as bt import akshare as ak import datetime impo 阅读全文
posted @ 2022-04-06 21:31 星涅爱别离 阅读(1233) 评论(0) 推荐(0) 编辑
摘要:import akshare as ak stock_hsgt_north_net_flow_in_em_df = ak.stock_hsgt_north_net_flow_in_em(symbol="北上") stock_em_hsgt_north_cash_df = ak.stock_hsgt_ 阅读全文
posted @ 2022-04-05 17:48 星涅爱别离 阅读(583) 评论(1) 推荐(0) 编辑
摘要:目前dataframe为空无法描述 阅读全文
posted @ 2022-04-04 21:17 星涅爱别离 阅读(496) 评论(0) 推荐(0) 编辑
摘要:import akshare as ak import time # import datetime import numpy as np from datetime import datetime, timedelta import smtplib from email.mime.text imp 阅读全文
posted @ 2022-04-04 14:58 星涅爱别离 阅读(2965) 评论(0) 推荐(1) 编辑
摘要:import datetime 在代码的顶部 . 这意味着你必须这样做: datetime.datetime.strptime(date, "%Y-%m-%d") 访问 strptime 方法 . 或者,您可以将import语句更改为: from datetime import datetime 并 阅读全文
posted @ 2022-04-04 14:56 星涅爱别离 阅读(5855) 评论(0) 推荐(0) 编辑
摘要:import pandas as pd import numpy as np from scipy import stats import matplotlib.pyplot as plt import akshare as ak from pyecharts.charts import Bar f 阅读全文
posted @ 2022-04-04 14:12 星涅爱别离 阅读(169) 评论(0) 推荐(0) 编辑
摘要:# !/usr/bin/env python # coding: utf-8 import akshare as ak import pandas as pd import matplotlib # (jupyternotebook 画图用的,别的工具可以不用) # %matplotlib auto 阅读全文
posted @ 2022-04-04 13:11 星涅爱别离 阅读(494) 评论(0) 推荐(0) 编辑
摘要:https://www.akshare.xyz/data/index/index.html#id63 文档中未涉及,故记录 https://jishuin.proginn.com/p/763bfbd62d58 阅读全文
posted @ 2022-04-04 12:17 星涅爱别离 阅读(236) 评论(0) 推荐(0) 编辑
摘要:报错:TypeError: 'float' object is not subscriptable https://www.delftstack.com/zh/howto/python-pandas/how-to-convert-float-to-int-in-pandas-dataframe/ 转 阅读全文
posted @ 2022-04-04 12:16 星涅爱别离 阅读(165) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u013084616/article/details/79064408 阅读全文
posted @ 2022-04-03 16:01 星涅爱别离 阅读(125) 评论(0) 推荐(0) 编辑
摘要:def make_print_to_file(path='./'): ''' path, it is a path for save your log about fuction print example: use make_print_to_file() and the all the info 阅读全文
posted @ 2022-04-03 15:57 星涅爱别离 阅读(758) 评论(0) 推荐(0) 编辑
摘要:实际上,有一种方法可以通过向ExcelWriter传递参数来强制使用utf8编码 ew = pandas.ExcelWriter('test.xlsx',options={'encoding':'utf-8'}) sampleList = ['Miño', '1', '2', 'señora'] d 阅读全文
posted @ 2022-04-03 08:22 星涅爱别离 阅读(1053) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示