11 2018 档案

摘要:针对dataframe中的某一行(或列)想做批量字符串处理时,可采用此方法 series.str.python内置的str方法 例如: series.str.replace('A','B') # 整个series中所有字符串全部执行替换操作 python内置str方法汇总: https://www. 阅读全文
posted @ 2018-11-21 13:24 GavinSimons 阅读(1553) 评论(0) 推荐(0)
摘要:文章介绍了一种采用循环的方式生产协程列表,并可以向协程函数传递参数。。。# 协程引用import gevent from gevent import monkey, pool monkey.patch_all() # 初始化协程池 poolNum = 10 pool = pool.Pool(pool 阅读全文
posted @ 2018-11-20 12:32 GavinSimons 阅读(632) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/Trader_Python/article/list/1 阅读全文
posted @ 2018-11-17 00:41 GavinSimons 阅读(532) 评论(0) 推荐(0)
摘要:接触VNPY一年多,一直对作者设计原理和思想有所困惑。发一篇vnpy官网的说明文档,便于以后理解项目代码。 http://www.vnpy.org/archives.html 阅读全文
posted @ 2018-11-17 00:15 GavinSimons 阅读(1929) 评论(0) 推荐(0)
摘要:转载自http://blog.csdn.net/dcrmg/article/details/52215930 做视频样本切割,切片用ffv1编码,比原数据大了几十倍,看到了这篇文章,防止找不到记录一下 打开视频文件或摄像头视频需要使用Opencv中的VideoCapture类,保存视频或摄像头视频到 阅读全文
posted @ 2018-11-13 00:58 GavinSimons 阅读(3293) 评论(0) 推荐(0)