2024年2月29日

摘要: 原生Pandas中的用法介绍 https://www.cnblogs.com/keye/p/11229863.html 当结合Polars时的使用 https://mp.weixin.qq.com/s/3-TSOGbrxTpCyaZx1EI1bA 阅读全文
posted @ 2024-02-29 13:48 ac23 阅读(1) 评论(0) 推荐(0) 编辑

2024年2月28日

摘要: 参考文章 1.https://www.cnblogs.com/zhoujinyi/p/10939715.html 2.https://www.cnblogs.com/lijiaman/p/16558877.html 具体实操 创建一个可以登录的用户(user默认可登录,role默认不可登录) CRE 阅读全文
posted @ 2024-02-28 15:28 ac23 阅读(17) 评论(0) 推荐(0) 编辑

2024年2月2日

摘要: 50个股票 12个进程 1200秒 数据库表大小:669MB 一个超快的将Pandas的DataFrame数据导入Postgresql数据库中的方法: https://stackoverflow.com/a/47984180/16205177 使用该方法之后,50个股票,只开了4个进程,仅仅耗时73 阅读全文
posted @ 2024-02-02 17:20 ac23 阅读(5) 评论(0) 推荐(0) 编辑

2024年2月1日

摘要: import pickle import gzip import pandas as pd def decompress_object(filename): with gzip.open(filename, 'rb') as f: obj = pickle.load(f) return obj 阅读全文
posted @ 2024-02-01 10:13 ac23 阅读(8) 评论(0) 推荐(0) 编辑

2024年1月30日

摘要: 直接上表的DDL -- hypertable创建DDL: CREATE TABLE public.snapshot ( "Student" text NOT NULL, "Date" int8 NOT NULL, "Time" text NOT NULL, "Field" text NOT NULL 阅读全文
posted @ 2024-01-30 13:53 ac23 阅读(30) 评论(0) 推荐(0) 编辑

2024年1月20日

摘要: 背景 其实Ubuntu20.04之后完全可以用apt安装自带的Boost,只不过如果想要安装特定版本的Boost和静态链接(性能、发布时可以不带上Boost动态库考量),可以如下文自己去编译Boost 下载Boost源码 地址:https://www.boost.org/users/history/ 阅读全文
posted @ 2024-01-20 20:52 ac23 阅读(67) 评论(0) 推荐(0) 编辑

2024年1月16日

摘要: 借助Pg最新版本(16.1)进行的基于lz4或zstd算法的TOAST压缩 查看当前版本PG的编译时开启的配置选项 使用apt安装好最新的PG后,使用以下命令查看PG支持的特性 pg_config 命令输出结果: 红框处就显示,当前的PG支持LZ4和ZSTD两种压缩算法,再加上PG默认自带的pglz 阅读全文
posted @ 2024-01-16 20:29 ac23 阅读(1) 评论(0) 推荐(0) 编辑

2024年1月15日

摘要: 杀掉某个用户的所有进程 killall -u 用户名 Ubuntu20.04查看mac地址 ip addr show 结果在link/ether查看 阅读全文
posted @ 2024-01-15 09:40 ac23 阅读(3) 评论(0) 推荐(0) 编辑

2023年12月1日

摘要: 1.https://gist.github.com/jpz/1c33c466b9af1287abfa51497ab1c0a4 阅读全文
posted @ 2023-12-01 11:31 ac23 阅读(16) 评论(0) 推荐(0) 编辑

2023年11月30日

摘要: 背景 编译报错 OpenCL platform ID is empty OpenCL platform name is empty Failed to find any of these OpenCL platforms: Intel(R) FPGA Emulation Platform for O 阅读全文
posted @ 2023-11-30 15:37 ac23 阅读(29) 评论(0) 推荐(0) 编辑