summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.org>2017-08-28 01:02:49 -0400
committerGitHub <noreply@github.com>2017-08-28 01:02:49 -0400
commit56005d80222a487178742b70f8858e4fd96fd0e3 (patch)
tree5573fe2acd8a8add991434a5b39e8977d86d8eec
parent36fa7ef097895fb0338515246beffed1557b1510 (diff)
downloadtablib-56005d80222a487178742b70f8858e4fd96fd0e3.tar.gz
Update README.rst
-rw-r--r--README.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index 3a54c5c..daa1b91 100644
--- a/README.rst
+++ b/README.rst
@@ -87,7 +87,7 @@ JSON!
+++++
::
- >>> print(data.json)
+ >>> print(data.export('json'))
[
{
"last_name": "Adams",
@@ -106,7 +106,7 @@ YAML!
+++++
::
- >>> print(data.yaml)
+ >>> print(data.export('yaml'))
- {age: 90, first_name: John, last_name: Adams}
- {age: 83, first_name: Henry, last_name: Ford}
@@ -114,7 +114,7 @@ CSV...
++++++
::
- >>> print(data.csv)
+ >>> print(data.export('csv'))
first_name,last_name,age
John,Adams,90
Henry,Ford,83
@@ -124,20 +124,20 @@ EXCEL!
::
>>> with open('people.xls', 'wb') as f:
- ... f.write(data.xls)
+ ... f.write(data.export('xls'))
DBF!
++++
::
>>> with open('people.dbf', 'wb') as f:
- ... f.write(data.dbf)
+ ... f.write(data.export('dbf'))
Pandas DataFrame!
+++++++++++++++++
::
- >>> print(data.df):
+ >>> print(data.export('df')):
first_name last_name age
0 John Adams 90
1 Henry Ford 83