- 博客(8)
- 收藏
- 关注
原创 珍藏版 _ python pandas 与 mysql 通用 交互/查询/修改 代码 开箱即用
新建mysql表:save_DataFrame("new_table",df) #表存在时默认追加,可换成if_exists='replace'根据主键更新mysql表:update_DataFrame("new_table",df)查询:df=get_DataFrame("select 1 from dual")删除mysql: query('delete from xxxx')调用存储过程:call('xxxx')......
2022-08-04 10:33:07
628
原创 nginx 通过路径分发 网站/端口/服务
其中 8088端口只需要输出 /superset/ 路径 其他路径分发到3000。背景:想通过一个端口,来访问两个web 服务,分别为8088端口 和 3000 端口。:/superset/路径访问css 或js 等资源时,会分发到3000端口。
2022-08-04 10:05:04
1924
2
原创 paddle 2.3.x 报错 ValueError: `type` to initialized an Operator can not be None.
paddle 2.3.x 报错 ValueError: `type` to initialized an Operator can not be None.
2022-06-08 14:33:09
300
原创 mysql double 类型 Out of range value for column的一个原因
mysql double 类型 Out of range value for column的一个原因
2022-06-06 15:48:08
641
2
原创 mysql8下 between 对datetime和date的筛选区别
看起来算是自动补上 00:00:00 然后左右闭合 附带测试数据: 2022-04-29 23:59:59 2022-04-30 00:00:00 2022-04-30 23:59:59 2022-05-01 00:00:00 2022-05-01 23:59:59 2022-05-02 00:00:00 SELECT * FROM `sc_tmp_test` where date BETWEEN "2022-04-30 00:00:00" and "2022-05-01 00:......
2022-05-04 09:58:03
987
原创 python appium 滑动到底部 的一种通用实现方法
本方法通过滑动前后截屏,按图片相似度判断是否已滑动到底部 图片比较: from PIL import Image import numpy as np import time def cmppic(file1,file2): img1,img2=Image.open(file1),Image.open(file2) img1,img2=np.array(img1),np.array(img2) return (img1==img2).mean() 滑动: def sco
2020-07-01 19:44:06
2221
原创 python 获取上个月一号,前后N个月一号 的简单代码
效果如下: 代码: def getXmonthafter(months,date_=None): if date_ is None: date_=datetime.date.today() yeardelta=(date_.month+months-1)//12 newmonth=(date_.month+months-1)%12+1 return datetime.date(date_.year+yeardelta,newmonth,1) 参考
2020-06-04 19:12:21
971
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人