summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-11-09 08:43:34 -0500
committerKenneth Reitz <me@kennethreitz.com>2010-11-09 08:43:34 -0500
commit5fad80a540d95c7ba5e7dfa55f885509c992736b (patch)
tree97cbaf93772c10f57cacc2fb920b25ab2ec1955a
parentcabab73045943f28a230bfa74ff270fbebf083c2 (diff)
downloadtablib-5fad80a540d95c7ba5e7dfa55f885509c992736b.tar.gz
Update column append examples.
-rw-r--r--README.rst5
-rw-r--r--docs/tutorial.rst4
2 files changed, 4 insertions, 5 deletions
diff --git a/README.rst b/README.rst
index 3d01ed8..00b6345 100644
--- a/README.rst
+++ b/README.rst
@@ -61,7 +61,7 @@ Intelligently add new rows: ::
Intelligently add new columns: ::
- >>> data.append(col=('age', 90, 67, 83))
+ >>> data.append(col=(90, 67, 83), header='age')
Slice rows: ::
@@ -171,8 +171,7 @@ To install tablib, simply: ::
Or, if you absolutely must: ::
$ easy_install tablib
-
-
+
Contribute
----------
diff --git a/docs/tutorial.rst b/docs/tutorial.rst
index 774158d..d89c8c1 100644
--- a/docs/tutorial.rst
+++ b/docs/tutorial.rst
@@ -87,7 +87,7 @@ Adding Columns
Now that we have a basic :class:`Dataset` in place, let's add a column of **ages** to it. ::
- data.append(col=['Age', 22, 20])
+ data.append(col=[22, 20], header='Age')
Let's view the data now. ::
@@ -350,4 +350,4 @@ The resulting **tests.xls** will have the following layout:
----
-Now, go check out the :ref:`API Documentation <api>` or begin :ref:`Tablib Development <development>`. \ No newline at end of file
+Now, go check out the :ref:`API Documentation <api>` or begin :ref:`Tablib Development <development>`.