Value-preserving table composition and geometric transformations.
Procs
proc duplicateColumn(table: Table; index: int; copies = 1): Table {. ...raises: [ValueError], tags: [], forbids: [].}
- Inserts copies of one column and its cells immediately to its right.
proc duplicateRow(table: Table; index: int; copies = 1): Table {. ...raises: [ValueError], tags: [], forbids: [].}
- Inserts copies additional instances immediately after one body row.
proc extractColumns(table: Table; indexes: openArray[int]): Table {. ...raises: [ValueError], tags: [], forbids: [].}
- Returns the requested columns in the supplied order.
proc extractRows(table: Table; indexes: openArray[int]): Table {. ...raises: [ValueError], tags: [], forbids: [].}
- Returns the requested body rows in the supplied order.
proc horizontalConcat(left, right: Table): Table {....raises: [ValueError], tags: [], forbids: [].}
- Joins tables side by side. Their body heights and section presence match.
proc removeColumns(table: Table; indexes: openArray[int]): Table {. ...raises: [ValueError], tags: [], forbids: [].}
- Returns a copy without the specified columns.
proc removeRows(table: Table; indexes: openArray[int]): Table {. ...raises: [ValueError], tags: [], forbids: [].}
- Returns a copy without the specified body rows.
proc rotateClockwise(table: Table): Table {....raises: [ValueError, Exception], tags: [RootEffect], forbids: [].}
- Rotates the body 90 degrees clockwise.
proc rotateCounterClockwise(table: Table): Table {. ...raises: [ValueError, Exception], tags: [RootEffect], forbids: [].}
- Rotates the body 90 degrees counter-clockwise.
proc splitColumns(table: Table; at: range[0 .. high(int)]): tuple[ before, after: Table] {....raises: [ValueError], tags: [], forbids: [].}
- Splits the table before column index at.
proc verticalConcat(top, bottom: Table): Table {....raises: [ValueError], tags: [], forbids: [].}
- Stacks tables with equal column counts. The top presentation is retained.
Exports
-
addRow, roundedTheme, setFooter, cell, initTableMargin, addRow, initTable, OverflowMode, initCellPadding, row, setSpan, cell, initTable, setAlignment, setTitle, psqlTheme, contentWidth, setVerticalAlignment, clearFooter, markdownTheme, TableTheme, headerCell, Column, Table, columnCount, PanelPosition, CellPadding, maximumWidth, addPanel, Panel, panel, setVerticalAlignment, fixedWidth, setHeader, setPadding, Cell, VerticalAlignment, column, WidthKind, clearTitle, percentageWidth, customTheme, row, initRow, initColumn, setWidthPriority, Shadow, initCell, initShadow, setVerticalAlignment, footerCell, setAlignment, modernTheme, WidthConstraint, Row, minimumWidth, setAlignment, setPadding, TableMargin, column, borderlessTheme, setPadding, asciiTheme, clearHeader, BorderSet, clearSpan