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 Descriptionvalues
Sequence[object]
The row values
field_to_index
Dict[str, int]
A mapping from schema field names to indexes
Methods getget(key: str, default: typing.Optional[typing.Any] = None) -> typing.Any
Return a value for key, with a default value if it does not exist.
Parameters Name Descriptionkey
str
The key of the column to access
default
object
The default value to use if the key does not exist. (Defaults to :data:None
.)
object .. rubric:: Examples When the key exists, the value associated with it is returned. >>> Row(('a', 'b'), {'x': 0, 'y': 1}).get('x') 'a' The default value is :data:None
when the key does not exist. >>> Row(('a', 'b'), {'x': 0, 'y': 1}).get('z') None The default value can be overridden 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
items() -> typing.Iterable[typing.Tuple[str, typing.Any]]
Return items as (key, value)
pairs.
Iterable[Tuple[str, object]] .. rubric:: Examples >>> list(Row(('a', 'b'), {'x': 0, 'y': 1}).items()) [('x', 'a'), ('y', 'b')]
The (key, value)
pairs representing this row. keys
keys() -> typing.Iterable[str]
Return the keys for using a row as a dict.
Returns Type DescriptionIterable[str] .. rubric:: Examples >>> list(Row(('a', 'b'), {'x': 0, 'y': 1}).keys()) ['x', 'y']
The keys corresponding to the columns of a row values
Return the values included in this row.
Returns Type DescriptionSequence[object]
A sequence of length len(row)
. __init__
__init__(values, field_to_index) -> None
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 Descriptionvalues
Sequence[object]
The row values
field_to_index
Dict[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