Stay organized with collections Save and categorize content based on your preferences.
Row(values, field_to_index)
A BigQuery row.
Values can be accessed by position (index), by key like a dict, or as properties.
Parameters Name Description valuesSequence[object]
The row values
field_to_indexDict[str, int]
A mapping from schema field names to indexes
Inheritancebuiltins.object > Row Methods getget(key: str, default: Optional[Any] = None)
Return a value for key, with a default value if it does not exist.
Parameters Name Description keystr
The key of the column to access
defaultobject
The default value to use if the key does not exist. (Defaults to :data:None
.)
None
when the key does not exist. >>> Row(('a', 'b'), {'x': 0, 'y': 1}).get('z') None The default value can be overrided with the default
parameter. >>> Row(('a', 'b'), {'x': 0, 'y': 1}).get('z', '') '' >>> Row(('a', 'b'), {'x': 0, 'y': 1}).get('z', default = '') '' The value associated with the provided key, or a default value. items
Return items as (key, value)
pairs.
(key, value)
pairs representing this row. keys
Return the keys for using a row as a dict.
Returns Type Description Iterable[str] .. rubric:: Examples >>> list(Row(('a', 'b'), {'x': 0, 'y': 1}).keys()) ['x', 'y'] The keys corresponding to the columns of a row valuesReturn the values included in this row.
Returns Type Description Sequence[object] A sequence of lengthlen(row)
. __init__
__init__(values, field_to_index)
Initialize self. See help(type(self)) for accurate signature.
RowRow(values, field_to_index)
A BigQuery row.
Values can be accessed by position (index), by key like a dict, or as properties.
Parameters Name Description valuesSequence[object]
The row values
field_to_indexDict[str, int]
A mapping from schema field names to indexes
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4