上一页 1 2 3 4 5 6 7 8 ··· 70 下一页
摘要: 1. 选择除了其中一行的所有行 import pandas as pd import numpy as np df = pd.DataFrame(np.random.rand(8,4),columns=['a','b','c','d']) df df.loc[:,df.columns !='d'] 阅读全文
posted @ 2022-11-15 20:46 littlevigra 阅读(631) 评论(1) 推荐(0)
摘要: 1. 准备慢日志的csv文件 import pandas as pd import matplotlib.pyplot as plt # 选取耗时大于7000的日志 # awk -F '耗时:' '{if (int(substr($2,0,length($2)-2)) >7000) print $0 阅读全文
posted @ 2022-11-10 00:14 littlevigra 阅读(108) 评论(0) 推荐(0)
摘要: 当一个数据库表过于庞大,LIMIT offset, length中的offset值过大,则SQL查询语句会非常缓慢,你需增加order by,并且order by字段需要建立索引。 16、使用limit offset 分页时,为什么越往后翻越慢?如何解决? - 追风的小蚂蚁 - 博客园 (cnblo 阅读全文
posted @ 2022-10-26 18:41 littlevigra 阅读(98) 评论(0) 推荐(0)
摘要: violates the following Content Security Policy directive: "default-src 'self'". Nginx 解决内容安全策略CSP(Content-Security-Policy)配置方式(漏洞修复) - 龙凌云端 - 博客园 (cnb 阅读全文
posted @ 2022-10-19 22:42 littlevigra 阅读(456) 评论(0) 推荐(1)
摘要: [root@iZwz9ayhnug196k9jk1iukZ yunwei]# cat /etc/pam.d/system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next t 阅读全文
posted @ 2022-10-09 17:09 littlevigra 阅读(148) 评论(0) 推荐(0)
摘要: 2.1 在绘图代码中设置全局字体 from pylab import mpl # 设置显示中文字体 mpl.rcParams["font.sans-serif"] = ["SimHei"] 使用matplotlib绘图中文字符显示问题:UserWarning: missing from curren 阅读全文
posted @ 2022-09-25 23:33 littlevigra 阅读(742) 评论(0) 推荐(0)
摘要: 1. jar包解包和封包 jar -xf dynamic-bizengine-service-1.0.0.jar rm -rf BOOT-INF/lib/fastjson-1.2.47.jar cp fastjson-1.2.83.jar BOOT-INF/lib/ jar -cf0M dynami 阅读全文
posted @ 2022-09-24 18:43 littlevigra 阅读(311) 评论(0) 推荐(0)
摘要: proxy_http_version 1.1; proxy_set_header Connection ""; Allows proxying requests with NTLM Authentication. The upstream connection is bound to the cli 阅读全文
posted @ 2022-09-21 22:51 littlevigra 阅读(679) 评论(4) 推荐(0)
摘要: 1.报表模板 #cat xunjian_table.html [root@yinliao-yanshi report_jinja2]# cat xunjian_table.html <html> <head> <meta http-equiv="Content-Type" content="text 阅读全文
posted @ 2022-09-18 00:46 littlevigra 阅读(380) 评论(0) 推荐(0)
摘要: 1. 读取excel文件。由列变成行。每个item是一个字典 import pandas as pd from jinja2 import Environment, FileSystemLoader df = pd.read_excel('回测指标汇总.xlsx') df['消耗本金'] = df[ 阅读全文
posted @ 2022-09-17 19:11 littlevigra 阅读(589) 评论(1) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 70 下一页