mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
API change.
This commit is contained in:
+6
-6
@@ -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: ::
|
||||
|
||||
|
||||
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user