PTypedColumn
@dynamicMemberLookup
public struct PTypedColumn<T> where T : PCSVParsible, T : PDefaultInit, T : PStringParsible, T : Comparable, T : Hashable
extension PTypedColumn: Equatable
extension PTypedColumn: CustomStringConvertible
Undocumented
-
Undocumented
Declaration
Swift
public init(_ contents: [T])
-
Undocumented
Declaration
Swift
public init(_ contents: [T?])
-
Undocumented
Declaration
Swift
public func map<U>(_ transform: (T) throws -> U) rethrows -> PTypedColumn<U> where U : PCSVParsible, U : PDefaultInit, U : PStringParsible, U : Comparable, U : Hashable
-
Undocumented
Declaration
Swift
public func reduce(_ initial: T, _ reducer: (T, T) throws -> T) rethrows -> T
-
Undocumented
Declaration
Swift
public var count: Int { get }
-
Undocumented
Declaration
Swift
public subscript(index: Int) -> T? { get set }
-
Undocumented
Declaration
Swift
public subscript(indexSet: PIndexSet) -> PTypedColumn { get }
-
Undocumented
Declaration
Swift
public subscript(strAt index: Int) -> String? { get }
-
Undocumented
Declaration
Swift
public subscript(dynamicMember keypath: KeyPath<T, Bool>) -> PIndexSet { get }
-
Undocumented
Declaration
Swift
public static func == (lhs: PTypedColumn, rhs: T) -> PIndexSet
-
Undocumented
Declaration
Swift
public static func != (lhs: PTypedColumn, rhs: T) -> PIndexSet
-
Undocumented
Declaration
Swift
public func filter(_ body: (T) -> Bool) -> PIndexSet
-
Undocumented
Declaration
Swift
public mutating func _sort(_ indices: [Int])
-
Undocumented
Declaration
Swift
public func hasNils() -> Bool
-
Undocumented
Declaration
Swift
public var nonNils: PIndexSet { get }
-
Replace all rows of missing data with
value
.Declaration
Swift
public mutating func fillNils(with value: T)
-
Returns a copy of
self
where all missing data has been replaced withvalue
.Declaration
Swift
public func fillingNils(with value: T) -> PTypedColumn<T>
-
Undocumented
Declaration
Swift
@discardableResult public mutating func append(_ entry: String) -> Bool
-
Undocumented
Declaration
Swift
public mutating func appendNil()
-
Undocumented
Declaration
Swift
public internal(set) var nils: PIndexSet
-
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool
-
Declaration
Swift
public var description: String { get }
-
Undocumented
Declaration
Swift
public func sum() -> T
-
Undocumented
Declaration
Swift
public func min() -> T
-
Undocumented
Declaration
Swift
public func max() -> T
-
Undocumented
Declaration
Swift
public static func < (lhs: PTypedColumn, rhs: T) -> PIndexSet
-
Undocumented
Declaration
Swift
public static func <= (lhs: PTypedColumn, rhs: T) -> PIndexSet
-
Undocumented
Declaration
Swift
public static func > (lhs: PTypedColumn, rhs: T) -> PIndexSet
-
Undocumented
Declaration
Swift
public static func >= (lhs: PTypedColumn, rhs: T) -> PIndexSet
-
Undocumented
Declaration
Swift
public func avg() -> Double
-
Undocumented
Declaration
Swift
public func numericSummary() -> PColumnSummary
-
Undocumented
Declaration
Swift
public func stringSummary() -> PColumnSummary