PColumn
public struct PColumn
extension PColumn: Equatable
A dtype-erased column of data.
-
Undocumented
Declaration
Swift
public init<T>(_ col: PTypedColumn<T>) where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable -
Undocumented
Declaration
Swift
public init<T>(empty: T.Type) where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable -
Undocumented
Declaration
Swift
public init<T>(_ contents: [T]) where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable -
Undocumented
Declaration
Swift
public init<T>(_ contents: [T?]) where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable -
Undocumented
Declaration
Swift
public var count: Int { get } -
Undocumented
Declaration
Swift
public func asDType<DT>() throws -> PTypedColumn<DT> where DT : PCSVParsible, DT : PDefaultInit, DT : PStringParsible, DT : Comparable, DT : Hashable -
Undocumented
Declaration
Swift
public func asString() -> PTypedColumn<String> -
Undocumented
Declaration
Swift
public func asInt() -> PTypedColumn<Int> -
Undocumented
Declaration
Swift
public func asDouble() -> PTypedColumn<Double> -
Undocumented
Declaration
Swift
public func asBool() -> PTypedColumn<Bool> -
Undocumented
Declaration
Swift
public var dtypeString: String { get } -
Undocumented
Declaration
Swift
public subscript(strAt index: Int) -> String? { get } -
Undocumented
Declaration
Swift
public subscript(indexSet: PIndexSet) -> PColumn { get } -
Undocumented
Declaration
Swift
public subscript<T>(index: Int) -> T? where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable { get set } -
Undocumented
Declaration
Swift
public var nils: PIndexSet { get } -
Undocumented
Declaration
Swift
public func hasNils() -> Bool -
Fill in missing entries in the column with
value.Declaration
Swift
public mutating func fillNils<T>(with value: T) where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable -
Returns a copy of
self, with all missing entries in the column set tovalue.Declaration
Swift
public func fillingNils<T>(with value: T) -> PColumn where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable -
Undocumented
Declaration
Swift
@discardableResult public mutating func append(_ entry: String) -> Bool -
Undocumented
Declaration
Swift
public mutating func appendNil() -
Undocumented
Declaration
Swift
public mutating func _sort(_ indices: [Int]) -
Undocumented
Declaration
Swift
public func summarize() -> PColumnSummary -
Undocumented
Declaration
Swift
public mutating func optimize() -
Declaration
Swift
public static func == (lhs: PColumn, rhs: PColumn) -> Bool
View on GitHub
PColumn Structure Reference