Primary Types

Penguin organizes data into PTables. Data is stored in columnar format inside PTypedColumns, however to make it easier to work with, PTable‘s are composed of multiple PColumns, which hold within them a PTypedColumn.

Penguin methods only throw errors of type PError, which makes them easy to catch and handle.

  • A collection of named PColumns.

    A PTable, also known as a data frame, represents a tabular collection of data.

    Invariants:

    • Each column must have the same number of elements.
    • Column names are unique.
    See more

    Declaration

    Swift

    public struct PTable
    extension PTable: CustomStringConvertible
    extension PTable: Equatable
  • A dtype-erased column of data.

    See more

    Declaration

    Swift

    public struct PColumn
    extension PColumn: Equatable
  • Undocumented

    See more

    Declaration

    Swift

    @dynamicMemberLookup
    public struct PTypedColumn<T> where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable
    extension PTypedColumn: Equatable
    extension PTypedColumn: CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public class Aggregation
  • PIndexSet represents a (non-strict) subset of indices of a column or table.

    PIndexSet is used for masking and other operations on a PTypedColumn, a PColumn, and a PTable. A PIndexSet is most often created via operations on the column types, such as PColumn‘s nils property, which returns a PIndexSet representing all the indices (rows) containing nils.

    To help catch errors, operations on PIndexSets check to ensure they represent collections of the same size. e.g. When a PIndexSet is used to select rows out of a PTable, the count property of the PIndexSet is checked to ensure it is exactly equal to the PTable’s count property.

    PIndexSet supports both in-place and chaining set operations.

    See more

    Declaration

    Swift

    public struct PIndexSet : Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public enum PError : Error, Equatable
    extension PError: CustomStringConvertible