Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How could I add a column in rows? #173

Open
leafonsword opened this issue Apr 29, 2019 · 0 comments
Open

How could I add a column in rows? #173

leafonsword opened this issue Apr 29, 2019 · 0 comments

Comments

@leafonsword
Copy link

leafonsword commented Apr 29, 2019

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 ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant