Replace double quotes
parent
874d77414c
commit
3b2d434ee9
14
README.md
14
README.md
|
|
@ -8,20 +8,20 @@ Camelot is a Python library and command-line tool for extracting tables from PDF
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
>>> import camelot
|
>>> import camelot
|
||||||
>>> tables = camelot.read_pdf("foo.pdf")
|
>>> tables = camelot.read_pdf('foo.pdf')
|
||||||
>>> tables
|
>>> tables
|
||||||
<TableList n=2>
|
<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]
|
>>> tables[0]
|
||||||
<Table shape=(3,4)>
|
<Table shape=(3,4)>
|
||||||
>>> tables[0].parsing_report
|
>>> tables[0].parsing_report
|
||||||
{
|
{
|
||||||
"accuracy": 96,
|
'accuracy': 96,
|
||||||
"whitespace": 80,
|
'whitespace': 80,
|
||||||
"order": 1,
|
'order': 1,
|
||||||
"page": 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
|
>>> tables[0].df
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,20 +30,20 @@ Usage
|
||||||
::
|
::
|
||||||
|
|
||||||
>>> import camelot
|
>>> import camelot
|
||||||
>>> tables = camelot.read_pdf("foo.pdf")
|
>>> tables = camelot.read_pdf('foo.pdf')
|
||||||
>>> tables
|
>>> tables
|
||||||
<TableList n=2>
|
<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]
|
>>> tables[0]
|
||||||
<Table shape=(3,4)>
|
<Table shape=(3,4)>
|
||||||
>>> tables[0].parsing_report
|
>>> tables[0].parsing_report
|
||||||
{
|
{
|
||||||
"accuracy": 96,
|
'accuracy': 96,
|
||||||
"whitespace": 80,
|
'whitespace': 80,
|
||||||
"order": 1,
|
'order': 1,
|
||||||
"page": 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
|
>>> tables[0].df
|
||||||
|
|
||||||
.. csv-table::
|
.. csv-table::
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue