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.
Declaration
Swift
public struct PTableextension PTable: CustomStringConvertibleextension PTable: Equatable -
A dtype-erased column of data.
See moreDeclaration
Swift
public struct PColumnextension PColumn: Equatable -
Undocumented
See moreDeclaration
Swift
@dynamicMemberLookup public struct PTypedColumn<T> where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashableextension PTypedColumn: Equatableextension PTypedColumn: CustomStringConvertible -
Undocumented
See moreDeclaration
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, aPColumn, and aPTable. APIndexSetis most often created via operations on the column types, such asPColumn‘snilsproperty, which returns aPIndexSetrepresenting 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 aPIndexSetis used to select rows out of aPTable, thecountproperty of thePIndexSetis checked to ensure it is exactly equal to thePTable’scountproperty.
See morePIndexSetsupports both in-place and chaining set operations.Declaration
Swift
public struct PIndexSet : Equatable -
Undocumented
See moreDeclaration
Swift
public enum PError : Error, Equatableextension PError: CustomStringConvertible
View on GitHub
Primary Types Reference