Row

This module creates a Python object Row for GreenplumPython DataFrame iteration.

class row.Row

Bases: Mapping[str, Union[Any, List[Any]]]

Represents a row of DataFrame.

A Row is conceptually an immutable dict.

Row is a subclass of abc.Mapping and it must implement all the methods in the latter class, as specified in the document of the built-in Abstract Base Class (ABC) module.

__getitem__(column_name)

Get the value of the column by the specified name.

Parameters

column_name (str) –

Return type

Any

keys()

Return Iterable of column names of row.

Returns

Iterable of column names

Return type

Iterable[str]

values()

Return Iterable of values of row.

Returns

Iterable[Any]

Return type

Iterable[Any]

items() a set-like object providing a view on D's items
Return type

Iterable[Tuple[str, Any]]