From bb4e97f8aae83f3f98f265c3cf2c98e0418c83d0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 14 Sep 2010 00:01:59 -0400 Subject: Updated readme for column additions. --- README.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 86da367..32d477f 100644 --- a/README.rst +++ b/README.rst @@ -31,11 +31,11 @@ Usage Populate fresh data files: :: - headers = ('first_name', 'last_name', 'gpa') + headers = ('first_name', 'last_name') data = [ - ('John', 'Adams', 90), - ('George', 'Washington', 67) + ('John', 'Adams'), + ('George', 'Washington') ] data = tablib.Dataset(*data, headers=headers) @@ -43,7 +43,11 @@ Populate fresh data files: :: Intelligently add new rows: :: - >>> data.append(('Henry', 'Ford', 83)) + >>> data.append(('Henry', 'Ford')) + +Intelligently add new columns: :: + + >>> data.append(col=('age', 90, 67, 83)) Slice rows: :: @@ -122,7 +126,7 @@ Or, if you absolutely must: :: Contribute ---------- -If you'd like to contribute, simply fork `the repository`_, commit your changes, and send a pull request. Make sure you add yourself to AUTHORS_. +If you'd like to contribute, simply fork `the repository`_, commit your changes to the **develop** branch (or branch off of it), and send a pull request. Make sure you add yourself to AUTHORS_. Roadmap -- cgit v1.2.1