用python pandas打开pdf并在表中阅读 [英] Opening a pdf and reading in tables with python pandas

查看:813
本文介绍了用python pandas打开pdf并在表中阅读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用python pandas打开PDF并阅读它,还是必须使用pandas剪贴板才能实现此功能?

Is it possible to open PDFs and read it in using python pandas or do I have to use the pandas clipboard for this function?

推荐答案

这是不可能的. PDF是用于打印的数据格式.因此,表结构丢失了.运气好的话,您可以使用 pypdf 提取文本并猜测前面的表格列.

this is not possible. PDF is a data format for printing. The table structure is therefor lost. with some luck you can extract the text with pypdf and guess the former table columns.

这篇关于用python pandas打开pdf并在表中阅读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆