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>
|
||||
>>> 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
|
||||
</pre>
|
||||
|
||||
|
|
|
|||
|
|
@ -30,20 +30,20 @@ Usage
|
|||
::
|
||||
|
||||
>>> 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
|
||||
|
||||
.. csv-table::
|
||||
|
|
|
|||
Loading…
Reference in New Issue