Update column append examples.

This commit is contained in:
Kenneth Reitz
2010-11-09 08:43:34 -05:00
parent cabab73045
commit 5fad80a540
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -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
----------
+2 -2
View File
@@ -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>`.
Now, go check out the :ref:`API Documentation <api>` or begin :ref:`Tablib Development <development>`.