kennethreitz / records

SQL for Humans™
https://pypi.python.org/pypi/records/
ISC License
7.14k stars 570 forks source link

How could I add a column in rows? #173

Open leafonsword opened 5 years ago

leafonsword commented 5 years ago

From doc

You get the point. All other features of Tablib are also available, so you can sort results, add/remove columns/rows, remove duplicates, transpose the table, add separators, slice data by column, and more.

but I got the err according to tablib's add columns syntax:

>>> rows.append_col((90), header='age')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    rows.append_col((90), header='age')
AttributeError: 'RecordCollection' object has no attribute 'append_col'
>>>                            

It seems rows could just export to csv,json,yaml..., could not support other tablib feature ~