can't read pdf files by using camelot

333 views Asked by At

import camelot

from google.colab import files

uploaded = files.upload()

file = "foo.pdf"

tables = camelot.read_pdf(file)

print("Total tables extracted:", tables.n)

tables = camelot.read_pdf(file)

print("Total tables extracted:", tables.n)

print(tables[0].df)

i can't read the pdf file here.Also it is showing it as attribute error as AttributeError: module 'camelot' has no attribute 'read_pdf'.

0

There are 0 answers