From 895500af2478dc0cc41272d4746d629af65d7e5c Mon Sep 17 00:00:00 2001 From: Christopher Lee Date: Thu, 27 Mar 2014 10:59:03 -0700 Subject: [PATCH] changed filename --- example/test_to_pandas.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/test_to_pandas.py b/example/test_to_pandas.py index 00dccf3..bb31515 100644 --- a/example/test_to_pandas.py +++ b/example/test_to_pandas.py @@ -1,8 +1,8 @@ import pandas as pd import pdftableextract as pdf -pages = ["2"] -cells = [pdf.process_page("a.pdf",p) for p in pages] +pages = ["1"] +cells = [pdf.process_page("example.pdf",p) for p in pages] #flatten the cells structure cells = [item for sublist in cells for item in sublist ] @@ -17,3 +17,4 @@ #data is row '2' through '-1' data =pd.DataFrame(li[2:-1], columns=li[1], index=[l[0] for l in li[2:-1]]) +print data