summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.org>2017-08-28 01:04:16 -0400
committerGitHub <noreply@github.com>2017-08-28 01:04:16 -0400
commitab6633549f2f2f331736f3f974483c0e39a451f2 (patch)
treee84c19601405b73fc55afa9cf9eb3d73bd618d03
parent56005d80222a487178742b70f8858e4fd96fd0e3 (diff)
downloadtablib-ab6633549f2f2f331736f3f974483c0e39a451f2.tar.gz
Update index.rst
-rw-r--r--docs/index.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 4a0f3f0..fb6db95 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -31,17 +31,17 @@ Tablib is an :ref:`MIT Licensed <mit>` format-agnostic tabular dataset library,
... data.append(i)
- >>> print(data.json)
+ >>> print(data.export('json'))
[{"Last Name": "Reitz", "First Name": "Kenneth", "Age": 22}, {"Last Name": "Monke", "First Name": "Bessie", "Age": 21}]
>>> print(data.yaml)
- {Age: 22, First Name: Kenneth, Last Name: Reitz}
- {Age: 21, First Name: Bessie, Last Name: Monke}
- >>> data.xlsx
+ >>> data.export('xlsx')
<censored binary data>
- >>> data.df
+ >>> data.export('df')
First Name Last Name Age
0 Kenneth Reitz 22
1 Bessie Monke 21