diff --git a/README.md b/README.md index 3f14d88..e0462cf 100644 --- a/README.md +++ b/README.md @@ -8,20 +8,20 @@ Camelot is a Python library and command-line tool for extracting tables from PDF
>>> import camelot
->>> tables = camelot.read_pdf("foo.pdf")
+>>> tables = camelot.read_pdf('foo.pdf')
>>> tables
<TableList n=2>
->>> tables.export("foo.csv", f="csv", compress=True) # json, excel, html
+>>> tables.export('foo.csv', f='csv', compress=True) # json, excel, html
>>> tables[0]
<Table shape=(3,4)>
>>> tables[0].parsing_report
{
- "accuracy": 96,
- "whitespace": 80,
- "order": 1,
- "page": 1
+ 'accuracy': 96,
+ 'whitespace': 80,
+ 'order': 1,
+ 'page': 1
}
->>> tables[0].to_csv("foo.csv") # to_json, to_excel, to_html
+>>> tables[0].to_csv('foo.csv') # to_json, to_excel, to_html
>>> tables[0].df
diff --git a/docs/index.rst b/docs/index.rst
index e3a56dd..29a0bb0 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -30,20 +30,20 @@ Usage
::
>>> import camelot
- >>> tables = camelot.read_pdf("foo.pdf")
+ >>> tables = camelot.read_pdf('foo.pdf')
>>> tables