02 2024 档案

(转发)pandas中set_index( )和reset_index( )以及reindex()区别
摘要:原文: http://anders.wang/pandaszhong-set_index-he-reset_index-yi-ji-reindex-qu-bie/ 写得比较好,感谢作者 阅读全文
posted @ 2024-02-29 15:31 ac23 阅读(9) 评论(0) 推荐(0) 编辑
(转发)Pandas中的reset_index()
摘要:原生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 阅读(12) 评论(0) 推荐(0) 编辑
PG用户权限管理
摘要:参考文章 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 阅读(197) 评论(0) 推荐(0) 编辑
psycopg2性能测试记录
摘要:50个股票 12个进程 1200秒 数据库表大小:669MB 一个超快的将Pandas的DataFrame数据导入Postgresql数据库中的方法: https://stackoverflow.com/a/47984180/16205177 使用该方法之后,50个股票,只开了4个进程,仅仅耗时73 阅读全文
posted @ 2024-02-02 17:20 ac23 阅读(16) 评论(0) 推荐(0) 编辑
压缩成GZ后pickle文件读取方式
摘要: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 阅读(18) 评论(0) 推荐(0) 编辑

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