Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import os
import sys
import pandas as pd
import pdfplumber
pdf =[1])
p0 = pdf.pages[0]
table = p0.extract_table()
print table
df = pd.DataFrame(table)
df.to_csv(os.path.splitext(sys.argv[1])[0] + '.csv', index=False, quoting=1, encoding='utf-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.