We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Users have reported that add_row is clunky to work with. Hence the following API is suggested:
Example:
t = Table() t.add_column('A', int) t.add_column('B', int) t.add_column('C', int)
The following examples are all valid and append the row (1,2,3) to the table.
t.add_row(1,2,3) t.add_row([1,2,3]) t.add_row((1,2,3)) t.add_row(*(1,2,3)) t.add_row(A=1, B=2, C=3) t.add_row(**{'A':1, 'B':2, 'C':3})
The following examples add two rows to the table
t.add_row((1,2,3), (4,5,6)) # adds two rows. t.add_row([1,2,3], [4,5,6]) t.add_row({'A':1, 'B':2, 'C':3}, {'A':4, 'B':5, 'C':6}) # two (or more) dicts as args. t.add_row([{'A':1, 'B':2, 'C':3}, {'A':1, 'B':2, 'C':3}]]) # list of dicts.
Please vote & comment.
The text was updated successfully, but these errors were encountered:
Update of the add_row api to satisfy #7
e09c4ee
Done in e09c4ee
Sorry, something went wrong.
Packaged to pypi as https://pypi.org/project/tablite/2020.10.30.46577/
940c73e
root-11
No branches or pull requests
Users have reported that add_row is clunky to work with. Hence the following API is suggested:
Example:
The following examples are all valid and append the row (1,2,3) to the table.
The following examples add two rows to the table
Please vote & comment.
The text was updated successfully, but these errors were encountered: