While reading a pdf file using
“df = tabula.read_pdf(pdf_file, pages=‘all’)” —> displays all tables from all pages.
but when converting into a Pandas dataframe using
tables = pd.DataFrame(tabula.read_pdf(pdf_file, pages = ‘all’, lattice = ‘True’)[0])—> display only the table on the first page.