前文介绍
从 PDF 表格中提取表格数据时比较困难的。不久前,一位开发者提供了一个名为 Camelot 的工具,满足大家从 PDF 文件中提取表格数据。...conda install -c conda-forge camelot-py
Camelot 支持 Python 2.7, 3.5, 3.6 and 3.7 包含 (Linux, macOS and...文件的形式
# In[*]
>>> tables[0].df # get a pandas DataFrame!...>>> tables.export('foo.csv', f='csv', compress=True) # json, excel, html, sqlite,可指定输出格式
>>> tables[0...].to_csv('foo.csv') # to_json, to_excel, to_html, to_sqlite, 导出数据为文件
?