![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小工具
Along1617188
AI-follower
展开
-
Python 检索excel中是否包含某关键词,并将结果单独输出一列
Python 检索excel原创 2022-12-16 10:15:43 · 1552 阅读 · 0 评论 -
Python zipfile 解压zip文件至当前文件夹
import osimport zipfiledef get_image_from_zip(work_path): ''' params work_path : zip file absolute path to do : Unzip files from a zip ''' if work_path.split('.')[-1] == 'zip': zip_file = zipfile.ZipFile(work_path原创 2021-11-19 09:57:18 · 679 阅读 · 0 评论 -
Python tabula 从PDF中获取表格内容写入CSV
import tabulaimport osdef mask_csv_from_pdf(work_path):'''params work_path: your pdf pathto do : get table context from pdf file''' df = tabula.read_pdf(work_path, output_format='dataframe', pages='all') df[0].to_csv(os.path.splitext(wor原创 2021-11-19 09:44:06 · 1009 阅读 · 0 评论