代码语言:javascript复制
from tabula import read_pdf
报错:ImportError: cannot import name ‘read_pdf’
解决:
代码语言:javascript复制pip uninstall tabula
pip3 install tabula-py
代码语言:javascript复制import tabula
# Read pdf into DataFrame
df = tabula.read_pdf("./P26.pdf",pages=str(1))
代码语言:javascript复制from tabula import wrapper
df = wrapper.read_pdf('my_pdf')