5.2.9. xgt.TableRow

class xgt.TableRow(mapping=None, *, container_map: _ContainerMap | None = None, validation_id: int = 0)

Represents a row from a table frame providing access to the row properties and the frame the row belongs to.

The user shouldn’t manually construct these. They will be constructed by calls to get_data().

The class is implemented as a dictionary with the following keys:

  • ‘id’: Row ID

  • ‘metadata’: dict containing frame metadata:

  • ‘name’: Table frame name

  • ‘properties’: dict mapping column names to values

Experimental: The API of this class may change in future releases.

Attributes

frame

The frame the element belongs to.

position

The position of the element's row in its frame.

properties

A dictionary of the properties of the element.

property frame: TableFrame | VertexFrame | EdgeFrame

The frame the element belongs to.

property position: int

The position of the element’s row in its frame.

property properties: dict[str, Any]

A dictionary of the properties of the element. The keys are the property names.