diff options
| -rw-r--r-- | docs/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.rst b/docs/index.rst index 482cc6d..7bf1a41 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -26,8 +26,8 @@ Tablib is an :ref:`MIT Licensed <mit>` format-agnostic tabular dataset library, :: - >>> data = tablib.Dataset(headers=['First Name', 'Last Name', 'Age']) - >>> data.extend([('Kenneth', 'Reitz', 23), ('Bessie', 'Monke', 22)]) + >>> data = tablib.Dataset(*[('Kenneth', 'Reitz', 23), ('Bessie', 'Monke', 22)], + headers=['First Name', 'Last Name', 'Age']) >>> data.json [{"Last Name": "Reitz", "First Name": "Kenneth", "Age": 22}, {"Last Name": "Monke", "First Name": "Bessie", "Age": 21}] |
