-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BigQuery: added methods for getting keys, items and dict (#4393)
* added methods for getting keys, items and dict This change enables to retrieve the row as a dict and iterate the keys and/or items, like with a normal dict; in other words, making the Row object a dict-like object: >>> row.dict() {'name': 'Isabel', 'profession': 'bridge builder'} >>> for k, v in row.items(): >>> for k in row.keys(): * fixed row length * removed whitespace from blank lines * removed trailing whitespace * responding to failed cover check * added docstrings * update unit tests * Update test_table.py * .keys() and .items() into generators * get method for Row * get method for Row * get method for Row * Update table.py * Update test_table.py * Update test_table.py
- Loading branch information
1 parent
36c4abd
commit e89ab7e
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters