plesty.lib.data.table

This module defines the PlestyTable class, which represents a tabular data structure with named columns and rows. It provides methods for accessing and manipulating the data in a structured way.

Classes

TableHeader

Represents the header of a PlestyTable, defining column names and types.

PlestyTable2D

A simple 2D table structure that holds a list of 1d PlestyArrays,

PlestyTable3D

A simple 3D table structure that holds a list of 2d PlestyTables,

Module Contents

class plesty.lib.data.table.TableHeader

Represents the header of a PlestyTable, defining column names and types.

name: str
dtype: Any = None
unit: str | None = None
description: str | None = None
class plesty.lib.data.table.PlestyTable2D

A simple 2D table structure that holds a list of 1d PlestyArrays, each representing a row/column of the table.

name: str
data: list[plesty.lib.data.array.PlestyArray]
header: list[TableHeader] | None = None
description: str | None = None
class plesty.lib.data.table.PlestyTable3D

A simple 3D table structure that holds a list of 2d PlestyTables, each representing a layer of the table.

name: str
shape: tuple[int, int]
data: list[list[plesty.lib.data.array.PlestyArray]]
rheader: list[TableHeader] | None = None
cheader: list[TableHeader] | None = None
description: str | None = None
get_item_at(row: int, col: int) plesty.lib.data.array.PlestyArray

Get the item at the specified row and column.

Parameters:
  • row (int)

  • col (int)

Return type:

plesty.lib.data.array.PlestyArray