on-internet
← Community

Combining Multiple Page PDF Table Data into a Single DataFrame in Python

Stack Overflow ·

I have a PDF file containing tabular data spread across multiple pages. The first page of the PDF contains the column headers, while subsequent pages contain rows of data corresponding to those headers. When I use Python and tabula to extract the tables, I end up with a list of DataFrames, one for each page. My goal is to combine these DataFrames into a single DataFrame, treating the entire PDF as a single table. However, when I attempt to concatenate the DataFrames using pd.concat, I encounter issues where rows with NaN values are introduced, likely due to the differing column structures betw

Comments

Sign in or sign up to comment and upvote.

No comments yet.