plestylib.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#
Represents the header of a PlestyTable, defining column names and types. |
|
A simple 2D table structure that holds a list of 1d PlestyArrays, |
|
A simple 3D table structure that holds a list of 2d PlestyTables, |
Module Contents#
- class plestylib.data.table.TableHeader#
Represents the header of a PlestyTable, defining column names and types.
- name: str#
- dtype: type | None = None#
- unit: str | None = None#
- description: str | None = None#
- class plestylib.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[plestylib.data.array.PlestyArray]#
- header: list[TableHeader] | None = None#
- description: str | None = None#
- class plestylib.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[plestylib.data.array.PlestyArray]]#
- rheader: list[TableHeader] | None = None#
- cheader: list[TableHeader] | None = None#
- description: str | None = None#
- get_item_at(row: int, col: int) plestylib.data.array.PlestyArray#
Get the item at the specified row and column.
- Parameters:
row (int)
col (int)
- Return type: