Table extraction returning None for certain column in only some rows #1175
Replies: 1 comment
-
Hi @MatinQurban, and thanks for your interest in If your PDFs format such tables in a consistent manner, you might have some luck first using |
Beta Was this translation helpful? Give feedback.
-
Hello, I am extracting data from a pdf I am not sure why it returns None
Here is an example of the data I get:$', 'Markup $ ', None, 'Rate $', 'Total Hours', 'Total $ ']
['Estimate Totals', 'Discount
['Parts', '', '66.00', None, '', '', '2,490.48']
['Labor, Body', '', '', None, '70.00', '61.2', '4,284.00']
['Labor, Refinish', '', '', None, '70.00', '21.6', '1,512.00']
['Labor, Mechanical', '', '', None, '165.00', '3.1', '511.50']
['Material, Paint', '', '', None, '', '', '1,036.80']
['Miscellaneous', '', '', None, '', '', '171.80']
['Subtotal', '', '', None, '', '', '10,006.58']
['Sales Tax', '', '', None, '', '', '281.18']
['Grand Total', '', '', None, '', '', '10,287.76']
['Deductible', '', '', None, '', '', '(1,000.00)']
['Net Total', '', '', None, '', '', '9,287.76']
I tried it with another pdf of the same format and got this:
![image](https://private-user-images.githubusercontent.com/61672425/350617806-f6587d3b-c277-45ae-9594-2312e6f71e12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMzYzNDcsIm5iZiI6MTcyNjAzNjA0NywicGF0aCI6Ii82MTY3MjQyNS8zNTA2MTc4MDYtZjY1ODdkM2ItYzI3Ny00NWFlLTk1OTQtMjMxMmU2ZjcxZTEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDA2MjcyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzNzliYjAzYmYzMjE4MzhiZmUxOTRiOGU0ZmZjY2IzMzc4MzUwYmExOTI4OTYyY2JhMWUyZjViODc0YjU4YTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._sLkFixSvwX5LLLaHnN22G1ddhdmvaStFQMDAfsbRq8)
Data:$', 'Markup $ ', 'Rate $', 'Total Hours', 'Total $ ']
['Estimate Totals', 'Discount
['Parts', '', '121.25', '', '', '1,428.50']
['Labor, Body', '', '', '73.00', '15.9', '1,160.70']
['Labor, Refinish', '', '', '73.00', '10.2', '744.60']
['Labor, Mechanical', '', '', '198.99', '1.0', '198.99']
['Feather Prime and Block', '', '', '73.00', '1.2', '87.60']
['Material, Paint', '', '', '', '', '510.00']
['E.P.C.', '', '', '', '', '5.00']
Found a post that talks about using extract_text and making sure it works with pdfminer.six but since I'm using tables I thought it might be a different issue. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions