diff --git a/README.rst b/README.rst index dda5e3a..7ac287f 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ Features Convert datafile formats via API: :: - tablib.import(filename='data.csv').export('data.json') + tablib.source(filename='data.csv').export('data.json') Convert datafile formats via CLI: :: @@ -75,11 +75,11 @@ Slice rows: :: # >>> [('John', 'Adams', 4.0), ('George', 'Washington', 2.6)] -Slice columns by header: :: - - print data['first_name'] - # >>> ['John', 'George', 'Henry'] - +.. Slice columns by header: :: +.. +.. print data['first_name'] +.. # >>> ['John', 'George', 'Henry'] +.. Manipulate rows by index: :: diff --git a/tablib/core.py b/tablib/core.py index 8ba5c43..a9ce1e2 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -111,7 +111,7 @@ class Dataset(object): pass - def add_row(self, index=None): + def append(self, row, index=None): pass def del_row(self):