| 1 | // swift-interface-format-version: 1.0 |
| 2 | // swift-compiler-version: Apple Swift version 6.3.2 (swiftlang-6.3.2.1.2 clang-2100.0.123.2) |
| 3 | // swift-module-flags: -target arm64e-apple-ios26.5 -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -library-level api -enable-experimental-feature DebugDescriptionMacro -user-module-version 52 -module-name TabularData |
| 4 | // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2 |
| 5 | import Combine |
| 6 | import Dispatch |
| 7 | import Foundation |
| 1 | // swift-interface-format-version: 1.0 |
| 2 | // swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.19.4 clang-2100.3.19.4) |
| 3 | // swift-module-flags: -target arm64e-apple-ios27.0 -enable-objc-interop -enable-library-evolution -language-mode 6 -O -library-level api -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature ExistentialAny -enable-experimental-feature DebugDescriptionMacro -user-module-version 55 -module-name TabularData |
| 4 | // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 |
| 5 | import Combine |
| 6 | import Dispatch |
| 7 | import Foundation |
| 10 | import _StringProcessing |
| 11 | import _SwiftConcurrencyShims |
| 12 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 13 | public protocol ColumnProtocol<Element> : Swift.BidirectionalCollection { |
| 14 | var name: Swift.String { get set } |
| 15 | } |
| 16 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 17 | public protocol OptionalColumnProtocol<WrappedElement> : TabularData.ColumnProtocol { |
| 18 | associatedtype WrappedElement where Self.Element == Self.WrappedElement? |
| 19 | } |
| 20 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 21 | public protocol AnyColumnProtocol { |
| 22 | var name: Swift.String { get set } |
| 23 | var count: Swift.Int { get } |
| 24 | var wrappedElementType: any Any.Type { get } |
| 25 | subscript(position: Swift.Int) -> Any? { get } |
| 26 | subscript(range: Swift.Range<Swift.Int>) -> TabularData.AnyColumnSlice { get } |
| 27 | } |
| 28 | extension TabularData.DataFrame { |
| 29 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 30 | public mutating func renameColumn(_ name: Swift.String, to newName: Swift.String) |
| 31 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 32 | public mutating func replaceColumn(_ name: Swift.String, with newColumn: TabularData.AnyColumn) |
| 33 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 34 | public mutating func replaceColumn<T>(_ id: TabularData.ColumnID<T>, with newColumn: TabularData.AnyColumn) |
| 35 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 36 | public mutating func replaceColumn<T>(_ name: Swift.String, with newColumn: TabularData.Column<T>) |
| 37 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 38 | public mutating func replaceColumn<T, U>(_ id: TabularData.ColumnID<T>, with newColumn: TabularData.Column<U>) |
| 39 | } |
| 40 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 41 | @dynamicMemberLookup public struct DataFrame : TabularData.DataFrameProtocol { |
| 42 | public var columns: [TabularData.AnyColumn] { |
| 43 | get |
| 44 | } |
| 45 | public var rows: TabularData.DataFrame.Rows { |
| 46 | get |
| 47 | set |
| 48 | } |
| 49 | public var shape: (rows: Swift.Int, columns: Swift.Int) { |
| 50 | get |
| 51 | } |
| 52 | public init() |
| 53 | public init<S>(columns: S) where S : Swift.Sequence, S.Element == TabularData.AnyColumn |
| 54 | public init(_ other: TabularData.DataFrame.Slice) |
| 55 | public func indexOfColumn(_ columnName: Swift.String) -> Swift.Int? |
| 56 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 57 | @inlinable public func containsColumn<T>(_ id: TabularData.ColumnID<T>) -> Swift.Bool { |
| 58 | guard let index = indexOfColumn(id.name) else { |
| 59 | return false |
| 60 | } |
| 61 | return columns[index].wrappedElementType == T.self |
| 62 | } |
| 63 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 64 | @inlinable public func containsColumn<T>(_ name: Swift.String, _ type: T.Type) -> Swift.Bool { |
| 65 | guard let index = indexOfColumn(name) else { |
| 66 | return false |
| 67 | } |
| 68 | return columns[index].wrappedElementType == T.self |
| 69 | } |
| 70 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 71 | @inlinable public func containsColumn(_ name: Swift.String) -> Swift.Bool { |
| 72 | indexOfColumn(name) != nil |
| 73 | } |
| 74 | public func columnNames(forAlias alias: Swift.String) -> [Swift.String] |
| 75 | public mutating func addAlias(_ alias: Swift.String, forColumn columnName: Swift.String) |
| 76 | public mutating func removeAlias(_ alias: Swift.String) |
| 77 | public mutating func append<T>(column: TabularData.Column<T>) |
| 78 | public mutating func append(column: TabularData.AnyColumn) |
| 79 | public mutating func insert<T>(column: TabularData.Column<T>, at index: Swift.Int) |
| 80 | public mutating func insert(column: TabularData.AnyColumn, at index: Swift.Int) |
| 81 | @discardableResult |
| 82 | public mutating func removeColumn<T>(_ id: TabularData.ColumnID<T>) -> TabularData.Column<T> |
| 83 | @discardableResult |
| 84 | public mutating func removeColumn(_ name: Swift.String) -> TabularData.AnyColumn |
| 85 | public mutating func transformColumn<From, To>(_ id: TabularData.ColumnID<From>, _ transform: (From?) throws -> To?) rethrows |
| 86 | public mutating func transformColumn<From, To>(_ id: TabularData.ColumnID<From>, _ transform: (From) throws -> To?) rethrows |
| 87 | public mutating func transformColumn<From, To>(_ name: Swift.String, _ transform: (From?) throws -> To?) rethrows |
| 88 | public mutating func transformColumn<From, To>(_ name: Swift.String, _ transform: (From) throws -> To?) rethrows |
| 89 | public mutating func append(row: TabularData.DataFrame.Row) |
| 90 | public mutating func append(row: Any?...) |
| 91 | public mutating func append(valuesByColumn dictionary: [Swift.String : Any?]) |
| 92 | public mutating func appendEmptyRow() |
| 93 | public mutating func insert(row: TabularData.DataFrame.Row, at index: Swift.Int) |
| 94 | public mutating func removeRow(at index: Swift.Int) |
| 95 | public func prefix(_ maxLength: Swift.Int) -> TabularData.DataFrame.Slice |
| 96 | public func suffix(_ maxLength: Swift.Int) -> TabularData.DataFrame.Slice |
| 97 | public mutating func append(rowsOf other: TabularData.DataFrame) |
| 98 | public mutating func append(_ other: TabularData.DataFrame) |
| 99 | public mutating func append(_ other: TabularData.DataFrame.Slice) |
| 100 | public func filter<T>(on columnName: Swift.String, _ type: T.Type, _ isIncluded: (T?) throws -> Swift.Bool) rethrows -> TabularData.DataFrame.Slice |
| 101 | public func filter<T>(on columnID: TabularData.ColumnID<T>, _ isIncluded: (T?) throws -> Swift.Bool) rethrows -> TabularData.DataFrame.Slice |
| 102 | public func filter(_ isIncluded: (TabularData.DataFrame.Row) throws -> Swift.Bool) rethrows -> TabularData.DataFrame.Slice |
| 103 | public func selecting<S>(columnNames: S) -> TabularData.DataFrame where S : Swift.Sequence, S.Element == Swift.String |
| 104 | public func selecting(columnNames: Swift.String...) -> TabularData.DataFrame |
| 105 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 106 | public typealias ColumnType = TabularData.AnyColumn |
| 107 | } |
| 108 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 109 | extension TabularData.DataFrame { |
| 110 | public subscript(dynamicMember columnName: Swift.String) -> TabularData.AnyColumn { |
| 111 | get |
| 112 | set |
| 113 | } |
| 114 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 115 | public subscript(columnName: Swift.String) -> TabularData.AnyColumn { |
| 116 | get { |
| 117 | guard let columnIndex = indexOfColumn(columnName) else { |
| 118 | fatalError("There is no column named '\(columnName)' in the DataFrame.") |
| 10 | import _StringProcessing |
| 11 | import _SwiftConcurrencyShims |
| 12 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 13 | public protocol ColumnProtocol<Element> : Swift::BidirectionalCollection { |
| 14 | var name: Swift::String { get set } |
| 15 | } |
| 16 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 17 | public protocol OptionalColumnProtocol<WrappedElement> : TabularData::ColumnProtocol { |
| 18 | associatedtype WrappedElement where Self.Element == Self.WrappedElement? |
| 19 | } |
| 20 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 21 | public protocol AnyColumnProtocol { |
| 22 | var name: Swift::String { get set } |
| 23 | var count: Swift::Int { get } |
| 24 | var wrappedElementType: any Any.Type { get } |
| 25 | subscript(position: Swift::Int) -> Any? { get } |
| 26 | subscript(range: Swift::Range<Swift::Int>) -> TabularData::AnyColumnSlice { get } |
| 27 | } |
| 28 | extension TabularData::DataFrame { |
| 29 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 30 | public mutating func renameColumn(_ name: Swift::String, to newName: Swift::String) |
| 31 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 32 | public mutating func replaceColumn(_ name: Swift::String, with newColumn: TabularData::AnyColumn) |
| 33 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 34 | public mutating func replaceColumn<T>(_ id: TabularData::ColumnID<T>, with newColumn: TabularData::AnyColumn) |
| 35 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 36 | public mutating func replaceColumn<T>(_ name: Swift::String, with newColumn: TabularData::Column<T>) |
| 37 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 38 | public mutating func replaceColumn<T, U>(_ id: TabularData::ColumnID<T>, with newColumn: TabularData::Column<U>) |
| 39 | } |
| 40 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 41 | @dynamicMemberLookup public struct DataFrame : TabularData::DataFrameProtocol { |
| 42 | public var columns: [TabularData::AnyColumn] { |
| 43 | get |
| 44 | } |
| 45 | public var rows: TabularData::DataFrame.TabularData::Rows { |
| 46 | get |
| 47 | set |
| 48 | } |
| 49 | public var shape: (rows: Swift::Int, columns: Swift::Int) { |
| 50 | get |
| 51 | } |
| 52 | public init() |
| 53 | public init<S>(columns: S) where S : Swift::Sequence, S.Element == TabularData::AnyColumn |
| 54 | public init(_ other: TabularData::DataFrame.TabularData::Slice) |
| 55 | public func indexOfColumn(_ columnName: Swift::String) -> Swift::Int? |
| 56 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 57 | @inlinable public func containsColumn<T>(_ id: TabularData::ColumnID<T>) -> Swift::Bool { |
| 58 | guard let index = indexOfColumn(id.name) else { |
| 59 | return false |
| 60 | } |
| 61 | return columns[index].wrappedElementType == T.self |
| 62 | } |
| 63 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 64 | @inlinable public func containsColumn<T>(_ name: Swift::String, _ type: T.Type) -> Swift::Bool { |
| 65 | guard let index = indexOfColumn(name) else { |
| 66 | return false |
| 67 | } |
| 68 | return columns[index].wrappedElementType == T.self |
| 69 | } |
| 70 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 71 | @inlinable public func containsColumn(_ name: Swift::String) -> Swift::Bool { |
| 72 | indexOfColumn(name) != nil |
| 73 | } |
| 74 | public func columnNames(forAlias alias: Swift::String) -> [Swift::String] |
| 75 | public mutating func addAlias(_ alias: Swift::String, forColumn columnName: Swift::String) |
| 76 | public mutating func removeAlias(_ alias: Swift::String) |
| 77 | public mutating func append<T>(column: TabularData::Column<T>) |
| 78 | public mutating func append(column: TabularData::AnyColumn) |
| 79 | public mutating func insert<T>(column: TabularData::Column<T>, at index: Swift::Int) |
| 80 | public mutating func insert(column: TabularData::AnyColumn, at index: Swift::Int) |
| 81 | @discardableResult |
| 82 | public mutating func removeColumn<T>(_ id: TabularData::ColumnID<T>) -> TabularData::Column<T> |
| 83 | @discardableResult |
| 84 | public mutating func removeColumn(_ name: Swift::String) -> TabularData::AnyColumn |
| 85 | public mutating func transformColumn<From, To>(_ id: TabularData::ColumnID<From>, _ transform: (From?) throws -> To?) rethrows |
| 86 | public mutating func transformColumn<From, To>(_ id: TabularData::ColumnID<From>, _ transform: (From) throws -> To?) rethrows |
| 87 | public mutating func transformColumn<From, To>(_ name: Swift::String, _ transform: (From?) throws -> To?) rethrows |
| 88 | public mutating func transformColumn<From, To>(_ name: Swift::String, _ transform: (From) throws -> To?) rethrows |
| 89 | public mutating func append(row: TabularData::DataFrame.TabularData::Row) |
| 90 | public mutating func append(row: Any?...) |
| 91 | public mutating func append(valuesByColumn dictionary: [Swift::String : Any?]) |
| 92 | public mutating func appendEmptyRow() |
| 93 | public mutating func insert(row: TabularData::DataFrame.TabularData::Row, at index: Swift::Int) |
| 94 | public mutating func removeRow(at index: Swift::Int) |
| 95 | public func prefix(_ maxLength: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 96 | public func suffix(_ maxLength: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 97 | public mutating func append(rowsOf other: TabularData::DataFrame) |
| 98 | public mutating func append(_ other: TabularData::DataFrame) |
| 99 | public mutating func append(_ other: TabularData::DataFrame.TabularData::Slice) |
| 100 | public func filter<T>(on columnName: Swift::String, _ type: T.Type, _ isIncluded: (T?) throws -> Swift::Bool) rethrows -> TabularData::DataFrame.TabularData::Slice |
| 101 | public func filter<T>(on columnID: TabularData::ColumnID<T>, _ isIncluded: (T?) throws -> Swift::Bool) rethrows -> TabularData::DataFrame.TabularData::Slice |
| 102 | public func filter(_ isIncluded: (TabularData::DataFrame.TabularData::Row) throws -> Swift::Bool) rethrows -> TabularData::DataFrame.TabularData::Slice |
| 103 | public func selecting<S>(columnNames: S) -> TabularData::DataFrame where S : Swift::Sequence, S.Element == Swift::String |
| 104 | public func selecting(columnNames: Swift::String...) -> TabularData::DataFrame |
| 105 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 106 | public typealias ColumnType = TabularData::AnyColumn |
| 107 | } |
| 108 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 109 | extension TabularData::DataFrame { |
| 110 | public subscript(dynamicMember columnName: Swift::String) -> TabularData::AnyColumn { |
| 111 | get |
| 112 | set |
| 113 | } |
| 114 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 115 | public subscript(columnName: Swift::String) -> TabularData::AnyColumn { |
| 116 | get { |
| 117 | guard let columnIndex = indexOfColumn(columnName) else { |
| 118 | fatalError("There is no column named '\(columnName)' in the DataFrame.") |
| 132 | } |
| 133 | } |
| 134 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 135 | @_disfavoredOverload public subscript<T>(columnName: Swift.String, type: T.Type = T.self) -> [T?] { |
| 136 | get { |
| 137 | guard let columnIndex = indexOfColumn(columnName) else { |
| 138 | fatalError("There is no column named '\(columnName)' in the DataFrame.") |
| 132 | } |
| 133 | } |
| 134 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 135 | @_disfavoredOverload public subscript<T>(columnName: Swift::String, type: T.Type = T.self) -> [T?] { |
| 136 | get { |
| 137 | guard let columnIndex = indexOfColumn(columnName) else { |
| 138 | fatalError("There is no column named '\(columnName)' in the DataFrame.") |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | public subscript<T>(columnName: Swift.String, type: T.Type) -> TabularData.Column<T> { |
| 151 | get |
| 152 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 153 | set { |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | public subscript<T>(columnName: Swift::String, type: T.Type) -> TabularData::Column<T> { |
| 151 | get |
| 152 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 153 | set { |
| 162 | } |
| 163 | } |
| 164 | } |
| 165 | public subscript<T>(id: TabularData.ColumnID<T>) -> TabularData.Column<T> { |
| 166 | get |
| 167 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 168 | set { |
| 162 | } |
| 163 | } |
| 164 | } |
| 165 | public subscript<T>(id: TabularData::ColumnID<T>) -> TabularData::Column<T> { |
| 166 | get |
| 167 | @backDeployed(before: macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4) |
| 168 | set { |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | public subscript<S>(columnNames: S) -> TabularData.DataFrame where S : Swift.Sequence, S.Element == Swift.String { |
| 181 | get |
| 182 | } |
| 183 | public subscript(column index: Swift.Int) -> TabularData.AnyColumn { |
| 184 | get |
| 185 | set |
| 186 | } |
| 187 | public subscript<T>(column index: Swift.Int, type: T.Type) -> TabularData.Column<T> { |
| 188 | get |
| 189 | set |
| 190 | } |
| 191 | public subscript(row index: Swift.Int) -> TabularData.DataFrame.Row { |
| 192 | get |
| 193 | set |
| 194 | } |
| 195 | public subscript<C>(mask: C) -> TabularData.DataFrame.Slice where C : Swift.Collection, C.Element == Swift.Bool { |
| 196 | get |
| 197 | } |
| 198 | } |
| 199 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 200 | extension TabularData.DataFrame : Swift.Hashable { |
| 201 | public static func == (lhs: TabularData.DataFrame, rhs: TabularData.DataFrame) -> Swift.Bool |
| 202 | public func hash(into hasher: inout Swift.Hasher) |
| 203 | public var hashValue: Swift.Int { |
| 204 | get |
| 205 | } |
| 206 | } |
| 207 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 208 | extension TabularData.DataFrame : Swift.ExpressibleByDictionaryLiteral { |
| 209 | public init(dictionaryLiteral elements: (Swift.String, [Any?])...) |
| 210 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 211 | public typealias Key = Swift.String |
| 212 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 213 | public typealias Value = [Any?] |
| 214 | } |
| 215 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 216 | public protocol AnyColumnPrototype { |
| 217 | var name: Swift.String { get set } |
| 218 | func makeColumn(capacity: Swift.Int) -> TabularData.AnyColumn |
| 219 | } |
| 220 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 221 | extension TabularData.DataFrameProtocol { |
| 222 | public func randomSplit(by proportion: Swift.Double, seed: Swift.Int? = nil) -> (TabularData.DataFrame.Slice, TabularData.DataFrame.Slice) |
| 223 | public func randomSplit<G>(by proportion: Swift.Double, using generator: inout G) -> (TabularData.DataFrame.Slice, TabularData.DataFrame.Slice) where G : Swift.RandomNumberGenerator |
| 224 | public func stratifiedSplit(on columnName: Swift.String, by proportion: Swift.Double, randomSeed: Swift.Int? = nil) -> (TabularData.DataFrame, TabularData.DataFrame) |
| 225 | public func stratifiedSplit(on columnNames: Swift.String..., by proportion: Swift.Double, randomSeed: Swift.Int? = nil) -> (TabularData.DataFrame, TabularData.DataFrame) |
| 226 | public func stratifiedSplit<T>(on columnID: TabularData.ColumnID<T>, by proportion: Swift.Double, randomSeed: Swift.Int? = nil) -> (TabularData.DataFrame, TabularData.DataFrame) where T : Swift.Hashable |
| 227 | public func stratifiedSplit<T0, T1>(on columnID0: TabularData.ColumnID<T0>, _ columnID1: TabularData.ColumnID<T1>, by proportion: Swift.Double, randomSeed: Swift.Int? = nil) -> (TabularData.DataFrame, TabularData.DataFrame) where T0 : Swift.Hashable, T1 : Swift.Hashable |
| 228 | public func stratifiedSplit<T0, T1, T2>(on columnID0: TabularData.ColumnID<T0>, _ columnID1: TabularData.ColumnID<T1>, _ columnID2: TabularData.ColumnID<T2>, by proportion: Swift.Double, randomSeed: Swift.Int? = nil) -> (TabularData.DataFrame, TabularData.DataFrame) where T0 : Swift.Hashable, T1 : Swift.Hashable, T2 : Swift.Hashable |
| 229 | } |
| 230 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 231 | extension TabularData.Column where WrappedElement : Swift.Hashable { |
| 232 | public func summary() -> TabularData.CategoricalSummary<WrappedElement> |
| 233 | } |
| 234 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 235 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.Hashable { |
| 236 | public func summary() -> TabularData.CategoricalSummary<WrappedElement> |
| 237 | } |
| 238 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 239 | extension TabularData.ColumnSlice where WrappedElement : Swift.Hashable { |
| 240 | public func summary() -> TabularData.CategoricalSummary<WrappedElement> |
| 241 | } |
| 242 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 243 | extension TabularData.FilledColumn where Base.WrappedElement : Swift.Hashable { |
| 244 | public func summary() -> TabularData.CategoricalSummary<TabularData.FilledColumn<Base>.WrappedElement> |
| 245 | } |
| 246 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 247 | extension TabularData.AnyColumnSlice { |
| 248 | public func summary() -> TabularData.AnyCategoricalSummary |
| 249 | } |
| 250 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 251 | public func + <L, R>(lhs: L, rhs: R) -> TabularData.Column<R.Element> where L : TabularData.OptionalColumnProtocol, R : TabularData.ColumnProtocol, L.WrappedElement : Swift.AdditiveArithmetic, L.WrappedElement == R.Element |
| 252 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 253 | public func + <L, R>(lhs: L, rhs: R) -> TabularData.Column<L.Element> where L : TabularData.ColumnProtocol, R : TabularData.OptionalColumnProtocol, L.Element : Swift.AdditiveArithmetic, L.Element == R.WrappedElement |
| 254 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 255 | public func - <L, R>(lhs: L, rhs: R) -> TabularData.Column<R.Element> where L : TabularData.OptionalColumnProtocol, R : TabularData.ColumnProtocol, L.WrappedElement : Swift.AdditiveArithmetic, L.WrappedElement == R.Element |
| 256 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 257 | public func - <L, R>(lhs: L, rhs: R) -> TabularData.Column<L.Element> where L : TabularData.ColumnProtocol, R : TabularData.OptionalColumnProtocol, L.Element : Swift.AdditiveArithmetic, L.Element == R.WrappedElement |
| 258 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 259 | public func * <L, R>(lhs: L, rhs: R) -> TabularData.Column<R.Element> where L : TabularData.OptionalColumnProtocol, R : TabularData.ColumnProtocol, L.WrappedElement : Swift.Numeric, L.WrappedElement == R.Element |
| 260 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 261 | public func * <L, R>(lhs: L, rhs: R) -> TabularData.Column<L.Element> where L : TabularData.ColumnProtocol, R : TabularData.OptionalColumnProtocol, L.Element : Swift.Numeric, L.Element == R.WrappedElement |
| 262 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 263 | public func / <L, R>(lhs: L, rhs: R) -> TabularData.Column<R.Element> where L : TabularData.OptionalColumnProtocol, R : TabularData.ColumnProtocol, L.WrappedElement : Swift.BinaryInteger, L.WrappedElement == R.Element |
| 264 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 265 | public func / <L, R>(lhs: L, rhs: R) -> TabularData.Column<L.Element> where L : TabularData.ColumnProtocol, R : TabularData.OptionalColumnProtocol, L.Element : Swift.BinaryInteger, L.Element == R.WrappedElement |
| 266 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 267 | public func / <L, R>(lhs: L, rhs: R) -> TabularData.Column<R.Element> where L : TabularData.OptionalColumnProtocol, R : TabularData.ColumnProtocol, L.WrappedElement : Swift.FloatingPoint, L.WrappedElement == R.Element |
| 268 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 269 | public func / <L, R>(lhs: L, rhs: R) -> TabularData.Column<L.Element> where L : TabularData.ColumnProtocol, R : TabularData.OptionalColumnProtocol, L.Element : Swift.FloatingPoint, L.Element == R.WrappedElement |
| 270 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 271 | public enum JSONType : Swift.Sendable { |
| 272 | case integer |
| 273 | case boolean |
| 274 | case double |
| 275 | case date |
| 276 | case string |
| 277 | case array |
| 278 | case object |
| 279 | public static func == (a: TabularData.JSONType, b: TabularData.JSONType) -> Swift.Bool |
| 280 | public func hash(into hasher: inout Swift.Hasher) |
| 281 | public var hashValue: Swift.Int { |
| 282 | get |
| 283 | } |
| 284 | } |
| 285 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 286 | extension TabularData.ColumnProtocol where Self.Element : Swift.AdditiveArithmetic { |
| 287 | public static func + (lhs: Self, rhs: Self) -> TabularData.Column<Self.Element> |
| 288 | public static func - (lhs: Self, rhs: Self) -> TabularData.Column<Self.Element> |
| 289 | } |
| 290 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 291 | extension TabularData.ColumnProtocol where Self.Element : Swift.Numeric { |
| 292 | public static func * (lhs: Self, rhs: Self) -> TabularData.Column<Self.Element> |
| 293 | } |
| 294 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 295 | extension TabularData.ColumnProtocol where Self.Element : Swift.BinaryInteger { |
| 296 | public static func / (lhs: Self, rhs: Self) -> TabularData.Column<Self.Element> |
| 297 | } |
| 298 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 299 | extension TabularData.ColumnProtocol where Self.Element : Swift.FloatingPoint { |
| 300 | public static func / (lhs: Self, rhs: Self) -> TabularData.Column<Self.Element> |
| 301 | } |
| 302 | extension TabularData.ColumnProtocol { |
| 303 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 304 | public static func + (lhs: Self, rhs: Self.Element) -> TabularData.Column<Self.Element> where Self.Element : Swift.AdditiveArithmetic |
| 305 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 306 | public static func + (lhs: Self.Element, rhs: Self) -> TabularData.Column<Self.Element> where Self.Element : Swift.AdditiveArithmetic |
| 307 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 308 | public static func - (lhs: Self, rhs: Self.Element) -> TabularData.Column<Self.Element> where Self.Element : Swift.AdditiveArithmetic |
| 309 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 310 | public static func - (lhs: Self.Element, rhs: Self) -> TabularData.Column<Self.Element> where Self.Element : Swift.AdditiveArithmetic |
| 311 | } |
| 312 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 313 | extension TabularData.ColumnProtocol where Self.Element : Swift.Numeric { |
| 314 | public static func * (lhs: Self, rhs: Self.Element) -> TabularData.Column<Self.Element> |
| 315 | public static func * (lhs: Self.Element, rhs: Self) -> TabularData.Column<Self.Element> |
| 316 | } |
| 317 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 318 | extension TabularData.ColumnProtocol where Self.Element : Swift.BinaryInteger { |
| 319 | public static func / (lhs: Self, rhs: Self.Element) -> TabularData.Column<Self.Element> |
| 320 | public static func / (lhs: Self.Element, rhs: Self) -> TabularData.Column<Self.Element> |
| 321 | } |
| 322 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 323 | extension TabularData.ColumnProtocol where Self.Element : Swift.FloatingPoint { |
| 324 | public static func / (lhs: Self, rhs: Self.Element) -> TabularData.Column<Self.Element> |
| 325 | public static func / (lhs: Self.Element, rhs: Self) -> TabularData.Column<Self.Element> |
| 326 | } |
| 327 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 328 | extension TabularData.ColumnProtocol where Self.Element : Swift.Comparable { |
| 329 | public static func < (lhs: Self, rhs: Self.Element) -> [Swift.Bool] |
| 330 | public static func < (lhs: Self.Element, rhs: Self) -> [Swift.Bool] |
| 331 | public static func <= (lhs: Self, rhs: Self.Element) -> [Swift.Bool] |
| 332 | public static func <= (lhs: Self.Element, rhs: Self) -> [Swift.Bool] |
| 333 | public static func > (lhs: Self, rhs: Self.Element) -> [Swift.Bool] |
| 334 | public static func > (lhs: Self.Element, rhs: Self) -> [Swift.Bool] |
| 335 | public static func >= (lhs: Self, rhs: Self.Element) -> [Swift.Bool] |
| 336 | public static func >= (lhs: Self.Element, rhs: Self) -> [Swift.Bool] |
| 337 | public static func == (lhs: Self, rhs: Self.Element) -> [Swift.Bool] |
| 338 | public static func == (lhs: Self.Element, rhs: Self) -> [Swift.Bool] |
| 339 | public static func != (lhs: Self, rhs: Self.Element) -> [Swift.Bool] |
| 340 | public static func != (lhs: Self.Element, rhs: Self) -> [Swift.Bool] |
| 341 | } |
| 342 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 343 | public struct JSONReadingOptions { |
| 344 | public var dateParsers: [(Swift.String) -> Foundation.Date?] |
| 345 | public init() |
| 346 | public mutating func addDateParseStrategy<T>(_ strategy: T) where T : Foundation.ParseStrategy, T.ParseInput == Swift.String, T.ParseOutput == Foundation.Date |
| 347 | } |
| 348 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 349 | public struct JSONWritingOptions { |
| 350 | public var sortKeys: Swift.Bool |
| 351 | public var prettyPrint: Swift.Bool |
| 352 | public var dateFormatter: (Foundation.Date) -> Swift.String |
| 353 | public init() |
| 354 | } |
| 355 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 356 | public enum SummaryColumnIDs : Swift.Sendable { |
| 357 | public static let columnName: TabularData.ColumnID<Swift.String> |
| 358 | public static let mean: TabularData.ColumnID<Swift.Double> |
| 359 | public static let standardDeviation: TabularData.ColumnID<Swift.Double> |
| 360 | public static let minimum: TabularData.ColumnID<Swift.Double> |
| 361 | public static let maximum: TabularData.ColumnID<Swift.Double> |
| 362 | public static let median: TabularData.ColumnID<Swift.Double> |
| 363 | public static let firstQuartile: TabularData.ColumnID<Swift.Double> |
| 364 | public static let thirdQuartile: TabularData.ColumnID<Swift.Double> |
| 365 | public static let mode: TabularData.ColumnID<[Any]> |
| 366 | public static let uniqueCount: TabularData.ColumnID<Swift.Int> |
| 367 | public static let noneCount: TabularData.ColumnID<Swift.Int> |
| 368 | public static let someCount: TabularData.ColumnID<Swift.Int> |
| 369 | } |
| 370 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 371 | extension TabularData.DataFrameProtocol { |
| 372 | public func writeCSV(to url: Foundation.URL, options: TabularData.CSVWritingOptions = .init()) throws |
| 373 | public func csvRepresentation(options: TabularData.CSVWritingOptions = .init()) throws -> Foundation.Data |
| 374 | } |
| 375 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 376 | extension TabularData.DataFrame { |
| 377 | @dynamicMemberLookup public struct Slice : TabularData.DataFrameProtocol { |
| 378 | public var base: TabularData.DataFrame { |
| 379 | get |
| 380 | } |
| 381 | public var rows: TabularData.DataFrame.Rows { |
| 382 | get |
| 383 | set |
| 384 | } |
| 385 | public var columns: [TabularData.AnyColumnSlice] { |
| 386 | get |
| 387 | } |
| 388 | public var shape: (rows: Swift.Int, columns: Swift.Int) { |
| 389 | get |
| 390 | } |
| 391 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 392 | public typealias ColumnType = TabularData.AnyColumnSlice |
| 393 | } |
| 394 | } |
| 395 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 396 | extension TabularData.DataFrame.Slice { |
| 397 | public subscript(dynamicMember columnName: Swift.String) -> TabularData.AnyColumnSlice { |
| 398 | get |
| 399 | } |
| 400 | public subscript(columnName: Swift.String) -> TabularData.AnyColumnSlice { |
| 401 | get |
| 402 | } |
| 403 | public subscript<T>(columnName: Swift.String, type: T.Type) -> TabularData.DiscontiguousColumnSlice<T> { |
| 404 | get |
| 405 | } |
| 406 | public subscript<T>(columnID: TabularData.ColumnID<T>) -> TabularData.DiscontiguousColumnSlice<T> { |
| 407 | get |
| 408 | } |
| 409 | public subscript<T>(column index: Swift.Int, type: T.Type) -> TabularData.DiscontiguousColumnSlice<T> { |
| 410 | get |
| 411 | } |
| 412 | public subscript<S>(columnNames: S) -> TabularData.DataFrame.Slice where S : Swift.Sequence, S.Element == Swift.String { |
| 413 | get |
| 414 | } |
| 415 | public func filter<T>(on columnName: Swift.String, _ type: T.Type, _ isIncluded: (T?) throws -> Swift.Bool) rethrows -> TabularData.DataFrame.Slice |
| 416 | public func filter<T>(on columnID: TabularData.ColumnID<T>, _ isIncluded: (T?) throws -> Swift.Bool) rethrows -> TabularData.DataFrame.Slice |
| 417 | public func prefix(_ length: Swift.Int) -> TabularData.DataFrame.Slice |
| 418 | public func prefix(through position: Swift.Int) -> TabularData.DataFrame.Slice |
| 419 | public func prefix(upTo position: Swift.Int) -> TabularData.DataFrame.Slice |
| 420 | public func suffix(_ length: Swift.Int) -> TabularData.DataFrame.Slice |
| 421 | public func suffix(from position: Swift.Int) -> TabularData.DataFrame.Slice |
| 422 | public func selecting<S>(columnNames: S) -> TabularData.DataFrame.Slice where S : Swift.Sequence, S.Element == Swift.String |
| 423 | public func selecting(columnNames: Swift.String...) -> TabularData.DataFrame.Slice |
| 424 | } |
| 425 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 426 | extension TabularData.DataFrame.Slice : Swift.Hashable { |
| 427 | public static func == (lhs: TabularData.DataFrame.Slice, rhs: TabularData.DataFrame.Slice) -> Swift.Bool |
| 428 | public func hash(into hasher: inout Swift.Hasher) |
| 429 | public var hashValue: Swift.Int { |
| 430 | get |
| 431 | } |
| 432 | } |
| 433 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 434 | public struct Column<WrappedElement> : TabularData.OptionalColumnProtocol { |
| 435 | public typealias Element = WrappedElement? |
| 436 | public var name: Swift.String |
| 437 | public var count: Swift.Int { |
| 438 | get |
| 439 | } |
| 440 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 441 | public var missingCount: Swift.Int { |
| 442 | get |
| 443 | } |
| 444 | public var wrappedElementType: any Any.Type { |
| 445 | get |
| 446 | } |
| 447 | public var prototype: any TabularData.AnyColumnPrototype { |
| 448 | get |
| 449 | } |
| 450 | public init(name: Swift.String, capacity: Swift.Int) |
| 451 | public init(_ id: TabularData.ColumnID<WrappedElement>, capacity: Swift.Int) |
| 452 | public init<S>(name: Swift.String, contents: S) where S : Swift.Sequence, S.Element == WrappedElement? |
| 453 | public init<S>(name: Swift.String, contents: S) where WrappedElement == S.Element, S : Swift.Sequence |
| 454 | public init<S>(_ id: TabularData.ColumnID<S.Element>, contents: S) where S : Swift.Sequence, S.Element == WrappedElement? |
| 455 | public init<S>(_ id: TabularData.ColumnID<S.Element>, contents: S) where WrappedElement == S.Element, S : Swift.Sequence |
| 456 | public init(_ slice: TabularData.ColumnSlice<WrappedElement>) |
| 457 | public mutating func append(_ element: TabularData.Column<WrappedElement>.Element) |
| 458 | public mutating func append(_ element: WrappedElement) |
| 459 | public mutating func append<S>(contentsOf sequence: S) where S : Swift.Sequence, S.Element == WrappedElement? |
| 460 | public mutating func append<S>(contentsOf sequence: S) where WrappedElement == S.Element, S : Swift.Sequence |
| 461 | public mutating func remove(at index: Swift.Int) |
| 462 | public func map<T>(_ transform: (TabularData.Column<WrappedElement>.Element) throws -> T?) rethrows -> TabularData.Column<T> |
| 463 | public func mapNonNil<T>(_ transform: (WrappedElement) throws -> T?) rethrows -> TabularData.Column<T> |
| 464 | public mutating func transform(_ transform: (TabularData.Column<WrappedElement>.Element) throws -> TabularData.Column<WrappedElement>.Element) rethrows |
| 465 | public mutating func transform(_ transform: (WrappedElement) throws -> WrappedElement) rethrows |
| 466 | public func filter(_ isIncluded: (TabularData.Column<WrappedElement>.Element) throws -> Swift.Bool) rethrows -> TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 467 | public func eraseToAnyColumn() -> TabularData.AnyColumn |
| 468 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 469 | public typealias Index = Swift.Int |
| 470 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 471 | public typealias Indices = Swift.Range<Swift.Int> |
| 472 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 473 | public typealias Iterator = Swift.IndexingIterator<TabularData.Column<WrappedElement>> |
| 474 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 475 | public typealias SubSequence = TabularData.ColumnSlice<WrappedElement> |
| 476 | } |
| 477 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 478 | extension TabularData.Column : Swift.RandomAccessCollection, Swift.MutableCollection { |
| 479 | public var startIndex: Swift.Int { |
| 480 | get |
| 481 | } |
| 482 | public var endIndex: Swift.Int { |
| 483 | get |
| 484 | } |
| 485 | public func index(after i: Swift.Int) -> Swift.Int |
| 486 | public func index(before i: Swift.Int) -> Swift.Int |
| 487 | public subscript(position: Swift.Int) -> TabularData.Column<WrappedElement>.Element { |
| 488 | get |
| 489 | set |
| 490 | } |
| 491 | @usableFromInline |
| 492 | internal func isNil(at index: Swift.Int) -> Swift.Bool |
| 493 | public subscript(bounds: Swift.Range<Swift.Int>) -> TabularData.ColumnSlice<WrappedElement> { |
| 494 | get |
| 495 | set |
| 496 | } |
| 497 | @inlinable public subscript<R>(range: R) -> TabularData.ColumnSlice<WrappedElement> where R : Swift.RangeExpression, R.Bound == Swift.Int { |
| 498 | get { |
| 499 | self[range.relative(to: self)] |
| 500 | } |
| 501 | set { |
| 502 | self[range.relative(to: self)] = newValue |
| 503 | } |
| 504 | } |
| 505 | public subscript<C>(mask: C) -> TabularData.DiscontiguousColumnSlice<WrappedElement> where C : Swift.Collection, C.Element == Swift.Bool { |
| 506 | get |
| 507 | } |
| 508 | public func withContiguousStorageIfAvailable<R>(_ body: (Swift.UnsafeBufferPointer<WrappedElement?>) throws -> R) rethrows -> R? |
| 509 | public mutating func withContiguousMutableStorageIfAvailable<R>(_ body: (inout Swift.UnsafeMutableBufferPointer<WrappedElement?>) throws -> R) rethrows -> R? |
| 510 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 511 | public func withContiguousStorageIfAvailable<R>(_ body: (Swift.UnsafeBufferPointer<WrappedElement>) throws -> R) rethrows -> R? |
| 512 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 513 | public mutating func withContiguousMutableStorageIfAvailable<R>(_ body: (inout Swift.UnsafeMutableBufferPointer<WrappedElement>) throws -> R) rethrows -> R? |
| 514 | } |
| 515 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 516 | extension TabularData.Column : Swift.Equatable where WrappedElement : Swift.Equatable { |
| 517 | public static func == (a: TabularData.Column<WrappedElement>, b: TabularData.Column<WrappedElement>) -> Swift.Bool |
| 518 | } |
| 519 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 520 | extension TabularData.Column : Swift.Hashable where WrappedElement : Swift.Hashable { |
| 521 | public func distinct() -> TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 522 | public func hash(into hasher: inout Swift.Hasher) |
| 523 | public var hashValue: Swift.Int { |
| 524 | get |
| 525 | } |
| 526 | } |
| 527 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 528 | extension TabularData.Column : Swift.Encodable where WrappedElement : Swift.Encodable { |
| 529 | public func encode(to encoder: any Swift.Encoder) throws |
| 530 | } |
| 531 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 532 | extension TabularData.Column : Swift.Decodable where WrappedElement : Swift.Decodable { |
| 533 | public init(from decoder: any Swift.Decoder) throws |
| 534 | } |
| 535 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 536 | extension TabularData.Column : Swift.Sendable where WrappedElement : Swift.Sendable { |
| 537 | } |
| 538 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 539 | public struct ColumnID<T> : Swift.Sendable { |
| 540 | public var name: Swift.String |
| 541 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 542 | public var type: any Any.Type { |
| 543 | get |
| 544 | } |
| 545 | public init(_ name: Swift.String, _ type: T.Type) |
| 546 | } |
| 547 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 548 | extension TabularData.ColumnID : Swift.CustomStringConvertible { |
| 549 | public var description: Swift.String { |
| 550 | get |
| 551 | } |
| 552 | } |
| 553 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 554 | public struct ColumnSlice<WrappedElement> : TabularData.OptionalColumnProtocol { |
| 555 | public typealias Element = WrappedElement? |
| 556 | public typealias Index = Swift.Int |
| 557 | @usableFromInline |
| 558 | internal var slice: Swift.Slice<TabularData.Column<WrappedElement>> |
| 559 | @inlinable public var name: Swift.String { |
| 560 | get { |
| 561 | slice.base.name |
| 562 | } |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | public subscript<S>(columnNames: S) -> TabularData::DataFrame where S : Swift::Sequence, S.Element == Swift::String { |
| 181 | get |
| 182 | } |
| 183 | public subscript(column index: Swift::Int) -> TabularData::AnyColumn { |
| 184 | get |
| 185 | set |
| 186 | } |
| 187 | public subscript<T>(column index: Swift::Int, type: T.Type) -> TabularData::Column<T> { |
| 188 | get |
| 189 | set |
| 190 | } |
| 191 | public subscript(row index: Swift::Int) -> TabularData::DataFrame.TabularData::Row { |
| 192 | get |
| 193 | set |
| 194 | } |
| 195 | public subscript<C>(mask: C) -> TabularData::DataFrame.TabularData::Slice where C : Swift::Collection, C.Element == Swift::Bool { |
| 196 | get |
| 197 | } |
| 198 | } |
| 199 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 200 | extension TabularData::DataFrame : Swift::Hashable { |
| 201 | public static func == (lhs: TabularData::DataFrame, rhs: TabularData::DataFrame) -> Swift::Bool |
| 202 | public func hash(into hasher: inout Swift::Hasher) |
| 203 | public var hashValue: Swift::Int { |
| 204 | get |
| 205 | } |
| 206 | } |
| 207 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 208 | extension TabularData::DataFrame : Swift::ExpressibleByDictionaryLiteral { |
| 209 | public init(dictionaryLiteral elements: (Swift::String, [Any?])...) |
| 210 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 211 | public typealias Key = Swift::String |
| 212 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 213 | public typealias Value = [Any?] |
| 214 | } |
| 215 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 216 | public protocol AnyColumnPrototype { |
| 217 | var name: Swift::String { get set } |
| 218 | func makeColumn(capacity: Swift::Int) -> TabularData::AnyColumn |
| 219 | } |
| 220 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 221 | extension TabularData::DataFrameProtocol { |
| 222 | public func randomSplit(by proportion: Swift::Double, seed: Swift::Int? = nil) -> (TabularData::DataFrame.TabularData::Slice, TabularData::DataFrame.TabularData::Slice) |
| 223 | public func randomSplit<G>(by proportion: Swift::Double, using generator: inout G) -> (TabularData::DataFrame.TabularData::Slice, TabularData::DataFrame.TabularData::Slice) where G : Swift::RandomNumberGenerator |
| 224 | public func stratifiedSplit(on columnName: Swift::String, by proportion: Swift::Double, randomSeed: Swift::Int? = nil) -> (TabularData::DataFrame, TabularData::DataFrame) |
| 225 | public func stratifiedSplit(on columnNames: Swift::String..., by proportion: Swift::Double, randomSeed: Swift::Int? = nil) -> (TabularData::DataFrame, TabularData::DataFrame) |
| 226 | public func stratifiedSplit<T>(on columnID: TabularData::ColumnID<T>, by proportion: Swift::Double, randomSeed: Swift::Int? = nil) -> (TabularData::DataFrame, TabularData::DataFrame) where T : Swift::Hashable |
| 227 | public func stratifiedSplit<T0, T1>(on columnID0: TabularData::ColumnID<T0>, _ columnID1: TabularData::ColumnID<T1>, by proportion: Swift::Double, randomSeed: Swift::Int? = nil) -> (TabularData::DataFrame, TabularData::DataFrame) where T0 : Swift::Hashable, T1 : Swift::Hashable |
| 228 | public func stratifiedSplit<T0, T1, T2>(on columnID0: TabularData::ColumnID<T0>, _ columnID1: TabularData::ColumnID<T1>, _ columnID2: TabularData::ColumnID<T2>, by proportion: Swift::Double, randomSeed: Swift::Int? = nil) -> (TabularData::DataFrame, TabularData::DataFrame) where T0 : Swift::Hashable, T1 : Swift::Hashable, T2 : Swift::Hashable |
| 229 | } |
| 230 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 231 | extension TabularData::Column where WrappedElement : Swift::Hashable { |
| 232 | public func summary() -> TabularData::CategoricalSummary<WrappedElement> |
| 233 | } |
| 234 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 235 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::Hashable { |
| 236 | public func summary() -> TabularData::CategoricalSummary<WrappedElement> |
| 237 | } |
| 238 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 239 | extension TabularData::ColumnSlice where WrappedElement : Swift::Hashable { |
| 240 | public func summary() -> TabularData::CategoricalSummary<WrappedElement> |
| 241 | } |
| 242 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 243 | extension TabularData::FilledColumn where Base.WrappedElement : Swift::Hashable { |
| 244 | public func summary() -> TabularData::CategoricalSummary<TabularData::FilledColumn<Base>.WrappedElement> |
| 245 | } |
| 246 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 247 | extension TabularData::AnyColumnSlice { |
| 248 | public func summary() -> TabularData::AnyCategoricalSummary |
| 249 | } |
| 250 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 251 | public func + <L, R>(lhs: L, rhs: R) -> TabularData::Column<R.Element> where L : TabularData::OptionalColumnProtocol, R : TabularData::ColumnProtocol, L.WrappedElement : Swift::AdditiveArithmetic, L.WrappedElement == R.Element |
| 252 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 253 | public func + <L, R>(lhs: L, rhs: R) -> TabularData::Column<L.Element> where L : TabularData::ColumnProtocol, R : TabularData::OptionalColumnProtocol, L.Element : Swift::AdditiveArithmetic, L.Element == R.WrappedElement |
| 254 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 255 | public func - <L, R>(lhs: L, rhs: R) -> TabularData::Column<R.Element> where L : TabularData::OptionalColumnProtocol, R : TabularData::ColumnProtocol, L.WrappedElement : Swift::AdditiveArithmetic, L.WrappedElement == R.Element |
| 256 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 257 | public func - <L, R>(lhs: L, rhs: R) -> TabularData::Column<L.Element> where L : TabularData::ColumnProtocol, R : TabularData::OptionalColumnProtocol, L.Element : Swift::AdditiveArithmetic, L.Element == R.WrappedElement |
| 258 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 259 | public func * <L, R>(lhs: L, rhs: R) -> TabularData::Column<R.Element> where L : TabularData::OptionalColumnProtocol, R : TabularData::ColumnProtocol, L.WrappedElement : Swift::Numeric, L.WrappedElement == R.Element |
| 260 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 261 | public func * <L, R>(lhs: L, rhs: R) -> TabularData::Column<L.Element> where L : TabularData::ColumnProtocol, R : TabularData::OptionalColumnProtocol, L.Element : Swift::Numeric, L.Element == R.WrappedElement |
| 262 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 263 | public func / <L, R>(lhs: L, rhs: R) -> TabularData::Column<R.Element> where L : TabularData::OptionalColumnProtocol, R : TabularData::ColumnProtocol, L.WrappedElement : Swift::BinaryInteger, L.WrappedElement == R.Element |
| 264 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 265 | public func / <L, R>(lhs: L, rhs: R) -> TabularData::Column<L.Element> where L : TabularData::ColumnProtocol, R : TabularData::OptionalColumnProtocol, L.Element : Swift::BinaryInteger, L.Element == R.WrappedElement |
| 266 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 267 | public func / <L, R>(lhs: L, rhs: R) -> TabularData::Column<R.Element> where L : TabularData::OptionalColumnProtocol, R : TabularData::ColumnProtocol, L.WrappedElement : Swift::FloatingPoint, L.WrappedElement == R.Element |
| 268 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 269 | public func / <L, R>(lhs: L, rhs: R) -> TabularData::Column<L.Element> where L : TabularData::ColumnProtocol, R : TabularData::OptionalColumnProtocol, L.Element : Swift::FloatingPoint, L.Element == R.WrappedElement |
| 270 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 271 | public enum JSONType : Swift::Sendable { |
| 272 | case integer |
| 273 | case boolean |
| 274 | case double |
| 275 | case date |
| 276 | case string |
| 277 | case array |
| 278 | case object |
| 279 | public static func == (a: TabularData::JSONType, b: TabularData::JSONType) -> Swift::Bool |
| 280 | public func hash(into hasher: inout Swift::Hasher) |
| 281 | public var hashValue: Swift::Int { |
| 282 | get |
| 283 | } |
| 284 | } |
| 285 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 286 | extension TabularData::ColumnProtocol where Self.Element : Swift::AdditiveArithmetic { |
| 287 | public static func + (lhs: Self, rhs: Self) -> TabularData::Column<Self.Element> |
| 288 | public static func - (lhs: Self, rhs: Self) -> TabularData::Column<Self.Element> |
| 289 | } |
| 290 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 291 | extension TabularData::ColumnProtocol where Self.Element : Swift::Numeric { |
| 292 | public static func * (lhs: Self, rhs: Self) -> TabularData::Column<Self.Element> |
| 293 | } |
| 294 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 295 | extension TabularData::ColumnProtocol where Self.Element : Swift::BinaryInteger { |
| 296 | public static func / (lhs: Self, rhs: Self) -> TabularData::Column<Self.Element> |
| 297 | } |
| 298 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 299 | extension TabularData::ColumnProtocol where Self.Element : Swift::FloatingPoint { |
| 300 | public static func / (lhs: Self, rhs: Self) -> TabularData::Column<Self.Element> |
| 301 | } |
| 302 | extension TabularData::ColumnProtocol { |
| 303 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 304 | public static func + (lhs: Self, rhs: Self.Element) -> TabularData::Column<Self.Element> where Self.Element : Swift::AdditiveArithmetic |
| 305 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 306 | public static func + (lhs: Self.Element, rhs: Self) -> TabularData::Column<Self.Element> where Self.Element : Swift::AdditiveArithmetic |
| 307 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 308 | public static func - (lhs: Self, rhs: Self.Element) -> TabularData::Column<Self.Element> where Self.Element : Swift::AdditiveArithmetic |
| 309 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 310 | public static func - (lhs: Self.Element, rhs: Self) -> TabularData::Column<Self.Element> where Self.Element : Swift::AdditiveArithmetic |
| 311 | } |
| 312 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 313 | extension TabularData::ColumnProtocol where Self.Element : Swift::Numeric { |
| 314 | public static func * (lhs: Self, rhs: Self.Element) -> TabularData::Column<Self.Element> |
| 315 | public static func * (lhs: Self.Element, rhs: Self) -> TabularData::Column<Self.Element> |
| 316 | } |
| 317 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 318 | extension TabularData::ColumnProtocol where Self.Element : Swift::BinaryInteger { |
| 319 | public static func / (lhs: Self, rhs: Self.Element) -> TabularData::Column<Self.Element> |
| 320 | public static func / (lhs: Self.Element, rhs: Self) -> TabularData::Column<Self.Element> |
| 321 | } |
| 322 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 323 | extension TabularData::ColumnProtocol where Self.Element : Swift::FloatingPoint { |
| 324 | public static func / (lhs: Self, rhs: Self.Element) -> TabularData::Column<Self.Element> |
| 325 | public static func / (lhs: Self.Element, rhs: Self) -> TabularData::Column<Self.Element> |
| 326 | } |
| 327 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 328 | extension TabularData::ColumnProtocol where Self.Element : Swift::Comparable { |
| 329 | public static func < (lhs: Self, rhs: Self.Element) -> [Swift::Bool] |
| 330 | public static func < (lhs: Self.Element, rhs: Self) -> [Swift::Bool] |
| 331 | public static func <= (lhs: Self, rhs: Self.Element) -> [Swift::Bool] |
| 332 | public static func <= (lhs: Self.Element, rhs: Self) -> [Swift::Bool] |
| 333 | public static func > (lhs: Self, rhs: Self.Element) -> [Swift::Bool] |
| 334 | public static func > (lhs: Self.Element, rhs: Self) -> [Swift::Bool] |
| 335 | public static func >= (lhs: Self, rhs: Self.Element) -> [Swift::Bool] |
| 336 | public static func >= (lhs: Self.Element, rhs: Self) -> [Swift::Bool] |
| 337 | public static func == (lhs: Self, rhs: Self.Element) -> [Swift::Bool] |
| 338 | public static func == (lhs: Self.Element, rhs: Self) -> [Swift::Bool] |
| 339 | public static func != (lhs: Self, rhs: Self.Element) -> [Swift::Bool] |
| 340 | public static func != (lhs: Self.Element, rhs: Self) -> [Swift::Bool] |
| 341 | } |
| 342 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 343 | public struct JSONReadingOptions { |
| 344 | public var dateParsers: [(Swift::String) -> Foundation::Date?] |
| 345 | public init() |
| 346 | public mutating func addDateParseStrategy<T>(_ strategy: T) where T : Foundation::ParseStrategy, T.ParseInput == Swift::String, T.ParseOutput == Foundation::Date |
| 347 | } |
| 348 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 349 | public struct JSONWritingOptions { |
| 350 | public var sortKeys: Swift::Bool |
| 351 | public var prettyPrint: Swift::Bool |
| 352 | public var dateFormatter: (Foundation::Date) -> Swift::String |
| 353 | public init() |
| 354 | } |
| 355 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 356 | public enum SummaryColumnIDs : Swift::Sendable { |
| 357 | public static let columnName: TabularData::ColumnID<Swift::String> |
| 358 | public static let mean: TabularData::ColumnID<Swift::Double> |
| 359 | public static let standardDeviation: TabularData::ColumnID<Swift::Double> |
| 360 | public static let minimum: TabularData::ColumnID<Swift::Double> |
| 361 | public static let maximum: TabularData::ColumnID<Swift::Double> |
| 362 | public static let median: TabularData::ColumnID<Swift::Double> |
| 363 | public static let firstQuartile: TabularData::ColumnID<Swift::Double> |
| 364 | public static let thirdQuartile: TabularData::ColumnID<Swift::Double> |
| 365 | public static let mode: TabularData::ColumnID<[Any]> |
| 366 | public static let uniqueCount: TabularData::ColumnID<Swift::Int> |
| 367 | public static let noneCount: TabularData::ColumnID<Swift::Int> |
| 368 | public static let someCount: TabularData::ColumnID<Swift::Int> |
| 369 | } |
| 370 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 371 | extension TabularData::DataFrameProtocol { |
| 372 | public func writeCSV(to url: Foundation::URL, options: TabularData::CSVWritingOptions = .init()) throws |
| 373 | public func csvRepresentation(options: TabularData::CSVWritingOptions = .init()) throws -> Foundation::Data |
| 374 | } |
| 375 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 376 | extension TabularData::DataFrame { |
| 377 | @dynamicMemberLookup public struct Slice : TabularData::DataFrameProtocol { |
| 378 | public var base: TabularData::DataFrame { |
| 379 | get |
| 380 | } |
| 381 | public var rows: TabularData::DataFrame.TabularData::Rows { |
| 382 | get |
| 383 | set |
| 384 | } |
| 385 | public var columns: [TabularData::AnyColumnSlice] { |
| 386 | get |
| 387 | } |
| 388 | public var shape: (rows: Swift::Int, columns: Swift::Int) { |
| 389 | get |
| 390 | } |
| 391 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 392 | public typealias ColumnType = TabularData::AnyColumnSlice |
| 393 | } |
| 394 | } |
| 395 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 396 | extension TabularData::DataFrame.TabularData::Slice { |
| 397 | public subscript(dynamicMember columnName: Swift::String) -> TabularData::AnyColumnSlice { |
| 398 | get |
| 399 | } |
| 400 | public subscript(columnName: Swift::String) -> TabularData::AnyColumnSlice { |
| 401 | get |
| 402 | } |
| 403 | public subscript<T>(columnName: Swift::String, type: T.Type) -> TabularData::DiscontiguousColumnSlice<T> { |
| 404 | get |
| 405 | } |
| 406 | public subscript<T>(columnID: TabularData::ColumnID<T>) -> TabularData::DiscontiguousColumnSlice<T> { |
| 407 | get |
| 408 | } |
| 409 | public subscript<T>(column index: Swift::Int, type: T.Type) -> TabularData::DiscontiguousColumnSlice<T> { |
| 410 | get |
| 411 | } |
| 412 | public subscript<S>(columnNames: S) -> TabularData::DataFrame.TabularData::Slice where S : Swift::Sequence, S.Element == Swift::String { |
| 413 | get |
| 414 | } |
| 415 | public func filter<T>(on columnName: Swift::String, _ type: T.Type, _ isIncluded: (T?) throws -> Swift::Bool) rethrows -> TabularData::DataFrame.TabularData::Slice |
| 416 | public func filter<T>(on columnID: TabularData::ColumnID<T>, _ isIncluded: (T?) throws -> Swift::Bool) rethrows -> TabularData::DataFrame.TabularData::Slice |
| 417 | public func prefix(_ length: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 418 | public func prefix(through position: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 419 | public func prefix(upTo position: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 420 | public func suffix(_ length: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 421 | public func suffix(from position: Swift::Int) -> TabularData::DataFrame.TabularData::Slice |
| 422 | public func selecting<S>(columnNames: S) -> TabularData::DataFrame.TabularData::Slice where S : Swift::Sequence, S.Element == Swift::String |
| 423 | public func selecting(columnNames: Swift::String...) -> TabularData::DataFrame.TabularData::Slice |
| 424 | } |
| 425 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 426 | extension TabularData::DataFrame.TabularData::Slice : Swift::Hashable { |
| 427 | public static func == (lhs: TabularData::DataFrame.TabularData::Slice, rhs: TabularData::DataFrame.TabularData::Slice) -> Swift::Bool |
| 428 | public func hash(into hasher: inout Swift::Hasher) |
| 429 | public var hashValue: Swift::Int { |
| 430 | get |
| 431 | } |
| 432 | } |
| 433 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 434 | public struct Column<WrappedElement> : TabularData::OptionalColumnProtocol { |
| 435 | public typealias Element = WrappedElement? |
| 436 | public var name: Swift::String |
| 437 | public var count: Swift::Int { |
| 438 | get |
| 439 | } |
| 440 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 441 | public var missingCount: Swift::Int { |
| 442 | get |
| 443 | } |
| 444 | public var wrappedElementType: any Any.Type { |
| 445 | get |
| 446 | } |
| 447 | public var prototype: any TabularData::AnyColumnPrototype { |
| 448 | get |
| 449 | } |
| 450 | public init(name: Swift::String, capacity: Swift::Int) |
| 451 | public init(_ id: TabularData::ColumnID<WrappedElement>, capacity: Swift::Int) |
| 452 | public init<S>(name: Swift::String, contents: S) where S : Swift::Sequence, S.Element == WrappedElement? |
| 453 | public init<S>(name: Swift::String, contents: S) where WrappedElement == S.Element, S : Swift::Sequence |
| 454 | public init<S>(_ id: TabularData::ColumnID<S.Element>, contents: S) where S : Swift::Sequence, S.Element == WrappedElement? |
| 455 | public init<S>(_ id: TabularData::ColumnID<S.Element>, contents: S) where WrappedElement == S.Element, S : Swift::Sequence |
| 456 | public init(_ slice: TabularData::ColumnSlice<WrappedElement>) |
| 457 | public mutating func append(_ element: TabularData::Column<WrappedElement>.TabularData::Element) |
| 458 | public mutating func append(_ element: WrappedElement) |
| 459 | public mutating func append<S>(contentsOf sequence: S) where S : Swift::Sequence, S.Element == WrappedElement? |
| 460 | public mutating func append<S>(contentsOf sequence: S) where WrappedElement == S.Element, S : Swift::Sequence |
| 461 | public mutating func remove(at index: Swift::Int) |
| 462 | public func map<T>(_ transform: (TabularData::Column<WrappedElement>.TabularData::Element) throws -> T?) rethrows -> TabularData::Column<T> |
| 463 | public func mapNonNil<T>(_ transform: (WrappedElement) throws -> T?) rethrows -> TabularData::Column<T> |
| 464 | public mutating func transform(_ transform: (TabularData::Column<WrappedElement>.TabularData::Element) throws -> TabularData::Column<WrappedElement>.TabularData::Element) rethrows |
| 465 | public mutating func transform(_ transform: (WrappedElement) throws -> WrappedElement) rethrows |
| 466 | public func filter(_ isIncluded: (TabularData::Column<WrappedElement>.TabularData::Element) throws -> Swift::Bool) rethrows -> TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 467 | public func eraseToAnyColumn() -> TabularData::AnyColumn |
| 468 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 469 | public typealias Index = Swift::Int |
| 470 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 471 | public typealias Indices = Swift::Range<Swift::Int> |
| 472 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 473 | public typealias Iterator = Swift::IndexingIterator<TabularData::Column<WrappedElement>> |
| 474 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 475 | public typealias SubSequence = TabularData::ColumnSlice<WrappedElement> |
| 476 | } |
| 477 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 478 | extension TabularData::Column : Swift::RandomAccessCollection, Swift::MutableCollection { |
| 479 | public var startIndex: Swift::Int { |
| 480 | get |
| 481 | } |
| 482 | public var endIndex: Swift::Int { |
| 483 | get |
| 484 | } |
| 485 | public func index(after i: Swift::Int) -> Swift::Int |
| 486 | public func index(before i: Swift::Int) -> Swift::Int |
| 487 | public subscript(position: Swift::Int) -> TabularData::Column<WrappedElement>.TabularData::Element { |
| 488 | get |
| 489 | set |
| 490 | } |
| 491 | @usableFromInline |
| 492 | internal func isNil(at index: Swift::Int) -> Swift::Bool |
| 493 | public subscript(bounds: Swift::Range<Swift::Int>) -> TabularData::ColumnSlice<WrappedElement> { |
| 494 | get |
| 495 | set |
| 496 | } |
| 497 | @inlinable public subscript<R>(range: R) -> TabularData::ColumnSlice<WrappedElement> where R : Swift::RangeExpression, R.Bound == Swift::Int { |
| 498 | get { |
| 499 | self[range.relative(to: self)] |
| 500 | } |
| 501 | set { |
| 502 | self[range.relative(to: self)] = newValue |
| 503 | } |
| 504 | } |
| 505 | public subscript<C>(mask: C) -> TabularData::DiscontiguousColumnSlice<WrappedElement> where C : Swift::Collection, C.Element == Swift::Bool { |
| 506 | get |
| 507 | } |
| 508 | public func withContiguousStorageIfAvailable<R>(_ body: (Swift::UnsafeBufferPointer<WrappedElement?>) throws -> R) rethrows -> R? |
| 509 | public mutating func withContiguousMutableStorageIfAvailable<R>(_ body: (inout Swift::UnsafeMutableBufferPointer<WrappedElement?>) throws -> R) rethrows -> R? |
| 510 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 511 | public func withContiguousStorageIfAvailable<R>(_ body: (Swift::UnsafeBufferPointer<WrappedElement>) throws -> R) rethrows -> R? |
| 512 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 513 | public mutating func withContiguousMutableStorageIfAvailable<R>(_ body: (inout Swift::UnsafeMutableBufferPointer<WrappedElement>) throws -> R) rethrows -> R? |
| 514 | } |
| 515 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 516 | extension TabularData::Column : Swift::Equatable where WrappedElement : Swift::Equatable { |
| 517 | public static func == (a: TabularData::Column<WrappedElement>, b: TabularData::Column<WrappedElement>) -> Swift::Bool |
| 518 | } |
| 519 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 520 | extension TabularData::Column : Swift::Hashable where WrappedElement : Swift::Hashable { |
| 521 | public func distinct() -> TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 522 | public func hash(into hasher: inout Swift::Hasher) |
| 523 | public var hashValue: Swift::Int { |
| 524 | get |
| 525 | } |
| 526 | } |
| 527 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 528 | extension TabularData::Column : Swift::Encodable where WrappedElement : Swift::Encodable { |
| 529 | public func encode(to encoder: any Swift::Encoder) throws |
| 530 | } |
| 531 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 532 | extension TabularData::Column : Swift::Decodable where WrappedElement : Swift::Decodable { |
| 533 | public init(from decoder: any Swift::Decoder) throws |
| 534 | } |
| 535 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 536 | extension TabularData::Column : Swift::Sendable where WrappedElement : Swift::Sendable { |
| 537 | } |
| 538 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 539 | public struct ColumnID<T> : Swift::Sendable { |
| 540 | public var name: Swift::String |
| 541 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 542 | public var type: any Any.Type { |
| 543 | get |
| 544 | } |
| 545 | public init(_ name: Swift::String, _ type: T.Type) |
| 546 | } |
| 547 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 548 | extension TabularData::ColumnID : Swift::CustomStringConvertible { |
| 549 | public var description: Swift::String { |
| 550 | get |
| 551 | } |
| 552 | } |
| 553 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 554 | public struct ColumnSlice<WrappedElement> : TabularData::OptionalColumnProtocol { |
| 555 | public typealias Element = WrappedElement? |
| 556 | public typealias Index = Swift::Int |
| 557 | @usableFromInline |
| 558 | internal var slice: Swift::Slice<TabularData::Column<WrappedElement>> |
| 559 | @inlinable public var name: Swift::String { |
| 560 | get { |
| 561 | slice.base.name |
| 562 | } |
| 571 | WrappedElement.self |
| 572 | } |
| 573 | } |
| 574 | public var prototype: any TabularData.AnyColumnPrototype { |
| 575 | get |
| 576 | } |
| 577 | @usableFromInline |
| 578 | internal init(_ slice: Swift.Slice<TabularData.Column<WrappedElement>>) |
| 579 | @usableFromInline |
| 580 | internal init(base: TabularData.Column<WrappedElement>, bounds: Swift.Range<Swift.Int>) |
| 581 | @inlinable public init(_ column: TabularData.Column<WrappedElement>) { |
| 582 | self.init(base: column, bounds: 0 ..< column.count) |
| 583 | } |
| 584 | @inlinable public func map<T>(_ transform: (TabularData.ColumnSlice<WrappedElement>.Element) throws -> T?) rethrows -> TabularData.Column<T> { |
| 585 | try Column<T>(name: name, contents: slice.map(transform)) |
| 586 | } |
| 587 | public func filter(_ isIncluded: (TabularData.ColumnSlice<WrappedElement>.Element) throws -> Swift.Bool) rethrows -> TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 588 | public func eraseToAnyColumn() -> TabularData.AnyColumnSlice |
| 589 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 590 | public typealias Indices = Swift.Range<TabularData.ColumnSlice<WrappedElement>.Index> |
| 591 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 592 | public typealias Iterator = Swift.IndexingIterator<TabularData.ColumnSlice<WrappedElement>> |
| 593 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 594 | public typealias SubSequence = TabularData.ColumnSlice<WrappedElement> |
| 595 | } |
| 596 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 597 | extension TabularData.ColumnSlice : Swift.Sendable where WrappedElement : Swift.Sendable { |
| 598 | } |
| 599 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 600 | extension TabularData.ColumnSlice : Swift.RandomAccessCollection, Swift.MutableCollection { |
| 601 | @inlinable public var startIndex: Swift.Int { |
| 602 | get { slice.startIndex } |
| 603 | } |
| 604 | @inlinable public var endIndex: Swift.Int { |
| 605 | get { slice.endIndex } |
| 606 | } |
| 607 | @inlinable public func index(after i: Swift.Int) -> Swift.Int { |
| 608 | slice.index(after: i) |
| 609 | } |
| 610 | @inlinable public func index(before i: Swift.Int) -> Swift.Int { |
| 611 | slice.index(before: i) |
| 612 | } |
| 613 | @inlinable public var count: Swift.Int { |
| 614 | get { |
| 615 | slice.count |
| 616 | } |
| 617 | } |
| 618 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 619 | @inlinable public var missingCount: Swift.Int { |
| 620 | get { |
| 621 | indices.filter({ slice.base.isNil(at: $0) }).count |
| 622 | } |
| 623 | } |
| 624 | @inlinable public subscript(position: Swift.Int) -> TabularData.ColumnSlice<WrappedElement>.Element { |
| 625 | get { |
| 626 | slice[position] |
| 627 | } |
| 628 | set { |
| 629 | slice[position] = newValue |
| 630 | } |
| 631 | } |
| 632 | public func isNil(at index: Swift.Int) -> Swift.Bool |
| 633 | @inlinable public subscript(range: Swift.Range<Swift.Int>) -> TabularData.ColumnSlice<WrappedElement> { |
| 634 | get { |
| 635 | ColumnSlice(slice[range]) |
| 636 | } |
| 571 | WrappedElement.self |
| 572 | } |
| 573 | } |
| 574 | public var prototype: any TabularData::AnyColumnPrototype { |
| 575 | get |
| 576 | } |
| 577 | @usableFromInline |
| 578 | internal init(_ slice: Swift::Slice<TabularData::Column<WrappedElement>>) |
| 579 | @usableFromInline |
| 580 | internal init(base: TabularData::Column<WrappedElement>, bounds: Swift::Range<Swift::Int>) |
| 581 | @inlinable public init(_ column: TabularData::Column<WrappedElement>) { |
| 582 | self.init(base: column, bounds: 0 ..< column.count) |
| 583 | } |
| 584 | @inlinable public func map<T>(_ transform: (TabularData::ColumnSlice<WrappedElement>.TabularData::Element) throws -> T?) rethrows -> TabularData::Column<T> { |
| 585 | try Column<T>(name: name, contents: slice.map(transform)) |
| 586 | } |
| 587 | public func filter(_ isIncluded: (TabularData::ColumnSlice<WrappedElement>.TabularData::Element) throws -> Swift::Bool) rethrows -> TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 588 | public func eraseToAnyColumn() -> TabularData::AnyColumnSlice |
| 589 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 590 | public typealias Indices = Swift::Range<TabularData::ColumnSlice<WrappedElement>.TabularData::Index> |
| 591 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 592 | public typealias Iterator = Swift::IndexingIterator<TabularData::ColumnSlice<WrappedElement>> |
| 593 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 594 | public typealias SubSequence = TabularData::ColumnSlice<WrappedElement> |
| 595 | } |
| 596 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 597 | extension TabularData::ColumnSlice : Swift::Sendable where WrappedElement : Swift::Sendable { |
| 598 | } |
| 599 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 600 | extension TabularData::ColumnSlice : Swift::RandomAccessCollection, Swift::MutableCollection { |
| 601 | @inlinable public var startIndex: Swift::Int { |
| 602 | get { slice.startIndex } |
| 603 | } |
| 604 | @inlinable public var endIndex: Swift::Int { |
| 605 | get { slice.endIndex } |
| 606 | } |
| 607 | @inlinable public func index(after i: Swift::Int) -> Swift::Int { |
| 608 | slice.index(after: i) |
| 609 | } |
| 610 | @inlinable public func index(before i: Swift::Int) -> Swift::Int { |
| 611 | slice.index(before: i) |
| 612 | } |
| 613 | @inlinable public var count: Swift::Int { |
| 614 | get { |
| 615 | slice.count |
| 616 | } |
| 617 | } |
| 618 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 619 | @inlinable public var missingCount: Swift::Int { |
| 620 | get { |
| 621 | indices.filter({ slice.base.isNil(at: $0) }).count |
| 622 | } |
| 623 | } |
| 624 | @inlinable public subscript(position: Swift::Int) -> TabularData::ColumnSlice<WrappedElement>.TabularData::Element { |
| 625 | get { |
| 626 | slice[position] |
| 627 | } |
| 628 | set { |
| 629 | slice[position] = newValue |
| 630 | } |
| 631 | } |
| 632 | public func isNil(at index: Swift::Int) -> Swift::Bool |
| 633 | @inlinable public subscript(range: Swift::Range<Swift::Int>) -> TabularData::ColumnSlice<WrappedElement> { |
| 634 | get { |
| 635 | ColumnSlice(slice[range]) |
| 636 | } |
| 640 | } |
| 641 | } |
| 642 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 643 | extension TabularData.ColumnSlice : Swift.Equatable where WrappedElement : Swift.Equatable { |
| 644 | public static func == (lhs: TabularData.ColumnSlice<WrappedElement>, rhs: TabularData.ColumnSlice<WrappedElement>) -> Swift.Bool |
| 645 | } |
| 646 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 647 | extension TabularData.ColumnSlice : Swift.Hashable where WrappedElement : Swift.Hashable { |
| 648 | public func hash(into hasher: inout Swift.Hasher) |
| 649 | public func distinct() -> TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 650 | public var hashValue: Swift.Int { |
| 651 | get |
| 652 | } |
| 653 | } |
| 654 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 655 | @usableFromInline |
| 656 | internal struct PackedOptionalsBuffer<Element> { |
| 657 | @usableFromInline |
| 658 | internal let rawBuffer: Swift.UnsafeMutableRawBufferPointer |
| 659 | @inlinable internal static var headerSize: Swift.Int { |
| 660 | get { |
| 661 | Alignment.roundToAligment(MemoryLayout<Header>.stride) |
| 662 | } |
| 663 | } |
| 664 | @inlinable internal static func nilBitmapSize(capacity: Swift.Int) -> Swift.Int { |
| 665 | Alignment.roundToAligment((capacity + 7) / 8) |
| 666 | } |
| 667 | @inlinable internal var nilBitmapSize: Swift.Int { |
| 668 | get { |
| 669 | Self.nilBitmapSize(capacity: capacity) |
| 670 | } |
| 671 | } |
| 672 | @inlinable internal var headerAddress: Swift.UnsafeMutablePointer<TabularData.PackedOptionalsBuffer<Element>.Header> { |
| 673 | get { |
| 674 | rawBuffer.baseAddress!.assumingMemoryBound(to: Header.self) |
| 675 | } |
| 676 | } |
| 677 | @inlinable internal var nilBitmapBuffer: Swift.UnsafeMutableBufferPointer<Swift.UInt8> { |
| 678 | get { |
| 679 | let address = rawBuffer.baseAddress! |
| 680 | .advanced(by: Self.headerSize) |
| 681 | .assumingMemoryBound(to: UInt8.self) |
| 682 | return UnsafeMutableBufferPointer(start: address, count: nilBitmapSize) |
| 683 | } |
| 684 | } |
| 685 | @inlinable internal var firstElementAddress: Swift.UnsafeMutablePointer<Element> { |
| 686 | get { |
| 687 | rawBuffer.baseAddress! |
| 688 | .advanced(by: Self.headerSize) |
| 689 | .advanced(by: nilBitmapSize) |
| 690 | .assumingMemoryBound(to: Element.self) |
| 691 | } |
| 692 | } |
| 693 | @inlinable internal var elementsBuffer: Swift.UnsafeMutableBufferPointer<Element> { |
| 694 | get { |
| 695 | UnsafeMutableBufferPointer(start: firstElementAddress, count: capacity) |
| 696 | } |
| 697 | } |
| 698 | @inlinable internal var capacity: Swift.Int { |
| 699 | get { |
| 700 | headerAddress.pointee.capacity |
| 701 | } |
| 702 | } |
| 703 | @inlinable internal var count: Swift.Int { |
| 704 | get { |
| 705 | headerAddress.pointee.count |
| 706 | } |
| 707 | nonmutating set { |
| 708 | headerAddress.pointee.count = newValue |
| 709 | } |
| 710 | } |
| 711 | @inlinable internal var nilCount: Swift.Int { |
| 712 | get { |
| 713 | headerAddress.pointee.nilCount |
| 714 | } |
| 640 | } |
| 641 | } |
| 642 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 643 | extension TabularData::ColumnSlice : Swift::Equatable where WrappedElement : Swift::Equatable { |
| 644 | public static func == (lhs: TabularData::ColumnSlice<WrappedElement>, rhs: TabularData::ColumnSlice<WrappedElement>) -> Swift::Bool |
| 645 | } |
| 646 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 647 | extension TabularData::ColumnSlice : Swift::Hashable where WrappedElement : Swift::Hashable { |
| 648 | public func hash(into hasher: inout Swift::Hasher) |
| 649 | public func distinct() -> TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 650 | public var hashValue: Swift::Int { |
| 651 | get |
| 652 | } |
| 653 | } |
| 654 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 655 | @usableFromInline |
| 656 | internal struct PackedOptionalsBuffer<Element> { |
| 657 | @usableFromInline |
| 658 | internal let rawBuffer: Swift::UnsafeMutableRawBufferPointer |
| 659 | @inlinable internal static var headerSize: Swift::Int { |
| 660 | get { |
| 661 | Alignment.roundToAligment(MemoryLayout<Header>.stride) |
| 662 | } |
| 663 | } |
| 664 | @inlinable internal static func nilBitmapSize(capacity: Swift::Int) -> Swift::Int { |
| 665 | Alignment.roundToAligment((capacity + 7) / 8) |
| 666 | } |
| 667 | @inlinable internal var nilBitmapSize: Swift::Int { |
| 668 | get { |
| 669 | Self.nilBitmapSize(capacity: capacity) |
| 670 | } |
| 671 | } |
| 672 | @inlinable internal var headerAddress: Swift::UnsafeMutablePointer<TabularData::PackedOptionalsBuffer<Element>.TabularData::Header> { |
| 673 | get { |
| 674 | rawBuffer.baseAddress!.assumingMemoryBound(to: Header.self) |
| 675 | } |
| 676 | } |
| 677 | @inlinable internal var nilBitmapBuffer: Swift::UnsafeMutableBufferPointer<Swift::UInt8> { |
| 678 | get { |
| 679 | let address = rawBuffer.baseAddress! |
| 680 | .advanced(by: Self.headerSize) |
| 681 | .assumingMemoryBound(to: UInt8.self) |
| 682 | return UnsafeMutableBufferPointer(start: address, count: nilBitmapSize) |
| 683 | } |
| 684 | } |
| 685 | @inlinable internal var firstElementAddress: Swift::UnsafeMutablePointer<Element> { |
| 686 | get { |
| 687 | rawBuffer.baseAddress! |
| 688 | .advanced(by: Self.headerSize) |
| 689 | .advanced(by: nilBitmapSize) |
| 690 | .assumingMemoryBound(to: Element.self) |
| 691 | } |
| 692 | } |
| 693 | @inlinable internal var elementsBuffer: Swift::UnsafeMutableBufferPointer<Element> { |
| 694 | get { |
| 695 | UnsafeMutableBufferPointer(start: firstElementAddress, count: capacity) |
| 696 | } |
| 697 | } |
| 698 | @inlinable internal var capacity: Swift::Int { |
| 699 | get { |
| 700 | headerAddress.pointee.capacity |
| 701 | } |
| 702 | } |
| 703 | @inlinable internal var count: Swift::Int { |
| 704 | get { |
| 705 | headerAddress.pointee.count |
| 706 | } |
| 707 | nonmutating set { |
| 708 | headerAddress.pointee.count = newValue |
| 709 | } |
| 710 | } |
| 711 | @inlinable internal var nilCount: Swift::Int { |
| 712 | get { |
| 713 | headerAddress.pointee.nilCount |
| 714 | } |
| 717 | } |
| 718 | } |
| 719 | @usableFromInline |
| 720 | internal init(rawBuffer: Swift.UnsafeMutableRawBufferPointer) |
| 721 | @inlinable internal static func allocate(capacity: Swift.Int) -> TabularData.PackedOptionalsBuffer<Element> { |
| 722 | let headerSize = Self.headerSize |
| 723 | let nilBitmapSize = Self.nilBitmapSize(capacity: capacity) |
| 724 |
| 717 | } |
| 718 | } |
| 719 | @usableFromInline |
| 720 | internal init(rawBuffer: Swift::UnsafeMutableRawBufferPointer) |
| 721 | @inlinable internal static func allocate(capacity: Swift::Int) -> TabularData::PackedOptionalsBuffer<Element> { |
| 722 | let headerSize = Self.headerSize |
| 723 | let nilBitmapSize = Self.nilBitmapSize(capacity: capacity) |
| 724 |
| 743 | |
| 744 | return PackedOptionalsBuffer<Element>(rawBuffer: rawBuffer) |
| 745 | } |
| 746 | @inlinable internal init(copying other: TabularData.PackedOptionalsBuffer<Element>, capacity: Swift.Int) { |
| 747 | precondition(capacity >= other.capacity) |
| 748 | |
| 749 | let headerSize = Self.headerSize |
| 743 | |
| 744 | return PackedOptionalsBuffer<Element>(rawBuffer: rawBuffer) |
| 745 | } |
| 746 | @inlinable internal init(copying other: TabularData::PackedOptionalsBuffer<Element>, capacity: Swift::Int) { |
| 747 | precondition(capacity >= other.capacity) |
| 748 | |
| 749 | let headerSize = Self.headerSize |
| 780 | (elements + i).initialize(to: (otherElements + i).pointee) |
| 781 | } |
| 782 | } |
| 783 | @inlinable internal init(moving other: TabularData.PackedOptionalsBuffer<Element>, capacity: Swift.Int) { |
| 784 | precondition(capacity >= other.capacity) |
| 785 | |
| 786 | let headerSize = Self.headerSize |
| 780 | (elements + i).initialize(to: (otherElements + i).pointee) |
| 781 | } |
| 782 | } |
| 783 | @inlinable internal init(moving other: TabularData::PackedOptionalsBuffer<Element>, capacity: Swift::Int) { |
| 784 | precondition(capacity >= other.capacity) |
| 785 | |
| 786 | let headerSize = Self.headerSize |
| 830 | headerAddress.deinitialize(count: 1) |
| 831 | rawBuffer.deallocate() |
| 832 | } |
| 833 | @inlinable internal func isNil(at index: Swift.Int) -> Swift.Bool { |
| 834 | let (byteIndex, bitIndex) = index.quotientAndRemainder(dividingBy: 8) |
| 835 | return nilBitmapBuffer[byteIndex] & (1 << bitIndex) == 0 |
| 836 | } |
| 837 | @inlinable internal func setNil(at index: Swift.Int) { |
| 838 | let (byteIndex, bitIndex) = index.quotientAndRemainder(dividingBy: 8) |
| 839 | nilBitmapBuffer[byteIndex] &= ~(1 << bitIndex) |
| 840 | } |
| 841 | @inlinable internal func setNonNil(at index: Swift.Int) { |
| 842 | let (byteIndex, bitIndex) = index.quotientAndRemainder(dividingBy: 8) |
| 843 | nilBitmapBuffer[byteIndex] |= (1 << bitIndex) |
| 844 | } |
| 845 | @inlinable internal func resize(by change: Swift.Int) { |
| 846 | assert(count + change >= 0) |
| 847 | assert(count + change <= capacity) |
| 848 |
| 830 | headerAddress.deinitialize(count: 1) |
| 831 | rawBuffer.deallocate() |
| 832 | } |
| 833 | @inlinable internal func isNil(at index: Swift::Int) -> Swift::Bool { |
| 834 | let (byteIndex, bitIndex) = index.quotientAndRemainder(dividingBy: 8) |
| 835 | return nilBitmapBuffer[byteIndex] & (1 << bitIndex) == 0 |
| 836 | } |
| 837 | @inlinable internal func setNil(at index: Swift::Int) { |
| 838 | let (byteIndex, bitIndex) = index.quotientAndRemainder(dividingBy: 8) |
| 839 | nilBitmapBuffer[byteIndex] &= ~(1 << bitIndex) |
| 840 | } |
| 841 | @inlinable internal func setNonNil(at index: Swift::Int) { |
| 842 | let (byteIndex, bitIndex) = index.quotientAndRemainder(dividingBy: 8) |
| 843 | nilBitmapBuffer[byteIndex] |= (1 << bitIndex) |
| 844 | } |
| 845 | @inlinable internal func resize(by change: Swift::Int) { |
| 846 | assert(count + change >= 0) |
| 847 | assert(count + change <= capacity) |
| 848 |
| 864 | |
| 865 | headerAddress.pointee.count += change |
| 866 | } |
| 867 | @inlinable internal func clear(at index: Swift.Int) { |
| 868 | guard !isNil(at: index) else { |
| 869 | return |
| 870 | } |
| 864 | |
| 865 | headerAddress.pointee.count += change |
| 866 | } |
| 867 | @inlinable internal func clear(at index: Swift::Int) { |
| 868 | guard !isNil(at: index) else { |
| 869 | return |
| 870 | } |
| 885 | } |
| 886 | count += 1 |
| 887 | } |
| 888 | @inlinable internal func swapAt(_ i: Swift.Int, _ j: Swift.Int) { |
| 889 | let elements = firstElementAddress |
| 890 | |
| 891 | switch (isNil(at: i), isNil(at: j)) { |
| 885 | } |
| 886 | count += 1 |
| 887 | } |
| 888 | @inlinable internal func swapAt(_ i: Swift::Int, _ j: Swift::Int) { |
| 889 | let elements = firstElementAddress |
| 890 | |
| 891 | switch (isNil(at: i), isNil(at: j)) { |
| 903 | swap(&elements[j], &elements[i]) |
| 904 | } |
| 905 | } |
| 906 | @inlinable internal func move(from i: Swift.Int, to j: Swift.Int) { |
| 907 | let elements = firstElementAddress |
| 908 | |
| 909 | switch (isNil(at: i), isNil(at: j)) { |
| 903 | swap(&elements[j], &elements[i]) |
| 904 | } |
| 905 | } |
| 906 | @inlinable internal func move(from i: Swift::Int, to j: Swift::Int) { |
| 907 | let elements = firstElementAddress |
| 908 | |
| 909 | switch (isNil(at: i), isNil(at: j)) { |
| 925 | } |
| 926 | } |
| 927 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 928 | extension TabularData.PackedOptionalsBuffer : Swift.MutableCollection, Swift.RandomAccessCollection { |
| 929 | @inlinable internal var startIndex: Swift.Int { |
| 930 | get { 0 } |
| 931 | } |
| 932 | @inlinable internal var endIndex: Swift.Int { |
| 933 | get { count } |
| 934 | } |
| 935 | @inlinable internal func index(after i: Swift.Int) -> Swift.Int { i + 1 } |
| 936 | @inlinable internal func index(before i: Swift.Int) -> Swift.Int { i - 1 } |
| 937 | @inlinable internal func distance(from start: Swift.Int, to end: Swift.Int) -> Swift.Int { end - start } |
| 938 | @inlinable internal var isEmpty: Swift.Bool { |
| 939 | get { count == 0 } |
| 940 | } |
| 941 | @inlinable internal var underestimatedCount: Swift.Int { |
| 942 | get { count } |
| 943 | } |
| 944 | @inlinable internal subscript(position: Swift.Int) -> Element? { |
| 945 | get { |
| 946 | return isNil(at: position) ? nil : firstElementAddress[position] |
| 947 | } |
| 925 | } |
| 926 | } |
| 927 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 928 | extension TabularData::PackedOptionalsBuffer : Swift::MutableCollection, Swift::RandomAccessCollection { |
| 929 | @inlinable internal var startIndex: Swift::Int { |
| 930 | get { 0 } |
| 931 | } |
| 932 | @inlinable internal var endIndex: Swift::Int { |
| 933 | get { count } |
| 934 | } |
| 935 | @inlinable internal func index(after i: Swift::Int) -> Swift::Int { i + 1 } |
| 936 | @inlinable internal func index(before i: Swift::Int) -> Swift::Int { i - 1 } |
| 937 | @inlinable internal func distance(from start: Swift::Int, to end: Swift::Int) -> Swift::Int { end - start } |
| 938 | @inlinable internal var isEmpty: Swift::Bool { |
| 939 | get { count == 0 } |
| 940 | } |
| 941 | @inlinable internal var underestimatedCount: Swift::Int { |
| 942 | get { count } |
| 943 | } |
| 944 | @inlinable internal subscript(position: Swift::Int) -> Element? { |
| 945 | get { |
| 946 | return isNil(at: position) ? nil : firstElementAddress[position] |
| 947 | } |
| 959 | } |
| 960 | } |
| 961 | } |
| 962 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 963 | @usableFromInline |
| 964 | internal typealias Index = Swift.Int |
| 965 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 966 | @usableFromInline |
| 967 | internal typealias Indices = Swift.Range<TabularData.PackedOptionalsBuffer<Element>.Index> |
| 968 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 969 | @usableFromInline |
| 970 | internal typealias Iterator = Swift.IndexingIterator<TabularData.PackedOptionalsBuffer<Element>> |
| 971 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 972 | @usableFromInline |
| 973 | internal typealias SubSequence = Swift.Slice<TabularData.PackedOptionalsBuffer<Element>> |
| 974 | } |
| 975 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 976 | extension TabularData.PackedOptionalsBuffer : Swift.RangeReplaceableCollection { |
| 977 | @usableFromInline |
| 978 | internal init() |
| 979 | @inlinable internal func replaceSubrange<C>(_ subrange: Swift.Range<Swift.Int>, with newValues: C) where C : Swift.Collection, C.Element == Element? { |
| 980 | self.replaceSubrange(subrange, with: newValues.count, elementsOf: newValues) |
| 981 | } |
| 982 | @inlinable internal func replaceSubrange<C>(_ subrange: Swift.Range<Swift.Int>, with newCount: Swift.Int, elementsOf newValues: C) where C : Swift.Collection, C.Element == Element? { |
| 983 | let oldCount = self.count |
| 984 | let eraseCount = subrange.count |
| 985 | let growth = newCount - eraseCount |
| 959 | } |
| 960 | } |
| 961 | } |
| 962 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 963 | @usableFromInline |
| 964 | internal typealias Index = Swift::Int |
| 965 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 966 | @usableFromInline |
| 967 | internal typealias Indices = Swift::Range<TabularData::PackedOptionalsBuffer<Element>.TabularData::Index> |
| 968 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 969 | @usableFromInline |
| 970 | internal typealias Iterator = Swift::IndexingIterator<TabularData::PackedOptionalsBuffer<Element>> |
| 971 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 972 | @usableFromInline |
| 973 | internal typealias SubSequence = Swift::Slice<TabularData::PackedOptionalsBuffer<Element>> |
| 974 | } |
| 975 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 976 | extension TabularData::PackedOptionalsBuffer : Swift::RangeReplaceableCollection { |
| 977 | @usableFromInline |
| 978 | internal init() |
| 979 | @inlinable internal func replaceSubrange<C>(_ subrange: Swift::Range<Swift::Int>, with newValues: C) where C : Swift::Collection, C.Element == Element? { |
| 980 | self.replaceSubrange(subrange, with: newValues.count, elementsOf: newValues) |
| 981 | } |
| 982 | @inlinable internal func replaceSubrange<C>(_ subrange: Swift::Range<Swift::Int>, with newCount: Swift::Int, elementsOf newValues: C) where C : Swift::Collection, C.Element == Element? { |
| 983 | let oldCount = self.count |
| 984 | let eraseCount = subrange.count |
| 985 | let growth = newCount - eraseCount |
| 1051 | } |
| 1052 | } |
| 1053 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1054 | extension TabularData.PackedOptionalsBuffer : Swift.CustomReflectable { |
| 1055 | @usableFromInline |
| 1056 | internal var customMirror: Swift.Mirror { |
| 1057 | get |
| 1058 | } |
| 1059 | } |
| 1060 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1061 | extension TabularData.PackedOptionalsBuffer { |
| 1062 | @usableFromInline |
| 1063 | internal struct Header { |
| 1064 | @usableFromInline |
| 1065 | internal var capacity: Swift.Int |
| 1066 | @usableFromInline |
| 1067 | internal var count: Swift.Int |
| 1068 | @usableFromInline |
| 1069 | internal var nilCount: Swift.Int |
| 1070 | @usableFromInline |
| 1071 | internal init(capacity: Swift.Int, count: Swift.Int = 0, nilCount: Swift.Int = 0) |
| 1072 | } |
| 1073 | } |
| 1074 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1075 | @usableFromInline |
| 1076 | internal struct Alignment { |
| 1077 | @usableFromInline |
| 1078 | internal static let bufferAlignment: Swift.Int |
| 1079 | @inlinable internal static func roundToAligment(_ size: Swift.Int) -> Swift.Int { |
| 1080 | return bufferAlignment * ((size - 1) / bufferAlignment + 1) |
| 1081 | } |
| 1082 | } |
| 1083 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1084 | extension TabularData.DataFrame { |
| 1085 | public func summary() -> TabularData.DataFrame |
| 1086 | public func summary(of columnNames: Swift.String...) -> TabularData.DataFrame |
| 1087 | public func summary(ofColumns columnIndices: Swift.Int...) -> TabularData.DataFrame |
| 1088 | } |
| 1089 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1090 | extension TabularData.DataFrame.Slice { |
| 1091 | public func summary() -> TabularData.DataFrame |
| 1092 | public func summary(of columnNames: Swift.String...) -> TabularData.DataFrame |
| 1093 | public func summary(ofColumns columnIndices: Swift.Int...) -> TabularData.DataFrame |
| 1094 | } |
| 1095 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1096 | extension TabularData.DataFrame { |
| 1097 | public mutating func combineColumns<E1, E2, R>(_ columnName1: Swift.String, _ columnName2: Swift.String, into newColumnName: Swift.String, transform: (E1?, E2?) throws -> R?) rethrows |
| 1098 | public mutating func combineColumns<E1, E2, R>(_ columnID1: TabularData.ColumnID<E1>, _ columnID2: TabularData.ColumnID<E2>, into newColumnName: Swift.String, transform: (E1?, E2?) throws -> R?) rethrows |
| 1099 | public mutating func combineColumns<E1, E2, E3, R>(_ columnName1: Swift.String, _ columnName2: Swift.String, _ columnName3: Swift.String, into newColumnName: Swift.String, transform: (E1?, E2?, E3?) throws -> R?) rethrows |
| 1100 | public mutating func combineColumns<E1, E2, E3, R>(_ columnID1: TabularData.ColumnID<E1>, _ columnID2: TabularData.ColumnID<E2>, _ columnID3: TabularData.ColumnID<E3>, into newColumnName: Swift.String, transform: (E1?, E2?, E3?) throws -> R?) rethrows |
| 1101 | } |
| 1102 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1103 | public enum SFrameReadingError : Swift.Error { |
| 1104 | case missingArchive |
| 1105 | case badArchive(Swift.String) |
| 1106 | case unsupportedArchive(Swift.String) |
| 1107 | case unsupportedType(Swift.Int) |
| 1108 | case unsupportedLayout(Swift.String) |
| 1109 | case badEncoding(Swift.String) |
| 1110 | case missingColumn(Swift.String) |
| 1111 | } |
| 1112 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1113 | extension TabularData.SFrameReadingError : Swift.CustomStringConvertible { |
| 1114 | public var description: Swift.String { |
| 1115 | get |
| 1116 | } |
| 1117 | } |
| 1118 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 1119 | extension TabularData.SFrameReadingError : Foundation.LocalizedError { |
| 1120 | public var errorDescription: Swift.String? { |
| 1121 | get |
| 1122 | } |
| 1123 | } |
| 1124 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1125 | extension TabularData.DataFrame { |
| 1126 | public init(contentsOfCSVFile url: Foundation.URL, columns: [Swift.String]? = nil, rows: Swift.Range<Swift.Int>? = nil, types: [Swift.String : TabularData.CSVType] = [:], options: TabularData.CSVReadingOptions = .init()) throws |
| 1127 | public init(csvData data: Foundation.Data, columns: [Swift.String]? = nil, rows: Swift.Range<Swift.Int>? = nil, types: [Swift.String : TabularData.CSVType] = [:], options: TabularData.CSVReadingOptions = .init()) throws |
| 1128 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 1129 | public init<each T>(contentsOfCSVFile url: Foundation.URL, columns: repeat TabularData.ColumnID<each T>, rows: Swift.Range<Swift.Int>? = nil, options: TabularData.CSVReadingOptions = .init()) throws |
| 1130 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 1131 | public init<each T>(csvData data: Foundation.Data, columns: repeat TabularData.ColumnID<each T>, rows: Swift.Range<Swift.Int>? = nil, options: TabularData.CSVReadingOptions = .init()) throws |
| 1132 | } |
| 1133 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1134 | public protocol DataFrameProtocol { |
| 1135 | associatedtype ColumnType : TabularData.AnyColumnProtocol |
| 1136 | var base: TabularData.DataFrame { get } |
| 1137 | var rows: TabularData.DataFrame.Rows { get set } |
| 1138 | var columns: [Self.ColumnType] { get } |
| 1139 | var shape: (rows: Swift.Int, columns: Swift.Int) { get } |
| 1140 | subscript(range: Swift.Range<Swift.Int>) -> TabularData.DataFrame.Slice { get set } |
| 1141 | } |
| 1142 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1143 | extension TabularData.DataFrame { |
| 1144 | public var base: TabularData.DataFrame { |
| 1145 | get |
| 1146 | } |
| 1147 | } |
| 1148 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1149 | extension TabularData.DataFrameProtocol { |
| 1150 | public var isEmpty: Swift.Bool { |
| 1151 | get |
| 1152 | } |
| 1153 | public subscript(range: Swift.Range<Swift.Int>) -> TabularData.DataFrame.Slice { |
| 1154 | get |
| 1155 | set |
| 1156 | } |
| 1157 | @inlinable public subscript<R>(r: R) -> TabularData.DataFrame.Slice where R : Swift.RangeExpression, R.Bound == Swift.Int { |
| 1158 | get { |
| 1159 | self[r.relative(to: rows.indices)] |
| 1160 | } |
| 1051 | } |
| 1052 | } |
| 1053 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1054 | extension TabularData::PackedOptionalsBuffer : Swift::CustomReflectable { |
| 1055 | @usableFromInline |
| 1056 | internal var customMirror: Swift::Mirror { |
| 1057 | get |
| 1058 | } |
| 1059 | } |
| 1060 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1061 | extension TabularData::PackedOptionalsBuffer { |
| 1062 | @usableFromInline |
| 1063 | internal struct Header { |
| 1064 | @usableFromInline |
| 1065 | internal var capacity: Swift::Int |
| 1066 | @usableFromInline |
| 1067 | internal var count: Swift::Int |
| 1068 | @usableFromInline |
| 1069 | internal var nilCount: Swift::Int |
| 1070 | @usableFromInline |
| 1071 | internal init(capacity: Swift::Int, count: Swift::Int = 0, nilCount: Swift::Int = 0) |
| 1072 | } |
| 1073 | } |
| 1074 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1075 | @usableFromInline |
| 1076 | internal struct Alignment { |
| 1077 | @usableFromInline |
| 1078 | internal static let bufferAlignment: Swift::Int |
| 1079 | @inlinable internal static func roundToAligment(_ size: Swift::Int) -> Swift::Int { |
| 1080 | return bufferAlignment * ((size - 1) / bufferAlignment + 1) |
| 1081 | } |
| 1082 | } |
| 1083 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1084 | extension TabularData::DataFrame { |
| 1085 | public func summary() -> TabularData::DataFrame |
| 1086 | public func summary(of columnNames: Swift::String...) -> TabularData::DataFrame |
| 1087 | public func summary(ofColumns columnIndices: Swift::Int...) -> TabularData::DataFrame |
| 1088 | } |
| 1089 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1090 | extension TabularData::DataFrame.TabularData::Slice { |
| 1091 | public func summary() -> TabularData::DataFrame |
| 1092 | public func summary(of columnNames: Swift::String...) -> TabularData::DataFrame |
| 1093 | public func summary(ofColumns columnIndices: Swift::Int...) -> TabularData::DataFrame |
| 1094 | } |
| 1095 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1096 | extension TabularData::DataFrame { |
| 1097 | public mutating func combineColumns<E1, E2, R>(_ columnName1: Swift::String, _ columnName2: Swift::String, into newColumnName: Swift::String, transform: (E1?, E2?) throws -> R?) rethrows |
| 1098 | public mutating func combineColumns<E1, E2, R>(_ columnID1: TabularData::ColumnID<E1>, _ columnID2: TabularData::ColumnID<E2>, into newColumnName: Swift::String, transform: (E1?, E2?) throws -> R?) rethrows |
| 1099 | public mutating func combineColumns<E1, E2, E3, R>(_ columnName1: Swift::String, _ columnName2: Swift::String, _ columnName3: Swift::String, into newColumnName: Swift::String, transform: (E1?, E2?, E3?) throws -> R?) rethrows |
| 1100 | public mutating func combineColumns<E1, E2, E3, R>(_ columnID1: TabularData::ColumnID<E1>, _ columnID2: TabularData::ColumnID<E2>, _ columnID3: TabularData::ColumnID<E3>, into newColumnName: Swift::String, transform: (E1?, E2?, E3?) throws -> R?) rethrows |
| 1101 | } |
| 1102 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1103 | public enum SFrameReadingError : Swift::Error { |
| 1104 | case missingArchive |
| 1105 | case badArchive(Swift::String) |
| 1106 | case unsupportedArchive(Swift::String) |
| 1107 | case unsupportedType(Swift::Int) |
| 1108 | case unsupportedLayout(Swift::String) |
| 1109 | case badEncoding(Swift::String) |
| 1110 | case missingColumn(Swift::String) |
| 1111 | } |
| 1112 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1113 | extension TabularData::SFrameReadingError : Swift::CustomStringConvertible { |
| 1114 | public var description: Swift::String { |
| 1115 | get |
| 1116 | } |
| 1117 | } |
| 1118 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 1119 | extension TabularData::SFrameReadingError : Foundation::LocalizedError { |
| 1120 | public var errorDescription: Swift::String? { |
| 1121 | get |
| 1122 | } |
| 1123 | } |
| 1124 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1125 | extension TabularData::DataFrame { |
| 1126 | public init(contentsOfCSVFile url: Foundation::URL, columns: [Swift::String]? = nil, rows: Swift::Range<Swift::Int>? = nil, types: [Swift::String : TabularData::CSVType] = [:], options: TabularData::CSVReadingOptions = .init()) throws |
| 1127 | public init(csvData data: Foundation::Data, columns: [Swift::String]? = nil, rows: Swift::Range<Swift::Int>? = nil, types: [Swift::String : TabularData::CSVType] = [:], options: TabularData::CSVReadingOptions = .init()) throws |
| 1128 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 1129 | public init<each T>(contentsOfCSVFile url: Foundation::URL, columns: repeat TabularData::ColumnID<each T>, rows: Swift::Range<Swift::Int>? = nil, options: TabularData::CSVReadingOptions = .init()) throws |
| 1130 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 1131 | public init<each T>(csvData data: Foundation::Data, columns: repeat TabularData::ColumnID<each T>, rows: Swift::Range<Swift::Int>? = nil, options: TabularData::CSVReadingOptions = .init()) throws |
| 1132 | } |
| 1133 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1134 | public protocol DataFrameProtocol { |
| 1135 | associatedtype ColumnType : TabularData::AnyColumnProtocol |
| 1136 | var base: TabularData::DataFrame { get } |
| 1137 | var rows: TabularData::DataFrame.TabularData::Rows { get set } |
| 1138 | var columns: [Self.ColumnType] { get } |
| 1139 | var shape: (rows: Swift::Int, columns: Swift::Int) { get } |
| 1140 | subscript(range: Swift::Range<Swift::Int>) -> TabularData::DataFrame.TabularData::Slice { get set } |
| 1141 | } |
| 1142 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1143 | extension TabularData::DataFrame { |
| 1144 | public var base: TabularData::DataFrame { |
| 1145 | get |
| 1146 | } |
| 1147 | } |
| 1148 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1149 | extension TabularData::DataFrameProtocol { |
| 1150 | public var isEmpty: Swift::Bool { |
| 1151 | get |
| 1152 | } |
| 1153 | public subscript(range: Swift::Range<Swift::Int>) -> TabularData::DataFrame.TabularData::Slice { |
| 1154 | get |
| 1155 | set |
| 1156 | } |
| 1157 | @inlinable public subscript<R>(r: R) -> TabularData::DataFrame.TabularData::Slice where R : Swift::RangeExpression, R.Bound == Swift::Int { |
| 1158 | get { |
| 1159 | self[r.relative(to: rows.indices)] |
| 1160 | } |
| 1164 | } |
| 1165 | } |
| 1166 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1167 | public struct AnyCategoricalSummary : Swift.Equatable { |
| 1168 | public var someCount: Swift.Int |
| 1169 | public var noneCount: Swift.Int |
| 1170 | public var totalCount: Swift.Int { |
| 1171 | get |
| 1172 | } |
| 1173 | public var uniqueCount: Swift.Int |
| 1174 | public var mode: [Any] |
| 1175 | public var modeType: any Any.Type |
| 1176 | public init<T>(_ summary: TabularData.CategoricalSummary<T>) where T : Swift.Hashable |
| 1177 | public init(_ summary: TabularData.CategoricalSummary<Swift.AnyHashable>) |
| 1178 | public static func == (lhs: TabularData.AnyCategoricalSummary, rhs: TabularData.AnyCategoricalSummary) -> Swift.Bool |
| 1179 | } |
| 1180 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1181 | extension TabularData.Column { |
| 1182 | public func decoded<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws -> TabularData.Column<T> where WrappedElement == Decoder.Input, T : Swift.Decodable, Decoder : Combine.TopLevelDecoder |
| 1183 | } |
| 1184 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1185 | extension TabularData.AnyColumn { |
| 1186 | public func decoded<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws -> TabularData.AnyColumn where T : Swift.Decodable, Decoder : Combine.TopLevelDecoder |
| 1187 | public mutating func decode<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws where T : Swift.Decodable, Decoder : Combine.TopLevelDecoder |
| 1188 | } |
| 1189 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1190 | extension TabularData.DataFrame { |
| 1191 | public mutating func decode<T, Decoder>(_ type: T.Type, inColumn columnName: Swift.String, using decoder: Decoder) throws where T : Swift.Decodable, Decoder : Combine.TopLevelDecoder |
| 1192 | public mutating func decode<T, Decoder>(_ type: T.Type, inColumn id: TabularData.ColumnID<Decoder.Input>, using decoder: Decoder) throws where T : Swift.Decodable, Decoder : Combine.TopLevelDecoder |
| 1193 | } |
| 1194 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1195 | public struct ColumnDecodingError : Swift.Error, Foundation.LocalizedError, Swift.CustomDebugStringConvertible { |
| 1196 | public var columnName: Swift.String |
| 1197 | public var rowIndex: Swift.Int |
| 1198 | public var decodingError: Swift.DecodingError |
| 1199 | public init(columnName: Swift.String, rowIndex: Swift.Int, decodingError: Swift.DecodingError) |
| 1200 | public var debugDescription: Swift.String { |
| 1201 | get |
| 1202 | } |
| 1203 | } |
| 1204 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1205 | public protocol GroupSummaries : Swift.CustomStringConvertible { |
| 1206 | subscript(keys: Any?...) -> TabularData.DataFrame? { get } |
| 1207 | var description: Swift.String { get } |
| 1208 | func description(options: TabularData.FormattingOptions) -> Swift.String |
| 1209 | } |
| 1210 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1211 | extension TabularData.DataFrameProtocol { |
| 1212 | public func sorted(on columnName: Swift.String, order: TabularData.Order = .ascending) -> TabularData.DataFrame |
| 1213 | public func sorted<T>(on columnName: Swift.String, _ type: T.Type, order: TabularData.Order = .ascending) -> TabularData.DataFrame where T : Swift.Comparable |
| 1214 | public func sorted<T>(on columnID: TabularData.ColumnID<T>, order: TabularData.Order = .ascending) -> TabularData.DataFrame where T : Swift.Comparable |
| 1215 | public func sorted<T0, T1>(on columnID0: TabularData.ColumnID<T0>, _ columnID1: TabularData.ColumnID<T1>, order: TabularData.Order = .ascending) -> TabularData.DataFrame where T0 : Swift.Comparable, T1 : Swift.Comparable |
| 1216 | public func sorted<T0, T1, T2>(on columnID0: TabularData.ColumnID<T0>, _ columnID1: TabularData.ColumnID<T1>, _ columnID2: TabularData.ColumnID<T2>, order: TabularData.Order = .ascending) -> TabularData.DataFrame where T0 : Swift.Comparable, T1 : Swift.Comparable, T2 : Swift.Comparable |
| 1217 | public func sorted<T>(on columnName: Swift.String, _ type: T.Type, by areInIncreasingOrder: (T, T) throws -> Swift.Bool) rethrows -> TabularData.DataFrame |
| 1218 | public func sorted<T>(on columnID: TabularData.ColumnID<T>, by areInIncreasingOrder: (T, T) throws -> Swift.Bool) rethrows -> TabularData.DataFrame |
| 1219 | } |
| 1220 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1221 | extension TabularData.DataFrame { |
| 1222 | public mutating func sort(on columnName: Swift.String, order: TabularData.Order = .ascending) |
| 1223 | public mutating func sort<T>(on columnName: Swift.String, _ type: T.Type, order: TabularData.Order = .ascending) where T : Swift.Comparable |
| 1224 | public mutating func sort<T>(on columnID: TabularData.ColumnID<T>, order: TabularData.Order = .ascending) where T : Swift.Comparable |
| 1225 | public mutating func sort<T0, T1>(on columnID0: TabularData.ColumnID<T0>, _ columnID1: TabularData.ColumnID<T1>, order: TabularData.Order = .ascending) where T0 : Swift.Comparable, T1 : Swift.Comparable |
| 1226 | public mutating func sort<T0, T1, T2>(on columnID0: TabularData.ColumnID<T0>, _ columnID1: TabularData.ColumnID<T1>, _ columnID2: TabularData.ColumnID<T2>, order: TabularData.Order = .ascending) where T0 : Swift.Comparable, T1 : Swift.Comparable, T2 : Swift.Comparable |
| 1227 | public mutating func sort<T>(on columnID: TabularData.ColumnID<T>, by areInIncreasingOrder: (T, T) throws -> Swift.Bool) rethrows |
| 1228 | public mutating func sort<T>(on columnName: Swift.String, _ type: T.Type, by areInIncreasingOrder: (T, T) throws -> Swift.Bool) rethrows |
| 1229 | } |
| 1230 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1231 | public enum JSONReadingError : Swift.Error { |
| 1232 | case unsupportedStructure |
| 1233 | case wrongType(row: Swift.Int, column: Swift.String, expectedType: TabularData.JSONType, value: any Swift.Sendable) |
| 1234 | case incompatibleValues(column: Swift.String) |
| 1235 | case failedToParse(row: Swift.Int, column: Swift.String, type: TabularData.JSONType, contents: Swift.String) |
| 1236 | } |
| 1237 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1238 | extension TabularData.JSONReadingError : Swift.CustomStringConvertible { |
| 1239 | public var description: Swift.String { |
| 1240 | get |
| 1241 | } |
| 1242 | } |
| 1243 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 1244 | extension TabularData.JSONReadingError : Foundation.LocalizedError { |
| 1245 | public var errorDescription: Swift.String? { |
| 1246 | get |
| 1247 | } |
| 1248 | } |
| 1249 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1250 | public struct CategoricalSummary<Element> : Swift.Hashable, Swift.CustomDebugStringConvertible where Element : Swift.Hashable { |
| 1251 | public var someCount: Swift.Int |
| 1252 | public var noneCount: Swift.Int |
| 1253 | public var totalCount: Swift.Int { |
| 1254 | get |
| 1255 | } |
| 1256 | public var uniqueCount: Swift.Int |
| 1257 | public var mode: [Element] |
| 1258 | public init() |
| 1259 | public init(someCount: Swift.Int, noneCount: Swift.Int, uniqueCount: Swift.Int, mode: [Element]) |
| 1260 | public var debugDescription: Swift.String { |
| 1261 | get |
| 1262 | } |
| 1263 | public static func == (a: TabularData.CategoricalSummary<Element>, b: TabularData.CategoricalSummary<Element>) -> Swift.Bool |
| 1264 | public func hash(into hasher: inout Swift.Hasher) |
| 1265 | public var hashValue: Swift.Int { |
| 1266 | get |
| 1267 | } |
| 1268 | } |
| 1269 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1270 | extension TabularData.CategoricalSummary : Swift.Sendable where Element : Swift.Sendable { |
| 1271 | } |
| 1272 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1273 | extension TabularData.DataFrame : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 1274 | public var description: Swift.String { |
| 1275 | get |
| 1276 | } |
| 1277 | public var debugDescription: Swift.String { |
| 1278 | get |
| 1279 | } |
| 1280 | public var customMirror: Swift.Mirror { |
| 1281 | get |
| 1282 | } |
| 1283 | } |
| 1284 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1285 | extension TabularData.DataFrame.Slice : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 1286 | public var description: Swift.String { |
| 1287 | get |
| 1288 | } |
| 1289 | public var debugDescription: Swift.String { |
| 1290 | get |
| 1291 | } |
| 1292 | public var customMirror: Swift.Mirror { |
| 1293 | get |
| 1294 | } |
| 1295 | } |
| 1296 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1297 | extension TabularData.DataFrame.Row : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 1298 | public var description: Swift.String { |
| 1299 | get |
| 1300 | } |
| 1301 | public func description(options: TabularData.FormattingOptions) -> Swift.String |
| 1302 | public var debugDescription: Swift.String { |
| 1303 | get |
| 1304 | } |
| 1305 | public var customMirror: Swift.Mirror { |
| 1306 | get |
| 1307 | } |
| 1308 | } |
| 1309 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1310 | extension TabularData.DataFrameProtocol { |
| 1311 | public func description(options: TabularData.FormattingOptions) -> Swift.String |
| 1312 | } |
| 1313 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1314 | public enum CSVReadingError : Swift.Error { |
| 1315 | case badEncoding(row: Swift.Int, column: Swift.Int, cellContents: Foundation.Data) |
| 1316 | case unsupportedEncoding(Swift.String) |
| 1317 | case misplacedQuote(row: Swift.Int, column: Swift.Int) |
| 1318 | case wrongNumberOfColumns(row: Swift.Int, columns: Swift.Int, expected: Swift.Int) |
| 1319 | case failedToParse(row: Swift.Int, column: Swift.Int, type: TabularData.CSVType, cellContents: Foundation.Data) |
| 1320 | case missingColumn(columnName: Swift.String) |
| 1321 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 1322 | case outOfBounds(requested: Swift.Int, actual: Swift.Int) |
| 1323 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 1324 | case unsupportedColumnType(columnIndex: Swift.Int, columnName: Swift.String, type: Swift.String) |
| 1325 | public var row: Swift.Int { |
| 1326 | get |
| 1327 | } |
| 1328 | public var column: Swift.Int? { |
| 1329 | get |
| 1330 | } |
| 1331 | } |
| 1332 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1333 | extension TabularData.CSVReadingError : Swift.CustomStringConvertible { |
| 1334 | public var description: Swift.String { |
| 1335 | get |
| 1336 | } |
| 1337 | } |
| 1338 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 1339 | extension TabularData.CSVReadingError : Foundation.LocalizedError { |
| 1340 | public var errorDescription: Swift.String? { |
| 1341 | get |
| 1342 | } |
| 1343 | } |
| 1344 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1345 | extension TabularData.Column { |
| 1346 | public static func += (lhs: inout TabularData.Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.AdditiveArithmetic |
| 1347 | public static func -= (lhs: inout TabularData.Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.AdditiveArithmetic |
| 1348 | public static func *= (lhs: inout TabularData.Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.Numeric |
| 1349 | public static func /= (lhs: inout TabularData.Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.BinaryInteger |
| 1350 | public static func /= (lhs: inout TabularData.Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.FloatingPoint |
| 1351 | } |
| 1352 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1353 | extension TabularData.ColumnSlice { |
| 1354 | public static func += (lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.AdditiveArithmetic |
| 1355 | public static func -= (lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.AdditiveArithmetic |
| 1356 | public static func *= (lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.Numeric |
| 1357 | public static func /= (lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.BinaryInteger |
| 1358 | public static func /= (lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.FloatingPoint |
| 1359 | } |
| 1360 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1361 | extension TabularData.DiscontiguousColumnSlice { |
| 1362 | public static func += (lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.AdditiveArithmetic |
| 1363 | public static func -= (lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.AdditiveArithmetic |
| 1364 | public static func *= (lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.Numeric |
| 1365 | public static func /= (lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.BinaryInteger |
| 1366 | public static func /= (lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift.FloatingPoint |
| 1367 | } |
| 1368 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1369 | public struct ShapedData<Element> { |
| 1370 | public let shape: [Swift.Int] |
| 1371 | public let strides: [Swift.Int] |
| 1372 | public let contents: [Element] |
| 1373 | public init(shape: [Swift.Int], strides: [Swift.Int], contents: [Element]) |
| 1374 | public subscript(indices: Swift.Int...) -> Element { |
| 1375 | get |
| 1376 | } |
| 1377 | } |
| 1378 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1379 | extension TabularData.ShapedData : Swift.Equatable where Element : Swift.Equatable { |
| 1380 | public static func == (a: TabularData.ShapedData<Element>, b: TabularData.ShapedData<Element>) -> Swift.Bool |
| 1381 | } |
| 1382 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1383 | extension TabularData.ShapedData : Swift.Hashable where Element : Swift.Hashable { |
| 1384 | public func hash(into hasher: inout Swift.Hasher) |
| 1385 | public var hashValue: Swift.Int { |
| 1386 | get |
| 1387 | } |
| 1388 | } |
| 1389 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1390 | extension TabularData.ShapedData : Swift.Sendable where Element : Swift.Sendable { |
| 1391 | } |
| 1392 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1393 | public struct DiscontiguousColumnSlice<WrappedElement> : TabularData.OptionalColumnProtocol { |
| 1394 | public typealias Element = WrappedElement? |
| 1395 | public typealias Index = Swift.Int |
| 1396 | public var name: Swift.String { |
| 1397 | get |
| 1398 | set |
| 1399 | } |
| 1164 | } |
| 1165 | } |
| 1166 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1167 | public struct AnyCategoricalSummary : Swift::Equatable { |
| 1168 | public var someCount: Swift::Int |
| 1169 | public var noneCount: Swift::Int |
| 1170 | public var totalCount: Swift::Int { |
| 1171 | get |
| 1172 | } |
| 1173 | public var uniqueCount: Swift::Int |
| 1174 | public var mode: [Any] |
| 1175 | public var modeType: any Any.Type |
| 1176 | public init<T>(_ summary: TabularData::CategoricalSummary<T>) where T : Swift::Hashable |
| 1177 | public init(_ summary: TabularData::CategoricalSummary<Swift::AnyHashable>) |
| 1178 | public static func == (lhs: TabularData::AnyCategoricalSummary, rhs: TabularData::AnyCategoricalSummary) -> Swift::Bool |
| 1179 | } |
| 1180 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1181 | extension TabularData::Column { |
| 1182 | public func decoded<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws -> TabularData::Column<T> where WrappedElement == Decoder.Input, T : Swift::Decodable, Decoder : Combine::TopLevelDecoder |
| 1183 | } |
| 1184 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1185 | extension TabularData::AnyColumn { |
| 1186 | public func decoded<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws -> TabularData::AnyColumn where T : Swift::Decodable, Decoder : Combine::TopLevelDecoder |
| 1187 | public mutating func decode<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws where T : Swift::Decodable, Decoder : Combine::TopLevelDecoder |
| 1188 | } |
| 1189 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1190 | extension TabularData::DataFrame { |
| 1191 | public mutating func decode<T, Decoder>(_ type: T.Type, inColumn columnName: Swift::String, using decoder: Decoder) throws where T : Swift::Decodable, Decoder : Combine::TopLevelDecoder |
| 1192 | public mutating func decode<T, Decoder>(_ type: T.Type, inColumn id: TabularData::ColumnID<Decoder.Input>, using decoder: Decoder) throws where T : Swift::Decodable, Decoder : Combine::TopLevelDecoder |
| 1193 | } |
| 1194 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1195 | public struct ColumnDecodingError : Swift::Error, Foundation::LocalizedError, Swift::CustomDebugStringConvertible { |
| 1196 | public var columnName: Swift::String |
| 1197 | public var rowIndex: Swift::Int |
| 1198 | public var decodingError: Swift::DecodingError |
| 1199 | public init(columnName: Swift::String, rowIndex: Swift::Int, decodingError: Swift::DecodingError) |
| 1200 | public var debugDescription: Swift::String { |
| 1201 | get |
| 1202 | } |
| 1203 | } |
| 1204 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1205 | public protocol GroupSummaries : Swift::CustomStringConvertible { |
| 1206 | subscript(keys: Any?...) -> TabularData::DataFrame? { get } |
| 1207 | var description: Swift::String { get } |
| 1208 | func description(options: TabularData::FormattingOptions) -> Swift::String |
| 1209 | } |
| 1210 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1211 | extension TabularData::DataFrameProtocol { |
| 1212 | public func sorted(on columnName: Swift::String, order: TabularData::Order = .ascending) -> TabularData::DataFrame |
| 1213 | public func sorted<T>(on columnName: Swift::String, _ type: T.Type, order: TabularData::Order = .ascending) -> TabularData::DataFrame where T : Swift::Comparable |
| 1214 | public func sorted<T>(on columnID: TabularData::ColumnID<T>, order: TabularData::Order = .ascending) -> TabularData::DataFrame where T : Swift::Comparable |
| 1215 | public func sorted<T0, T1>(on columnID0: TabularData::ColumnID<T0>, _ columnID1: TabularData::ColumnID<T1>, order: TabularData::Order = .ascending) -> TabularData::DataFrame where T0 : Swift::Comparable, T1 : Swift::Comparable |
| 1216 | public func sorted<T0, T1, T2>(on columnID0: TabularData::ColumnID<T0>, _ columnID1: TabularData::ColumnID<T1>, _ columnID2: TabularData::ColumnID<T2>, order: TabularData::Order = .ascending) -> TabularData::DataFrame where T0 : Swift::Comparable, T1 : Swift::Comparable, T2 : Swift::Comparable |
| 1217 | public func sorted<T>(on columnName: Swift::String, _ type: T.Type, by areInIncreasingOrder: (T, T) throws -> Swift::Bool) rethrows -> TabularData::DataFrame |
| 1218 | public func sorted<T>(on columnID: TabularData::ColumnID<T>, by areInIncreasingOrder: (T, T) throws -> Swift::Bool) rethrows -> TabularData::DataFrame |
| 1219 | } |
| 1220 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1221 | extension TabularData::DataFrame { |
| 1222 | public mutating func sort(on columnName: Swift::String, order: TabularData::Order = .ascending) |
| 1223 | public mutating func sort<T>(on columnName: Swift::String, _ type: T.Type, order: TabularData::Order = .ascending) where T : Swift::Comparable |
| 1224 | public mutating func sort<T>(on columnID: TabularData::ColumnID<T>, order: TabularData::Order = .ascending) where T : Swift::Comparable |
| 1225 | public mutating func sort<T0, T1>(on columnID0: TabularData::ColumnID<T0>, _ columnID1: TabularData::ColumnID<T1>, order: TabularData::Order = .ascending) where T0 : Swift::Comparable, T1 : Swift::Comparable |
| 1226 | public mutating func sort<T0, T1, T2>(on columnID0: TabularData::ColumnID<T0>, _ columnID1: TabularData::ColumnID<T1>, _ columnID2: TabularData::ColumnID<T2>, order: TabularData::Order = .ascending) where T0 : Swift::Comparable, T1 : Swift::Comparable, T2 : Swift::Comparable |
| 1227 | public mutating func sort<T>(on columnID: TabularData::ColumnID<T>, by areInIncreasingOrder: (T, T) throws -> Swift::Bool) rethrows |
| 1228 | public mutating func sort<T>(on columnName: Swift::String, _ type: T.Type, by areInIncreasingOrder: (T, T) throws -> Swift::Bool) rethrows |
| 1229 | } |
| 1230 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1231 | public enum JSONReadingError : Swift::Error { |
| 1232 | case unsupportedStructure |
| 1233 | case wrongType(row: Swift::Int, column: Swift::String, expectedType: TabularData::JSONType, value: any Swift::Sendable) |
| 1234 | case incompatibleValues(column: Swift::String) |
| 1235 | case failedToParse(row: Swift::Int, column: Swift::String, type: TabularData::JSONType, contents: Swift::String) |
| 1236 | } |
| 1237 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1238 | extension TabularData::JSONReadingError : Swift::CustomStringConvertible { |
| 1239 | public var description: Swift::String { |
| 1240 | get |
| 1241 | } |
| 1242 | } |
| 1243 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 1244 | extension TabularData::JSONReadingError : Foundation::LocalizedError { |
| 1245 | public var errorDescription: Swift::String? { |
| 1246 | get |
| 1247 | } |
| 1248 | } |
| 1249 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1250 | public struct CategoricalSummary<Element> : Swift::Hashable, Swift::CustomDebugStringConvertible where Element : Swift::Hashable { |
| 1251 | public var someCount: Swift::Int |
| 1252 | public var noneCount: Swift::Int |
| 1253 | public var totalCount: Swift::Int { |
| 1254 | get |
| 1255 | } |
| 1256 | public var uniqueCount: Swift::Int |
| 1257 | public var mode: [Element] |
| 1258 | public init() |
| 1259 | public init(someCount: Swift::Int, noneCount: Swift::Int, uniqueCount: Swift::Int, mode: [Element]) |
| 1260 | public var debugDescription: Swift::String { |
| 1261 | get |
| 1262 | } |
| 1263 | public static func == (a: TabularData::CategoricalSummary<Element>, b: TabularData::CategoricalSummary<Element>) -> Swift::Bool |
| 1264 | public func hash(into hasher: inout Swift::Hasher) |
| 1265 | public var hashValue: Swift::Int { |
| 1266 | get |
| 1267 | } |
| 1268 | } |
| 1269 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1270 | extension TabularData::CategoricalSummary : Swift::Sendable where Element : Swift::Sendable { |
| 1271 | } |
| 1272 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1273 | extension TabularData::DataFrame : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 1274 | public var description: Swift::String { |
| 1275 | get |
| 1276 | } |
| 1277 | public var debugDescription: Swift::String { |
| 1278 | get |
| 1279 | } |
| 1280 | public var customMirror: Swift::Mirror { |
| 1281 | get |
| 1282 | } |
| 1283 | } |
| 1284 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1285 | extension TabularData::DataFrame.TabularData::Slice : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 1286 | public var description: Swift::String { |
| 1287 | get |
| 1288 | } |
| 1289 | public var debugDescription: Swift::String { |
| 1290 | get |
| 1291 | } |
| 1292 | public var customMirror: Swift::Mirror { |
| 1293 | get |
| 1294 | } |
| 1295 | } |
| 1296 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1297 | extension TabularData::DataFrame.TabularData::Row : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 1298 | public var description: Swift::String { |
| 1299 | get |
| 1300 | } |
| 1301 | public func description(options: TabularData::FormattingOptions) -> Swift::String |
| 1302 | public var debugDescription: Swift::String { |
| 1303 | get |
| 1304 | } |
| 1305 | public var customMirror: Swift::Mirror { |
| 1306 | get |
| 1307 | } |
| 1308 | } |
| 1309 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1310 | extension TabularData::DataFrameProtocol { |
| 1311 | public func description(options: TabularData::FormattingOptions) -> Swift::String |
| 1312 | } |
| 1313 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1314 | public enum CSVReadingError : Swift::Error { |
| 1315 | case badEncoding(row: Swift::Int, column: Swift::Int, cellContents: Foundation::Data) |
| 1316 | case unsupportedEncoding(Swift::String) |
| 1317 | case misplacedQuote(row: Swift::Int, column: Swift::Int) |
| 1318 | case wrongNumberOfColumns(row: Swift::Int, columns: Swift::Int, expected: Swift::Int) |
| 1319 | case failedToParse(row: Swift::Int, column: Swift::Int, type: TabularData::CSVType, cellContents: Foundation::Data) |
| 1320 | case missingColumn(columnName: Swift::String) |
| 1321 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 1322 | case outOfBounds(requested: Swift::Int, actual: Swift::Int) |
| 1323 | @available(macOS 15.4, iOS 18.4, tvOS 18.4, watchOS 11.4, visionOS 2.4, *) |
| 1324 | case unsupportedColumnType(columnIndex: Swift::Int, columnName: Swift::String, type: Swift::String) |
| 1325 | public var row: Swift::Int { |
| 1326 | get |
| 1327 | } |
| 1328 | public var column: Swift::Int? { |
| 1329 | get |
| 1330 | } |
| 1331 | } |
| 1332 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1333 | extension TabularData::CSVReadingError : Swift::CustomStringConvertible { |
| 1334 | public var description: Swift::String { |
| 1335 | get |
| 1336 | } |
| 1337 | } |
| 1338 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 1339 | extension TabularData::CSVReadingError : Foundation::LocalizedError { |
| 1340 | public var errorDescription: Swift::String? { |
| 1341 | get |
| 1342 | } |
| 1343 | } |
| 1344 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1345 | extension TabularData::Column { |
| 1346 | public static func += (lhs: inout TabularData::Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::AdditiveArithmetic |
| 1347 | public static func -= (lhs: inout TabularData::Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::AdditiveArithmetic |
| 1348 | public static func *= (lhs: inout TabularData::Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::Numeric |
| 1349 | public static func /= (lhs: inout TabularData::Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::BinaryInteger |
| 1350 | public static func /= (lhs: inout TabularData::Column<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::FloatingPoint |
| 1351 | } |
| 1352 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1353 | extension TabularData::ColumnSlice { |
| 1354 | public static func += (lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::AdditiveArithmetic |
| 1355 | public static func -= (lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::AdditiveArithmetic |
| 1356 | public static func *= (lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::Numeric |
| 1357 | public static func /= (lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::BinaryInteger |
| 1358 | public static func /= (lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::FloatingPoint |
| 1359 | } |
| 1360 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1361 | extension TabularData::DiscontiguousColumnSlice { |
| 1362 | public static func += (lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::AdditiveArithmetic |
| 1363 | public static func -= (lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::AdditiveArithmetic |
| 1364 | public static func *= (lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::Numeric |
| 1365 | public static func /= (lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::BinaryInteger |
| 1366 | public static func /= (lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: WrappedElement) where WrappedElement : Swift::FloatingPoint |
| 1367 | } |
| 1368 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1369 | public struct ShapedData<Element> { |
| 1370 | public let shape: [Swift::Int] |
| 1371 | public let strides: [Swift::Int] |
| 1372 | public let contents: [Element] |
| 1373 | public init(shape: [Swift::Int], strides: [Swift::Int], contents: [Element]) |
| 1374 | public subscript(indices: Swift::Int...) -> Element { |
| 1375 | get |
| 1376 | } |
| 1377 | } |
| 1378 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1379 | extension TabularData::ShapedData : Swift::Equatable where Element : Swift::Equatable { |
| 1380 | public static func == (a: TabularData::ShapedData<Element>, b: TabularData::ShapedData<Element>) -> Swift::Bool |
| 1381 | } |
| 1382 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1383 | extension TabularData::ShapedData : Swift::Hashable where Element : Swift::Hashable { |
| 1384 | public func hash(into hasher: inout Swift::Hasher) |
| 1385 | public var hashValue: Swift::Int { |
| 1386 | get |
| 1387 | } |
| 1388 | } |
| 1389 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1390 | extension TabularData::ShapedData : Swift::Sendable where Element : Swift::Sendable { |
| 1391 | } |
| 1392 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1393 | public struct DiscontiguousColumnSlice<WrappedElement> : TabularData::OptionalColumnProtocol { |
| 1394 | public typealias Element = WrappedElement? |
| 1395 | public typealias Index = Swift::Int |
| 1396 | public var name: Swift::String { |
| 1397 | get |
| 1398 | set |
| 1399 | } |
| 1402 | WrappedElement.self |
| 1403 | } |
| 1404 | } |
| 1405 | public var prototype: any TabularData.AnyColumnPrototype { |
| 1406 | get |
| 1407 | } |
| 1408 | public init(_ column: TabularData.Column<WrappedElement>) |
| 1409 | public init(column: TabularData.Column<WrappedElement>, ranges: [Swift.Range<Swift.Int>]) |
| 1410 | public func map<T>(_ transform: (TabularData.DiscontiguousColumnSlice<WrappedElement>.Element) throws -> T?) rethrows -> TabularData.Column<T> |
| 1411 | public func filter(_ isIncluded: (TabularData.DiscontiguousColumnSlice<WrappedElement>.Element) throws -> Swift.Bool) rethrows -> TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 1412 | public func eraseToAnyColumn() -> TabularData.AnyColumnSlice |
| 1413 | } |
| 1414 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1415 | extension TabularData.DiscontiguousColumnSlice : Swift.Sendable where WrappedElement : Swift.Sendable { |
| 1416 | } |
| 1417 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1418 | extension TabularData.DiscontiguousColumnSlice : Swift.BidirectionalCollection, Swift.MutableCollection { |
| 1419 | public var startIndex: Swift.Int { |
| 1420 | get |
| 1421 | } |
| 1422 | public var endIndex: Swift.Int { |
| 1423 | get |
| 1424 | } |
| 1425 | public func index(after i: Swift.Int) -> Swift.Int |
| 1426 | public func index(before i: Swift.Int) -> Swift.Int |
| 1427 | public var count: Swift.Int { |
| 1428 | get |
| 1429 | } |
| 1430 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1431 | public var missingCount: Swift.Int { |
| 1432 | get |
| 1433 | } |
| 1434 | public subscript(position: Swift.Int) -> TabularData.DiscontiguousColumnSlice<WrappedElement>.Element { |
| 1435 | get |
| 1436 | set |
| 1437 | } |
| 1438 | public func isNil(at index: Swift.Int) -> Swift.Bool |
| 1439 | public subscript(range: Swift.Range<Swift.Int>) -> TabularData.DiscontiguousColumnSlice<WrappedElement> { |
| 1440 | get |
| 1441 | set |
| 1442 | } |
| 1443 | @inlinable public subscript<R>(range: R) -> TabularData.DiscontiguousColumnSlice<WrappedElement> where R : Swift.RangeExpression, R.Bound == Swift.Int { |
| 1444 | get { |
| 1445 | self[range.relative(to: self)] |
| 1446 | } |
| 1447 | set { |
| 1448 | self[range.relative(to: self)] = newValue |
| 1449 | } |
| 1450 | } |
| 1451 | @inlinable public subscript(range: (Swift.UnboundedRange_) -> ()) -> TabularData.DiscontiguousColumnSlice<WrappedElement> { |
| 1452 | get { |
| 1453 | self[startIndex...] |
| 1454 | } |
| 1455 | set { |
| 1456 | self[startIndex...] = newValue |
| 1457 | } |
| 1458 | } |
| 1459 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1460 | public typealias Indices = Swift.DefaultIndices<TabularData.DiscontiguousColumnSlice<WrappedElement>> |
| 1461 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1462 | public typealias Iterator = Swift.IndexingIterator<TabularData.DiscontiguousColumnSlice<WrappedElement>> |
| 1463 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1464 | public typealias SubSequence = TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 1465 | } |
| 1466 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1467 | extension TabularData.DiscontiguousColumnSlice : Swift.Equatable where WrappedElement : Swift.Equatable { |
| 1468 | public static func == (lhs: TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: TabularData.DiscontiguousColumnSlice<WrappedElement>) -> Swift.Bool |
| 1469 | } |
| 1470 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1471 | extension TabularData.DiscontiguousColumnSlice : Swift.Hashable where WrappedElement : Swift.Hashable { |
| 1472 | public func hash(into hasher: inout Swift.Hasher) |
| 1473 | public func distinct() -> TabularData.DiscontiguousColumnSlice<WrappedElement> |
| 1474 | public var hashValue: Swift.Int { |
| 1475 | get |
| 1476 | } |
| 1477 | } |
| 1478 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1479 | extension TabularData.Column { |
| 1480 | public static func += <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, WrappedElement == C.Element, C : Swift.Collection |
| 1481 | public static func += <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, C : Swift.Collection, C.Element == WrappedElement? |
| 1482 | public static func -= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, WrappedElement == C.Element, C : Swift.Collection |
| 1483 | public static func -= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, C : Swift.Collection, C.Element == WrappedElement? |
| 1484 | public static func *= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.Numeric, WrappedElement == C.Element, C : Swift.Collection |
| 1485 | public static func *= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.Numeric, C : Swift.Collection, C.Element == WrappedElement? |
| 1486 | public static func /= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.BinaryInteger, WrappedElement == C.Element, C : Swift.Collection |
| 1487 | public static func /= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.BinaryInteger, C : Swift.Collection, C.Element == WrappedElement? |
| 1488 | public static func /= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.FloatingPoint, WrappedElement == C.Element, C : Swift.Collection |
| 1489 | public static func /= <C>(lhs: inout TabularData.Column<WrappedElement>, rhs: C) where WrappedElement : Swift.FloatingPoint, C : Swift.Collection, C.Element == WrappedElement? |
| 1490 | } |
| 1491 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1492 | extension TabularData.ColumnSlice { |
| 1493 | public static func += <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, WrappedElement == C.Element, C : Swift.Collection |
| 1494 | public static func += <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, C : Swift.Collection, C.Element == WrappedElement? |
| 1495 | public static func -= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, WrappedElement == C.Element, C : Swift.Collection |
| 1496 | public static func -= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, C : Swift.Collection, C.Element == WrappedElement? |
| 1497 | public static func *= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.Numeric, WrappedElement == C.Element, C : Swift.Collection |
| 1498 | public static func *= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.Numeric, C : Swift.Collection, C.Element == WrappedElement? |
| 1499 | public static func /= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.BinaryInteger, WrappedElement == C.Element, C : Swift.Collection |
| 1500 | public static func /= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.BinaryInteger, C : Swift.Collection, C.Element == WrappedElement? |
| 1501 | public static func /= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.FloatingPoint, WrappedElement == C.Element, C : Swift.Collection |
| 1502 | public static func /= <C>(lhs: inout TabularData.ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.FloatingPoint, C : Swift.Collection, C.Element == WrappedElement? |
| 1503 | } |
| 1504 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1505 | extension TabularData.DiscontiguousColumnSlice { |
| 1506 | public static func += <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, WrappedElement == C.Element, C : Swift.Collection |
| 1507 | public static func += <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, C : Swift.Collection, C.Element == WrappedElement? |
| 1508 | public static func -= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, WrappedElement == C.Element, C : Swift.Collection |
| 1509 | public static func -= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.AdditiveArithmetic, C : Swift.Collection, C.Element == WrappedElement? |
| 1510 | public static func *= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.Numeric, WrappedElement == C.Element, C : Swift.Collection |
| 1511 | public static func *= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.Numeric, C : Swift.Collection, C.Element == WrappedElement? |
| 1512 | public static func /= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.BinaryInteger, WrappedElement == C.Element, C : Swift.Collection |
| 1513 | public static func /= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.BinaryInteger, C : Swift.Collection, C.Element == WrappedElement? |
| 1514 | public static func /= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.FloatingPoint, WrappedElement == C.Element, C : Swift.Collection |
| 1515 | public static func /= <C>(lhs: inout TabularData.DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift.FloatingPoint, C : Swift.Collection, C.Element == WrappedElement? |
| 1516 | } |
| 1517 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1518 | extension TabularData.DataFrame { |
| 1519 | public init(contentsOfJSONFile url: Foundation.URL, columns: [Swift.String]? = nil, types: [Swift.String : TabularData.JSONType] = [:], options: TabularData.JSONReadingOptions = .init()) throws |
| 1520 | public init(jsonData data: Foundation.Data, columns: [Swift.String]? = nil, types: [Swift.String : TabularData.JSONType] = [:], options: TabularData.JSONReadingOptions = .init()) throws |
| 1521 | } |
| 1522 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1523 | extension TabularData.Column where WrappedElement : Swift.Encodable { |
| 1524 | public func encoded<Encoder>(using encoder: Encoder) throws -> TabularData.Column<Encoder.Output> where Encoder : Combine.TopLevelEncoder |
| 1525 | } |
| 1526 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1527 | extension TabularData.AnyColumn { |
| 1528 | public func encoded<T, Encoder>(_ type: T.Type, using encoder: Encoder) throws -> TabularData.AnyColumn where T : Swift.Encodable, Encoder : Combine.TopLevelEncoder |
| 1529 | public mutating func encode<T, Encoder>(_ type: T.Type, using encoder: Encoder) throws where T : Swift.Encodable, Encoder : Combine.TopLevelEncoder |
| 1530 | } |
| 1531 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1532 | extension TabularData.DataFrame { |
| 1533 | public mutating func encodeColumn<T, Encoder>(_ columnName: Swift.String, _ type: T.Type, using encoder: Encoder) throws where T : Swift.Encodable, Encoder : Combine.TopLevelEncoder |
| 1534 | public mutating func encodeColumn<T, Encoder>(_ id: TabularData.ColumnID<T>, using encoder: Encoder) throws where T : Swift.Encodable, Encoder : Combine.TopLevelEncoder |
| 1535 | } |
| 1536 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1537 | public struct ColumnEncodingError : Swift.Error, Foundation.LocalizedError, Swift.CustomDebugStringConvertible { |
| 1538 | public var columnName: Swift.String |
| 1539 | public var rowIndex: Swift.Int |
| 1540 | public var encodingError: Swift.EncodingError |
| 1541 | public init(columnName: Swift.String, rowIndex: Swift.Int, encodingError: Swift.EncodingError) |
| 1542 | public var debugDescription: Swift.String { |
| 1543 | get |
| 1544 | } |
| 1545 | } |
| 1546 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1547 | public struct AnyColumnSlice : TabularData.AnyColumnProtocol, Swift.Hashable { |
| 1548 | public var name: Swift.String { |
| 1549 | get |
| 1550 | set |
| 1551 | } |
| 1552 | public var wrappedElementType: any Any.Type { |
| 1553 | get |
| 1554 | } |
| 1555 | public var count: Swift.Int { |
| 1556 | get |
| 1557 | } |
| 1558 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1559 | public var missingCount: Swift.Int { |
| 1560 | get |
| 1561 | } |
| 1562 | public func assumingType<T>(_ type: T.Type) -> TabularData.DiscontiguousColumnSlice<T> |
| 1563 | public func isNil(at index: Swift.Int) -> Swift.Bool |
| 1564 | public var hashValue: Swift.Int { |
| 1565 | get |
| 1566 | } |
| 1567 | } |
| 1568 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1569 | extension TabularData.AnyColumnSlice : Swift.RandomAccessCollection, Swift.MutableCollection { |
| 1570 | public var startIndex: Swift.Int { |
| 1571 | get |
| 1572 | } |
| 1573 | public var endIndex: Swift.Int { |
| 1574 | get |
| 1575 | } |
| 1576 | public func index(after i: Swift.Int) -> Swift.Int |
| 1577 | public func index(before i: Swift.Int) -> Swift.Int |
| 1578 | public subscript(position: Swift.Int) -> Any? { |
| 1579 | get |
| 1580 | set |
| 1581 | } |
| 1582 | public subscript(range: Swift.Range<Swift.Int>) -> TabularData.AnyColumnSlice { |
| 1583 | get |
| 1584 | set |
| 1585 | } |
| 1586 | public static func == (lhs: TabularData.AnyColumnSlice, rhs: TabularData.AnyColumnSlice) -> Swift.Bool |
| 1587 | public func hash(into hasher: inout Swift.Hasher) |
| 1588 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1589 | public typealias Element = Any? |
| 1590 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1591 | public typealias Index = Swift.Int |
| 1592 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1593 | public typealias Indices = Swift.Range<Swift.Int> |
| 1594 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1595 | public typealias Iterator = Swift.IndexingIterator<TabularData.AnyColumnSlice> |
| 1596 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1597 | public typealias SubSequence = TabularData.AnyColumnSlice |
| 1598 | } |
| 1599 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1600 | extension TabularData.AnyColumnSlice : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 1601 | public var description: Swift.String { |
| 1602 | get |
| 1603 | } |
| 1604 | public var debugDescription: Swift.String { |
| 1605 | get |
| 1606 | } |
| 1607 | public var customMirror: Swift.Mirror { |
| 1608 | get |
| 1609 | } |
| 1610 | } |
| 1611 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1612 | extension TabularData.AnyColumnSlice { |
| 1613 | public func distinct() -> TabularData.AnyColumnSlice |
| 1614 | } |
| 1615 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1616 | extension TabularData.DataFrame { |
| 1617 | public mutating func explodeColumn<T>(_ id: TabularData.ColumnID<T>) where T : Swift.Collection |
| 1618 | public mutating func explodeColumn<T>(_ name: Swift.String, _ type: T.Type) where T : Swift.Collection |
| 1619 | public func explodingColumn<T>(_ name: Swift.String, _ type: T.Type) -> TabularData.DataFrame where T : Swift.Collection |
| 1620 | public func explodingColumn<T>(_ id: TabularData.ColumnID<T>) -> TabularData.DataFrame where T : Swift.Collection |
| 1621 | } |
| 1622 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1623 | public protocol RowGroupingProtocol : Swift.CustomStringConvertible { |
| 1624 | var count: Swift.Int { get } |
| 1625 | func ungrouped() -> TabularData.DataFrame |
| 1626 | func counts(order: TabularData.Order?) -> TabularData.DataFrame |
| 1627 | func aggregated<Element, Result>(on columnNames: [Swift.String], naming: (Swift.String) -> Swift.String, transform: (TabularData.DiscontiguousColumnSlice<Element>) throws -> Result?) rethrows -> TabularData.DataFrame |
| 1628 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 1629 | func filter(_ isIncluded: (TabularData.DataFrame.Slice) throws -> Swift.Bool) rethrows -> Self |
| 1630 | func mapGroups(_ transform: (TabularData.DataFrame.Slice) throws -> TabularData.DataFrame) rethrows -> Self |
| 1631 | func randomSplit(by proportion: Swift.Double, seed: Swift.Int?) -> (Self, Self) |
| 1632 | func summary() -> any TabularData.GroupSummaries |
| 1633 | func summary(of columnNames: [Swift.String]) -> any TabularData.GroupSummaries |
| 1634 | subscript(keys: Any?...) -> TabularData.DataFrame.Slice? { get } |
| 1635 | } |
| 1636 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1637 | extension TabularData.RowGroupingProtocol { |
| 1638 | public func counts() -> TabularData.DataFrame |
| 1639 | public func sums<N>(_ columnName: Swift.String, _ type: N.Type, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.AdditiveArithmetic, N : Swift.Comparable |
| 1640 | public func sums<N>(_ columnID: TabularData.ColumnID<N>, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.AdditiveArithmetic, N : Swift.Comparable |
| 1641 | public func means<N>(_ columnName: Swift.String, _ type: N.Type, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.FloatingPoint |
| 1642 | public func means<N>(_ columnID: TabularData.ColumnID<N>, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.FloatingPoint |
| 1643 | public func quantiles<N>(_ columnName: Swift.String, _ type: N.Type, quantile: N, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.BinaryFloatingPoint |
| 1644 | public func quantiles<N>(_ columnID: TabularData.ColumnID<N>, quantile: N, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.BinaryFloatingPoint |
| 1645 | public func minimums<N>(_ columnName: Swift.String, _ type: N.Type, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.Comparable |
| 1646 | public func minimums<N>(_ columnID: TabularData.ColumnID<N>, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.Comparable |
| 1647 | public func maximums<N>(_ columnName: Swift.String, _ type: N.Type, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.Comparable |
| 1648 | public func maximums<N>(_ columnID: TabularData.ColumnID<N>, order: TabularData.Order? = nil) -> TabularData.DataFrame where N : Swift.Comparable |
| 1649 | public func aggregated<Element, Result>(on columnNames: Swift.String..., naming: (Swift.String) -> Swift.String, transform: (TabularData.DiscontiguousColumnSlice<Element>) throws -> Result?) rethrows -> TabularData.DataFrame |
| 1650 | public func aggregated<Element, Result>(on columnID: TabularData.ColumnID<Element>, into aggregatedColumnName: Swift.String? = nil, transform: (TabularData.DiscontiguousColumnSlice<Element>) throws -> Result) rethrows -> TabularData.DataFrame |
| 1651 | public func randomSplit(by proportion: Swift.Double) -> (Self, Self) |
| 1652 | } |
| 1653 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1654 | public enum Order : Swift.Sendable { |
| 1655 | case ascending |
| 1656 | case descending |
| 1657 | public func areOrdered<T>(_ lhs: T, _ rhs: T) -> Swift.Bool where T : Swift.Comparable |
| 1658 | public static func == (a: TabularData.Order, b: TabularData.Order) -> Swift.Bool |
| 1659 | public func hash(into hasher: inout Swift.Hasher) |
| 1660 | public var hashValue: Swift.Int { |
| 1661 | get |
| 1662 | } |
| 1663 | } |
| 1664 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1665 | extension TabularData.FilledColumn where Base.WrappedElement : Swift.Comparable { |
| 1666 | public func min() -> TabularData.FilledColumn<Base>.Element? |
| 1667 | public func max() -> TabularData.FilledColumn<Base>.Element? |
| 1668 | public func argmin() -> Base.Index? |
| 1669 | public func argmax() -> TabularData.FilledColumn<Base>.Index? |
| 1670 | } |
| 1671 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1672 | extension TabularData.FilledColumn where Base.WrappedElement : Swift.BinaryInteger { |
| 1673 | public func sum() -> TabularData.FilledColumn<Base>.Element |
| 1674 | public func mean() -> Swift.Double? |
| 1675 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> Swift.Double? |
| 1676 | } |
| 1677 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1678 | extension TabularData.FilledColumn where Base.WrappedElement : Swift.FloatingPoint { |
| 1679 | public func sum() -> TabularData.FilledColumn<Base>.Element |
| 1680 | public func mean() -> TabularData.FilledColumn<Base>.Element? |
| 1681 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> TabularData.FilledColumn<Base>.Element? |
| 1682 | } |
| 1683 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1684 | extension TabularData.OptionalColumnProtocol { |
| 1685 | public func filled(with value: Self.WrappedElement) -> TabularData.FilledColumn<Self> |
| 1686 | } |
| 1687 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1688 | public struct FilledColumn<Base> : TabularData.ColumnProtocol where Base : TabularData.OptionalColumnProtocol { |
| 1689 | public typealias Element = Base.WrappedElement |
| 1690 | public typealias WrappedElement = Base.WrappedElement |
| 1691 | @usableFromInline |
| 1692 | internal var base: Base |
| 1693 | @usableFromInline |
| 1694 | internal let defaultValue: Base.WrappedElement |
| 1695 | public var name: Swift.String { |
| 1696 | get |
| 1697 | set |
| 1698 | } |
| 1402 | WrappedElement.self |
| 1403 | } |
| 1404 | } |
| 1405 | public var prototype: any TabularData::AnyColumnPrototype { |
| 1406 | get |
| 1407 | } |
| 1408 | public init(_ column: TabularData::Column<WrappedElement>) |
| 1409 | public init(column: TabularData::Column<WrappedElement>, ranges: [Swift::Range<Swift::Int>]) |
| 1410 | public func map<T>(_ transform: (TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element) throws -> T?) rethrows -> TabularData::Column<T> |
| 1411 | public func filter(_ isIncluded: (TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element) throws -> Swift::Bool) rethrows -> TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 1412 | public func eraseToAnyColumn() -> TabularData::AnyColumnSlice |
| 1413 | } |
| 1414 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1415 | extension TabularData::DiscontiguousColumnSlice : Swift::Sendable where WrappedElement : Swift::Sendable { |
| 1416 | } |
| 1417 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1418 | extension TabularData::DiscontiguousColumnSlice : Swift::BidirectionalCollection, Swift::MutableCollection { |
| 1419 | public var startIndex: Swift::Int { |
| 1420 | get |
| 1421 | } |
| 1422 | public var endIndex: Swift::Int { |
| 1423 | get |
| 1424 | } |
| 1425 | public func index(after i: Swift::Int) -> Swift::Int |
| 1426 | public func index(before i: Swift::Int) -> Swift::Int |
| 1427 | public var count: Swift::Int { |
| 1428 | get |
| 1429 | } |
| 1430 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1431 | public var missingCount: Swift::Int { |
| 1432 | get |
| 1433 | } |
| 1434 | public subscript(position: Swift::Int) -> TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element { |
| 1435 | get |
| 1436 | set |
| 1437 | } |
| 1438 | public func isNil(at index: Swift::Int) -> Swift::Bool |
| 1439 | public subscript(range: Swift::Range<Swift::Int>) -> TabularData::DiscontiguousColumnSlice<WrappedElement> { |
| 1440 | get |
| 1441 | set |
| 1442 | } |
| 1443 | @inlinable public subscript<R>(range: R) -> TabularData::DiscontiguousColumnSlice<WrappedElement> where R : Swift::RangeExpression, R.Bound == Swift::Int { |
| 1444 | get { |
| 1445 | self[range.relative(to: self)] |
| 1446 | } |
| 1447 | set { |
| 1448 | self[range.relative(to: self)] = newValue |
| 1449 | } |
| 1450 | } |
| 1451 | @inlinable public subscript(range: Swift::UnboundedRange) -> TabularData::DiscontiguousColumnSlice<WrappedElement> { |
| 1452 | get { |
| 1453 | self[startIndex...] |
| 1454 | } |
| 1455 | set { |
| 1456 | self[startIndex...] = newValue |
| 1457 | } |
| 1458 | } |
| 1459 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1460 | public typealias Indices = Swift::DefaultIndices<TabularData::DiscontiguousColumnSlice<WrappedElement>> |
| 1461 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1462 | public typealias Iterator = Swift::IndexingIterator<TabularData::DiscontiguousColumnSlice<WrappedElement>> |
| 1463 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1464 | public typealias SubSequence = TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 1465 | } |
| 1466 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1467 | extension TabularData::DiscontiguousColumnSlice : Swift::Equatable where WrappedElement : Swift::Equatable { |
| 1468 | public static func == (lhs: TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: TabularData::DiscontiguousColumnSlice<WrappedElement>) -> Swift::Bool |
| 1469 | } |
| 1470 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1471 | extension TabularData::DiscontiguousColumnSlice : Swift::Hashable where WrappedElement : Swift::Hashable { |
| 1472 | public func hash(into hasher: inout Swift::Hasher) |
| 1473 | public func distinct() -> TabularData::DiscontiguousColumnSlice<WrappedElement> |
| 1474 | public var hashValue: Swift::Int { |
| 1475 | get |
| 1476 | } |
| 1477 | } |
| 1478 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1479 | extension TabularData::Column { |
| 1480 | public static func += <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, WrappedElement == C.Element, C : Swift::Collection |
| 1481 | public static func += <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, C : Swift::Collection, C.Element == WrappedElement? |
| 1482 | public static func -= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, WrappedElement == C.Element, C : Swift::Collection |
| 1483 | public static func -= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, C : Swift::Collection, C.Element == WrappedElement? |
| 1484 | public static func *= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::Numeric, WrappedElement == C.Element, C : Swift::Collection |
| 1485 | public static func *= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::Numeric, C : Swift::Collection, C.Element == WrappedElement? |
| 1486 | public static func /= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::BinaryInteger, WrappedElement == C.Element, C : Swift::Collection |
| 1487 | public static func /= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::BinaryInteger, C : Swift::Collection, C.Element == WrappedElement? |
| 1488 | public static func /= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::FloatingPoint, WrappedElement == C.Element, C : Swift::Collection |
| 1489 | public static func /= <C>(lhs: inout TabularData::Column<WrappedElement>, rhs: C) where WrappedElement : Swift::FloatingPoint, C : Swift::Collection, C.Element == WrappedElement? |
| 1490 | } |
| 1491 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1492 | extension TabularData::ColumnSlice { |
| 1493 | public static func += <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, WrappedElement == C.Element, C : Swift::Collection |
| 1494 | public static func += <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, C : Swift::Collection, C.Element == WrappedElement? |
| 1495 | public static func -= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, WrappedElement == C.Element, C : Swift::Collection |
| 1496 | public static func -= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, C : Swift::Collection, C.Element == WrappedElement? |
| 1497 | public static func *= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::Numeric, WrappedElement == C.Element, C : Swift::Collection |
| 1498 | public static func *= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::Numeric, C : Swift::Collection, C.Element == WrappedElement? |
| 1499 | public static func /= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::BinaryInteger, WrappedElement == C.Element, C : Swift::Collection |
| 1500 | public static func /= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::BinaryInteger, C : Swift::Collection, C.Element == WrappedElement? |
| 1501 | public static func /= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::FloatingPoint, WrappedElement == C.Element, C : Swift::Collection |
| 1502 | public static func /= <C>(lhs: inout TabularData::ColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::FloatingPoint, C : Swift::Collection, C.Element == WrappedElement? |
| 1503 | } |
| 1504 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1505 | extension TabularData::DiscontiguousColumnSlice { |
| 1506 | public static func += <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, WrappedElement == C.Element, C : Swift::Collection |
| 1507 | public static func += <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, C : Swift::Collection, C.Element == WrappedElement? |
| 1508 | public static func -= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, WrappedElement == C.Element, C : Swift::Collection |
| 1509 | public static func -= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::AdditiveArithmetic, C : Swift::Collection, C.Element == WrappedElement? |
| 1510 | public static func *= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::Numeric, WrappedElement == C.Element, C : Swift::Collection |
| 1511 | public static func *= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::Numeric, C : Swift::Collection, C.Element == WrappedElement? |
| 1512 | public static func /= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::BinaryInteger, WrappedElement == C.Element, C : Swift::Collection |
| 1513 | public static func /= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::BinaryInteger, C : Swift::Collection, C.Element == WrappedElement? |
| 1514 | public static func /= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::FloatingPoint, WrappedElement == C.Element, C : Swift::Collection |
| 1515 | public static func /= <C>(lhs: inout TabularData::DiscontiguousColumnSlice<WrappedElement>, rhs: C) where WrappedElement : Swift::FloatingPoint, C : Swift::Collection, C.Element == WrappedElement? |
| 1516 | } |
| 1517 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1518 | extension TabularData::DataFrame { |
| 1519 | public init(contentsOfJSONFile url: Foundation::URL, columns: [Swift::String]? = nil, types: [Swift::String : TabularData::JSONType] = [:], options: TabularData::JSONReadingOptions = .init()) throws |
| 1520 | public init(jsonData data: Foundation::Data, columns: [Swift::String]? = nil, types: [Swift::String : TabularData::JSONType] = [:], options: TabularData::JSONReadingOptions = .init()) throws |
| 1521 | } |
| 1522 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1523 | extension TabularData::Column where WrappedElement : Swift::Encodable { |
| 1524 | public func encoded<Encoder>(using encoder: Encoder) throws -> TabularData::Column<Encoder.Output> where Encoder : Combine::TopLevelEncoder |
| 1525 | } |
| 1526 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1527 | extension TabularData::AnyColumn { |
| 1528 | public func encoded<T, Encoder>(_ type: T.Type, using encoder: Encoder) throws -> TabularData::AnyColumn where T : Swift::Encodable, Encoder : Combine::TopLevelEncoder |
| 1529 | public mutating func encode<T, Encoder>(_ type: T.Type, using encoder: Encoder) throws where T : Swift::Encodable, Encoder : Combine::TopLevelEncoder |
| 1530 | } |
| 1531 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1532 | extension TabularData::DataFrame { |
| 1533 | public mutating func encodeColumn<T, Encoder>(_ columnName: Swift::String, _ type: T.Type, using encoder: Encoder) throws where T : Swift::Encodable, Encoder : Combine::TopLevelEncoder |
| 1534 | public mutating func encodeColumn<T, Encoder>(_ id: TabularData::ColumnID<T>, using encoder: Encoder) throws where T : Swift::Encodable, Encoder : Combine::TopLevelEncoder |
| 1535 | } |
| 1536 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1537 | public struct ColumnEncodingError : Swift::Error, Foundation::LocalizedError, Swift::CustomDebugStringConvertible { |
| 1538 | public var columnName: Swift::String |
| 1539 | public var rowIndex: Swift::Int |
| 1540 | public var encodingError: Swift::EncodingError |
| 1541 | public init(columnName: Swift::String, rowIndex: Swift::Int, encodingError: Swift::EncodingError) |
| 1542 | public var debugDescription: Swift::String { |
| 1543 | get |
| 1544 | } |
| 1545 | } |
| 1546 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1547 | public struct AnyColumnSlice : TabularData::AnyColumnProtocol, Swift::Hashable { |
| 1548 | public var name: Swift::String { |
| 1549 | get |
| 1550 | set |
| 1551 | } |
| 1552 | public var wrappedElementType: any Any.Type { |
| 1553 | get |
| 1554 | } |
| 1555 | public var count: Swift::Int { |
| 1556 | get |
| 1557 | } |
| 1558 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1559 | public var missingCount: Swift::Int { |
| 1560 | get |
| 1561 | } |
| 1562 | public func assumingType<T>(_ type: T.Type) -> TabularData::DiscontiguousColumnSlice<T> |
| 1563 | public func isNil(at index: Swift::Int) -> Swift::Bool |
| 1564 | public var hashValue: Swift::Int { |
| 1565 | get |
| 1566 | } |
| 1567 | } |
| 1568 | @available(*, unavailable) |
| 1569 | extension TabularData::AnyColumnSlice : Swift::Sendable { |
| 1570 | } |
| 1571 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1572 | extension TabularData::AnyColumnSlice : Swift::RandomAccessCollection, Swift::MutableCollection { |
| 1573 | public var startIndex: Swift::Int { |
| 1574 | get |
| 1575 | } |
| 1576 | public var endIndex: Swift::Int { |
| 1577 | get |
| 1578 | } |
| 1579 | public func index(after i: Swift::Int) -> Swift::Int |
| 1580 | public func index(before i: Swift::Int) -> Swift::Int |
| 1581 | public subscript(position: Swift::Int) -> Any? { |
| 1582 | get |
| 1583 | set |
| 1584 | } |
| 1585 | public subscript(range: Swift::Range<Swift::Int>) -> TabularData::AnyColumnSlice { |
| 1586 | get |
| 1587 | set |
| 1588 | } |
| 1589 | public static func == (lhs: TabularData::AnyColumnSlice, rhs: TabularData::AnyColumnSlice) -> Swift::Bool |
| 1590 | public func hash(into hasher: inout Swift::Hasher) |
| 1591 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1592 | public typealias Element = Any? |
| 1593 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1594 | public typealias Index = Swift::Int |
| 1595 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1596 | public typealias Indices = Swift::Range<Swift::Int> |
| 1597 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1598 | public typealias Iterator = Swift::IndexingIterator<TabularData::AnyColumnSlice> |
| 1599 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1600 | public typealias SubSequence = TabularData::AnyColumnSlice |
| 1601 | } |
| 1602 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1603 | extension TabularData::AnyColumnSlice : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 1604 | public var description: Swift::String { |
| 1605 | get |
| 1606 | } |
| 1607 | public var debugDescription: Swift::String { |
| 1608 | get |
| 1609 | } |
| 1610 | public var customMirror: Swift::Mirror { |
| 1611 | get |
| 1612 | } |
| 1613 | } |
| 1614 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1615 | extension TabularData::AnyColumnSlice { |
| 1616 | public func distinct() -> TabularData::AnyColumnSlice |
| 1617 | } |
| 1618 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1619 | extension TabularData::DataFrame { |
| 1620 | public mutating func explodeColumn<T>(_ id: TabularData::ColumnID<T>) where T : Swift::Collection |
| 1621 | public mutating func explodeColumn<T>(_ name: Swift::String, _ type: T.Type) where T : Swift::Collection |
| 1622 | public func explodingColumn<T>(_ name: Swift::String, _ type: T.Type) -> TabularData::DataFrame where T : Swift::Collection |
| 1623 | public func explodingColumn<T>(_ id: TabularData::ColumnID<T>) -> TabularData::DataFrame where T : Swift::Collection |
| 1624 | } |
| 1625 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1626 | public protocol RowGroupingProtocol : Swift::CustomStringConvertible { |
| 1627 | var count: Swift::Int { get } |
| 1628 | func ungrouped() -> TabularData::DataFrame |
| 1629 | func counts(order: TabularData::Order?) -> TabularData::DataFrame |
| 1630 | func aggregated<Element, Result>(on columnNames: [Swift::String], naming: (Swift::String) -> Swift::String, transform: (TabularData::DiscontiguousColumnSlice<Element>) throws -> Result?) rethrows -> TabularData::DataFrame |
| 1631 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 1632 | func filter(_ isIncluded: (TabularData::DataFrame.TabularData::Slice) throws -> Swift::Bool) rethrows -> Self |
| 1633 | func mapGroups(_ transform: (TabularData::DataFrame.TabularData::Slice) throws -> TabularData::DataFrame) rethrows -> Self |
| 1634 | func randomSplit(by proportion: Swift::Double, seed: Swift::Int?) -> (Self, Self) |
| 1635 | func summary() -> any TabularData::GroupSummaries |
| 1636 | func summary(of columnNames: [Swift::String]) -> any TabularData::GroupSummaries |
| 1637 | subscript(keys: Any?...) -> TabularData::DataFrame.TabularData::Slice? { get } |
| 1638 | } |
| 1639 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1640 | extension TabularData::RowGroupingProtocol { |
| 1641 | public func counts() -> TabularData::DataFrame |
| 1642 | public func sums<N>(_ columnName: Swift::String, _ type: N.Type, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::AdditiveArithmetic, N : Swift::Comparable |
| 1643 | public func sums<N>(_ columnID: TabularData::ColumnID<N>, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::AdditiveArithmetic, N : Swift::Comparable |
| 1644 | public func means<N>(_ columnName: Swift::String, _ type: N.Type, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::FloatingPoint |
| 1645 | public func means<N>(_ columnID: TabularData::ColumnID<N>, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::FloatingPoint |
| 1646 | public func quantiles<N>(_ columnName: Swift::String, _ type: N.Type, quantile: N, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::BinaryFloatingPoint |
| 1647 | public func quantiles<N>(_ columnID: TabularData::ColumnID<N>, quantile: N, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::BinaryFloatingPoint |
| 1648 | public func minimums<N>(_ columnName: Swift::String, _ type: N.Type, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::Comparable |
| 1649 | public func minimums<N>(_ columnID: TabularData::ColumnID<N>, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::Comparable |
| 1650 | public func maximums<N>(_ columnName: Swift::String, _ type: N.Type, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::Comparable |
| 1651 | public func maximums<N>(_ columnID: TabularData::ColumnID<N>, order: TabularData::Order? = nil) -> TabularData::DataFrame where N : Swift::Comparable |
| 1652 | public func aggregated<Element, Result>(on columnNames: Swift::String..., naming: (Swift::String) -> Swift::String, transform: (TabularData::DiscontiguousColumnSlice<Element>) throws -> Result?) rethrows -> TabularData::DataFrame |
| 1653 | public func aggregated<Element, Result>(on columnID: TabularData::ColumnID<Element>, into aggregatedColumnName: Swift::String? = nil, transform: (TabularData::DiscontiguousColumnSlice<Element>) throws -> Result) rethrows -> TabularData::DataFrame |
| 1654 | public func randomSplit(by proportion: Swift::Double) -> (Self, Self) |
| 1655 | } |
| 1656 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1657 | public enum Order : Swift::Sendable { |
| 1658 | case ascending |
| 1659 | case descending |
| 1660 | public func areOrdered<T>(_ lhs: T, _ rhs: T) -> Swift::Bool where T : Swift::Comparable |
| 1661 | public static func == (a: TabularData::Order, b: TabularData::Order) -> Swift::Bool |
| 1662 | public func hash(into hasher: inout Swift::Hasher) |
| 1663 | public var hashValue: Swift::Int { |
| 1664 | get |
| 1665 | } |
| 1666 | } |
| 1667 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1668 | extension TabularData::FilledColumn where Base.WrappedElement : Swift::Comparable { |
| 1669 | public func min() -> TabularData::FilledColumn<Base>.Element? |
| 1670 | public func max() -> TabularData::FilledColumn<Base>.Element? |
| 1671 | public func argmin() -> Base.Index? |
| 1672 | public func argmax() -> TabularData::FilledColumn<Base>.Index? |
| 1673 | } |
| 1674 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1675 | extension TabularData::FilledColumn where Base.WrappedElement : Swift::BinaryInteger { |
| 1676 | public func sum() -> TabularData::FilledColumn<Base>.Element |
| 1677 | public func mean() -> Swift::Double? |
| 1678 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> Swift::Double? |
| 1679 | } |
| 1680 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1681 | extension TabularData::FilledColumn where Base.WrappedElement : Swift::FloatingPoint { |
| 1682 | public func sum() -> TabularData::FilledColumn<Base>.Element |
| 1683 | public func mean() -> TabularData::FilledColumn<Base>.Element? |
| 1684 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> TabularData::FilledColumn<Base>.Element? |
| 1685 | } |
| 1686 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1687 | extension TabularData::OptionalColumnProtocol { |
| 1688 | public func filled(with value: Self.WrappedElement) -> TabularData::FilledColumn<Self> |
| 1689 | } |
| 1690 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1691 | public struct FilledColumn<Base> : TabularData::ColumnProtocol where Base : TabularData::OptionalColumnProtocol { |
| 1692 | public typealias Element = Base.WrappedElement |
| 1693 | public typealias WrappedElement = Base.WrappedElement |
| 1694 | @usableFromInline |
| 1695 | internal var base: Base |
| 1696 | @usableFromInline |
| 1697 | internal let defaultValue: Base.WrappedElement |
| 1698 | public var name: Swift::String { |
| 1699 | get |
| 1700 | set |
| 1701 | } |
| 1709 | base[position] ?? defaultValue |
| 1710 | } |
| 1711 | } |
| 1712 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1713 | public typealias Index = Base.Index |
| 1714 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1715 | public typealias Indices = Swift.DefaultIndices<TabularData.FilledColumn<Base>> |
| 1716 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1717 | public typealias Iterator = Swift.IndexingIterator<TabularData.FilledColumn<Base>> |
| 1718 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1719 | public typealias SubSequence = Swift.Slice<TabularData.FilledColumn<Base>> |
| 1720 | } |
| 1721 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1722 | extension TabularData.FilledColumn : Swift.Sendable where Base : Swift.Sendable, Base.WrappedElement : Swift.Sendable { |
| 1723 | } |
| 1724 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1725 | extension TabularData.DataFrame { |
| 1726 | public init(contentsOfSFrameDirectory url: Foundation.URL, columns: [Swift.String]? = nil, rows: Swift.Range<Swift.Int>? = nil) throws |
| 1727 | } |
| 1728 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1729 | public struct CSVReadingOptions { |
| 1730 | public var hasHeaderRow: Swift.Bool |
| 1731 | public var nilEncodings: Swift.Set<Swift.String> |
| 1732 | public var trueEncodings: Swift.Set<Swift.String> |
| 1733 | public var falseEncodings: Swift.Set<Swift.String> |
| 1734 | public var floatingPointType: TabularData.CSVType |
| 1735 | public var dateParsers: [(Swift.String) -> Foundation.Date?] |
| 1736 | public var ignoresEmptyLines: Swift.Bool |
| 1737 | public var usesQuoting: Swift.Bool |
| 1738 | public var usesEscaping: Swift.Bool |
| 1739 | public var delimiter: Swift.Character { |
| 1740 | get |
| 1741 | } |
| 1742 | public var escapeCharacter: Swift.Character { |
| 1743 | get |
| 1744 | } |
| 1745 | public init(hasHeaderRow: Swift.Bool = true, nilEncodings: Swift.Set<Swift.String> = ["", "#N/A", "#N/A N/A", "#NA", "N/A", "NA", "NULL", "n/a", "nil", "null"], trueEncodings: Swift.Set<Swift.String> = ["1", "True", "TRUE", "true"], falseEncodings: Swift.Set<Swift.String> = ["0", "False", "FALSE", "false"], floatingPointType: TabularData.CSVType = .double, ignoresEmptyLines: Swift.Bool = true, usesQuoting: Swift.Bool = true, usesEscaping: Swift.Bool = false, delimiter: Swift.Character = Character(","), escapeCharacter: Swift.Character = Character("\\")) |
| 1746 | public mutating func addDateParseStrategy<T>(_ strategy: T) where T : Foundation.ParseStrategy, T.ParseInput == Swift.String, T.ParseOutput == Foundation.Date |
| 1747 | } |
| 1748 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1749 | public struct CSVWritingOptions { |
| 1750 | public var includesHeader: Swift.Bool |
| 1751 | @available(*, deprecated, message: "Use dateFormatter instead.") |
| 1752 | public var dateFormat: Swift.String? |
| 1753 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 1754 | public var dateFormatter: (Foundation.Date) -> Swift.String { |
| 1755 | get |
| 1756 | set |
| 1757 | } |
| 1758 | public var nilEncoding: Swift.String |
| 1759 | public var trueEncoding: Swift.String |
| 1760 | public var falseEncoding: Swift.String |
| 1761 | public var newline: Swift.String |
| 1762 | public var delimiter: Swift.Character |
| 1763 | @_alwaysEmitIntoClient public init() { |
| 1764 | |
| 1765 |
| 1712 | base[position] ?? defaultValue |
| 1713 | } |
| 1714 | } |
| 1715 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1716 | public typealias Index = Base.Index |
| 1717 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1718 | public typealias Indices = Swift::DefaultIndices<TabularData::FilledColumn<Base>> |
| 1719 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1720 | public typealias Iterator = Swift::IndexingIterator<TabularData::FilledColumn<Base>> |
| 1721 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1722 | public typealias SubSequence = Swift::Slice<TabularData::FilledColumn<Base>> |
| 1723 | } |
| 1724 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1725 | extension TabularData::FilledColumn : Swift::Sendable where Base : Swift::Sendable, Base.WrappedElement : Swift::Sendable { |
| 1726 | } |
| 1727 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1728 | extension TabularData::DataFrame { |
| 1729 | public init(contentsOfSFrameDirectory url: Foundation::URL, columns: [Swift::String]? = nil, rows: Swift::Range<Swift::Int>? = nil) throws |
| 1730 | } |
| 1731 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1732 | public struct CSVReadingOptions { |
| 1733 | public var hasHeaderRow: Swift::Bool |
| 1734 | public var nilEncodings: Swift::Set<Swift::String> |
| 1735 | public var trueEncodings: Swift::Set<Swift::String> |
| 1736 | public var falseEncodings: Swift::Set<Swift::String> |
| 1737 | public var floatingPointType: TabularData::CSVType |
| 1738 | public var dateParsers: [(Swift::String) -> Foundation::Date?] |
| 1739 | public var ignoresEmptyLines: Swift::Bool |
| 1740 | public var usesQuoting: Swift::Bool |
| 1741 | public var usesEscaping: Swift::Bool |
| 1742 | public var delimiter: Swift::Character { |
| 1743 | get |
| 1744 | } |
| 1745 | public var escapeCharacter: Swift::Character { |
| 1746 | get |
| 1747 | } |
| 1748 | public init(hasHeaderRow: Swift::Bool = true, nilEncodings: Swift::Set<Swift::String> = ["", "#N/A", "#N/A N/A", "#NA", "N/A", "NA", "NULL", "n/a", "nil", "null"], trueEncodings: Swift::Set<Swift::String> = ["1", "True", "TRUE", "true"], falseEncodings: Swift::Set<Swift::String> = ["0", "False", "FALSE", "false"], floatingPointType: TabularData::CSVType = .double, ignoresEmptyLines: Swift::Bool = true, usesQuoting: Swift::Bool = true, usesEscaping: Swift::Bool = false, delimiter: Swift::Character = Character(","), escapeCharacter: Swift::Character = Character("\\")) |
| 1749 | public mutating func addDateParseStrategy<T>(_ strategy: T) where T : Foundation::ParseStrategy, T.ParseInput == Swift::String, T.ParseOutput == Foundation::Date |
| 1750 | } |
| 1751 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1752 | public struct CSVWritingOptions { |
| 1753 | public var includesHeader: Swift::Bool |
| 1754 | @available(*, deprecated, message: "Use dateFormatter instead.") |
| 1755 | public var dateFormat: Swift::String? |
| 1756 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 1757 | public var dateFormatter: (Foundation::Date) -> Swift::String { |
| 1758 | get |
| 1759 | set |
| 1760 | } |
| 1761 | public var nilEncoding: Swift::String |
| 1762 | public var trueEncoding: Swift::String |
| 1763 | public var falseEncoding: Swift::String |
| 1764 | public var newline: Swift::String |
| 1765 | public var delimiter: Swift::Character |
| 1766 | @_alwaysEmitIntoClient public init() { |
| 1767 | |
| 1768 |
| 1776 | ) |
| 1777 | } |
| 1778 | @available(*, deprecated, message: "Use dateFormatter instead or dateFormat.") |
| 1779 | public init(includesHeader: Swift.Bool = true, dateFormat: Swift.String?, nilEncoding: Swift.String = "", trueEncoding: Swift.String = "true", falseEncoding: Swift.String = "false", newline: Swift.String = "\n", delimiter: Swift.Character = ",") |
| 1780 | @_alwaysEmitIntoClient public init(includesHeader: Swift.Bool = true, nilEncoding: Swift.String = "", trueEncoding: Swift.String = "true", falseEncoding: Swift.String = "false", newline: Swift.String = "\n", delimiter: Swift.Character = ",") { |
| 1781 | self.init() |
| 1782 | self.includesHeader = includesHeader |
| 1783 | self.nilEncoding = nilEncoding |
| 1779 | ) |
| 1780 | } |
| 1781 | @available(*, deprecated, message: "Use dateFormatter instead or dateFormat.") |
| 1782 | public init(includesHeader: Swift::Bool = true, dateFormat: Swift::String?, nilEncoding: Swift::String = "", trueEncoding: Swift::String = "true", falseEncoding: Swift::String = "false", newline: Swift::String = "\n", delimiter: Swift::Character = ",") |
| 1783 | @_alwaysEmitIntoClient public init(includesHeader: Swift::Bool = true, nilEncoding: Swift::String = "", trueEncoding: Swift::String = "true", falseEncoding: Swift::String = "false", newline: Swift::String = "\n", delimiter: Swift::Character = ",") { |
| 1784 | self.init() |
| 1785 | self.includesHeader = includesHeader |
| 1786 | self.nilEncoding = nilEncoding |
| 1787 | } |
| 1788 | } |
| 1789 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1790 | public enum CSVWritingError : Swift.Error { |
| 1791 | case badEncoding(row: Swift.Int, column: Swift.String, Foundation.Data) |
| 1792 | public var row: Swift.Int { |
| 1793 | get |
| 1794 | } |
| 1795 | public var column: Swift.String? { |
| 1796 | get |
| 1797 | } |
| 1798 | } |
| 1799 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1800 | extension TabularData.CSVWritingError : Swift.CustomStringConvertible { |
| 1801 | public var description: Swift.String { |
| 1802 | get |
| 1803 | } |
| 1804 | } |
| 1805 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1806 | public struct RowGrouping<GroupingKey> : TabularData.RowGroupingProtocol where GroupingKey : Swift.Hashable { |
| 1807 | public var description: Swift.String { |
| 1808 | get |
| 1809 | } |
| 1810 | public init<D>(groups: [(GroupingKey?, D)], groupKeysColumnName: Swift.String) where D : TabularData.DataFrameProtocol |
| 1811 | public func counts(order: TabularData.Order? = nil) -> TabularData.DataFrame |
| 1812 | public func aggregated<Element, Result>(on columnNames: [Swift.String], naming: (Swift.String) -> Swift.String, transform: (TabularData.DiscontiguousColumnSlice<Element>) throws -> Result?) rethrows -> TabularData.DataFrame |
| 1813 | public func ungrouped() -> TabularData.DataFrame |
| 1814 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 1815 | public func filter(_ isIncluded: (TabularData.DataFrame.Slice) throws -> Swift.Bool) rethrows -> TabularData.RowGrouping<GroupingKey> |
| 1816 | public func mapGroups(_ transform: (TabularData.DataFrame.Slice) throws -> TabularData.DataFrame) rethrows -> TabularData.RowGrouping<GroupingKey> |
| 1817 | public subscript(keys: Any?...) -> TabularData.DataFrame.Slice? { |
| 1818 | get |
| 1819 | } |
| 1820 | } |
| 1821 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1822 | extension TabularData.RowGrouping { |
| 1823 | public func randomSplit(by proportion: Swift.Double, seed: Swift.Int? = nil) -> (TabularData.RowGrouping<GroupingKey>, TabularData.RowGrouping<GroupingKey>) |
| 1824 | } |
| 1825 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1826 | extension TabularData.RowGrouping { |
| 1827 | public init<D>(frame: D, columnName: Swift.String, timeUnit: Foundation.Calendar.Component) where GroupingKey == Swift.Int, D : TabularData.DataFrameProtocol |
| 1828 | } |
| 1829 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1830 | extension TabularData.RowGrouping : Swift.RandomAccessCollection { |
| 1831 | public var startIndex: Swift.Int { |
| 1832 | get |
| 1833 | } |
| 1834 | public var endIndex: Swift.Int { |
| 1835 | get |
| 1836 | } |
| 1837 | public func index(after i: Swift.Int) -> Swift.Int |
| 1838 | public func index(before i: Swift.Int) -> Swift.Int |
| 1839 | public var count: Swift.Int { |
| 1840 | get |
| 1841 | } |
| 1842 | public subscript(position: Swift.Int) -> (key: GroupingKey?, group: TabularData.DataFrame.Slice) { |
| 1843 | get |
| 1844 | } |
| 1845 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1846 | public typealias Element = (key: GroupingKey?, group: TabularData.DataFrame.Slice) |
| 1847 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1848 | public typealias Index = Swift.Int |
| 1849 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1850 | public typealias Indices = Swift.Range<Swift.Int> |
| 1851 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1852 | public typealias Iterator = Swift.IndexingIterator<TabularData.RowGrouping<GroupingKey>> |
| 1853 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1854 | public typealias SubSequence = Swift.Slice<TabularData.RowGrouping<GroupingKey>> |
| 1855 | } |
| 1856 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1857 | public struct NumericSummary<Element> : Swift.Hashable, Swift.CustomDebugStringConvertible where Element : Swift.BinaryFloatingPoint { |
| 1858 | public var someCount: Swift.Int |
| 1859 | public var noneCount: Swift.Int |
| 1860 | public var totalCount: Swift.Int { |
| 1861 | get |
| 1862 | } |
| 1863 | public var median: Element |
| 1790 | } |
| 1791 | } |
| 1792 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1793 | public enum CSVWritingError : Swift::Error { |
| 1794 | case badEncoding(row: Swift::Int, column: Swift::String, Foundation::Data) |
| 1795 | public var row: Swift::Int { |
| 1796 | get |
| 1797 | } |
| 1798 | public var column: Swift::String? { |
| 1799 | get |
| 1800 | } |
| 1801 | } |
| 1802 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1803 | extension TabularData::CSVWritingError : Swift::CustomStringConvertible { |
| 1804 | public var description: Swift::String { |
| 1805 | get |
| 1806 | } |
| 1807 | } |
| 1808 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1809 | public struct RowGrouping<GroupingKey> : TabularData::RowGroupingProtocol where GroupingKey : Swift::Hashable { |
| 1810 | public var description: Swift::String { |
| 1811 | get |
| 1812 | } |
| 1813 | public init<D>(groups: [(GroupingKey?, D)], groupKeysColumnName: Swift::String) where D : TabularData::DataFrameProtocol |
| 1814 | public func counts(order: TabularData::Order? = nil) -> TabularData::DataFrame |
| 1815 | public func aggregated<Element, Result>(on columnNames: [Swift::String], naming: (Swift::String) -> Swift::String, transform: (TabularData::DiscontiguousColumnSlice<Element>) throws -> Result?) rethrows -> TabularData::DataFrame |
| 1816 | public func ungrouped() -> TabularData::DataFrame |
| 1817 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 1818 | public func filter(_ isIncluded: (TabularData::DataFrame.TabularData::Slice) throws -> Swift::Bool) rethrows -> TabularData::RowGrouping<GroupingKey> |
| 1819 | public func mapGroups(_ transform: (TabularData::DataFrame.TabularData::Slice) throws -> TabularData::DataFrame) rethrows -> TabularData::RowGrouping<GroupingKey> |
| 1820 | public subscript(keys: Any?...) -> TabularData::DataFrame.TabularData::Slice? { |
| 1821 | get |
| 1822 | } |
| 1823 | } |
| 1824 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1825 | extension TabularData::RowGrouping { |
| 1826 | public func randomSplit(by proportion: Swift::Double, seed: Swift::Int? = nil) -> (TabularData::RowGrouping<GroupingKey>, TabularData::RowGrouping<GroupingKey>) |
| 1827 | } |
| 1828 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1829 | extension TabularData::RowGrouping { |
| 1830 | public init<D>(frame: D, columnName: Swift::String, timeUnit: Foundation::Calendar.Foundation::Component) where GroupingKey == Swift::Int, D : TabularData::DataFrameProtocol |
| 1831 | } |
| 1832 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1833 | extension TabularData::RowGrouping : Swift::RandomAccessCollection { |
| 1834 | public var startIndex: Swift::Int { |
| 1835 | get |
| 1836 | } |
| 1837 | public var endIndex: Swift::Int { |
| 1838 | get |
| 1839 | } |
| 1840 | public func index(after i: Swift::Int) -> Swift::Int |
| 1841 | public func index(before i: Swift::Int) -> Swift::Int |
| 1842 | public var count: Swift::Int { |
| 1843 | get |
| 1844 | } |
| 1845 | public subscript(position: Swift::Int) -> (key: GroupingKey?, group: TabularData::DataFrame.TabularData::Slice) { |
| 1846 | get |
| 1847 | } |
| 1848 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1849 | public typealias Element = (key: GroupingKey?, group: TabularData::DataFrame.TabularData::Slice) |
| 1850 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1851 | public typealias Index = Swift::Int |
| 1852 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1853 | public typealias Indices = Swift::Range<Swift::Int> |
| 1854 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1855 | public typealias Iterator = Swift::IndexingIterator<TabularData::RowGrouping<GroupingKey>> |
| 1856 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1857 | public typealias SubSequence = Swift::Slice<TabularData::RowGrouping<GroupingKey>> |
| 1858 | } |
| 1859 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1860 | public struct NumericSummary<Element> : Swift::Hashable, Swift::CustomDebugStringConvertible where Element : Swift::BinaryFloatingPoint { |
| 1861 | public var someCount: Swift::Int |
| 1862 | public var noneCount: Swift::Int |
| 1863 | public var totalCount: Swift::Int { |
| 1864 | get |
| 1865 | } |
| 1866 | public var median: Element |
| 1868 | public var min: Element |
| 1869 | public var max: Element |
| 1870 | public init() |
| 1871 | public init(someCount: Swift.Int, noneCount: Swift.Int, mean: Element, standardDeviation: Element, min: Element, max: Element, median: Element, firstQuartile: Element, thirdQuartile: Element) |
| 1872 | public var debugDescription: Swift.String { |
| 1873 | get |
| 1874 | } |
| 1875 | public static func == (a: TabularData.NumericSummary<Element>, b: TabularData.NumericSummary<Element>) -> Swift.Bool |
| 1876 | public func hash(into hasher: inout Swift.Hasher) |
| 1877 | public var hashValue: Swift.Int { |
| 1878 | get |
| 1879 | } |
| 1880 | } |
| 1881 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1882 | extension TabularData.NumericSummary : Swift.Sendable where Element : Swift.Sendable { |
| 1883 | } |
| 1884 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1885 | extension TabularData.DataFrame { |
| 1886 | public struct Row { |
| 1887 | public var base: TabularData.DataFrame { |
| 1888 | get |
| 1889 | } |
| 1890 | public let index: Swift.Int |
| 1891 | public subscript<T>(position: Swift.Int, type: T.Type) -> T? { |
| 1892 | get |
| 1893 | set |
| 1894 | } |
| 1895 | public subscript<T>(columnName: Swift.String, type: T.Type) -> T? { |
| 1896 | get |
| 1897 | set |
| 1898 | } |
| 1899 | public subscript(columnName: Swift.String) -> Any? { |
| 1900 | get |
| 1901 | set |
| 1902 | } |
| 1903 | public subscript<T>(columnID: TabularData.ColumnID<T>) -> T? { |
| 1904 | get |
| 1905 | set |
| 1906 | } |
| 1907 | } |
| 1908 | } |
| 1909 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1910 | extension TabularData.DataFrame { |
| 1911 | public struct Rows : Swift.BidirectionalCollection, Swift.MutableCollection { |
| 1912 | public var startIndex: Swift.Int { |
| 1913 | get |
| 1914 | } |
| 1915 | public var endIndex: Swift.Int { |
| 1916 | get |
| 1917 | } |
| 1918 | public var count: Swift.Int { |
| 1919 | get |
| 1920 | } |
| 1921 | public func index(after i: Swift.Int) -> Swift.Int |
| 1922 | public func index(before i: Swift.Int) -> Swift.Int |
| 1923 | public subscript(position: Swift.Int) -> TabularData.DataFrame.Row { |
| 1924 | get |
| 1925 | set |
| 1926 | } |
| 1927 | public subscript(bounds: Swift.Range<Swift.Int>) -> TabularData.DataFrame.Rows { |
| 1928 | get |
| 1929 | set |
| 1930 | } |
| 1931 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1932 | public typealias Element = TabularData.DataFrame.Row |
| 1933 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1934 | public typealias Index = Swift.Int |
| 1935 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1936 | public typealias Indices = Swift.DefaultIndices<TabularData.DataFrame.Rows> |
| 1937 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1938 | public typealias Iterator = Swift.IndexingIterator<TabularData.DataFrame.Rows> |
| 1939 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1940 | public typealias SubSequence = TabularData.DataFrame.Rows |
| 1941 | } |
| 1942 | } |
| 1943 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1944 | extension TabularData.DataFrame.Row : Swift.RandomAccessCollection, Swift.MutableCollection { |
| 1945 | public var startIndex: Swift.Int { |
| 1946 | get |
| 1947 | } |
| 1948 | public var endIndex: Swift.Int { |
| 1949 | get |
| 1950 | } |
| 1951 | public func index(after i: Swift.Int) -> Swift.Int |
| 1952 | public func index(before i: Swift.Int) -> Swift.Int |
| 1953 | public var count: Swift.Int { |
| 1954 | get |
| 1955 | } |
| 1956 | public subscript(position: Swift.Int) -> Any? { |
| 1957 | get |
| 1958 | set |
| 1959 | } |
| 1960 | public subscript(bounds: Swift.Range<Swift.Int>) -> Swift.Slice<TabularData.DataFrame.Row> { |
| 1961 | get |
| 1962 | set |
| 1963 | } |
| 1964 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1965 | public typealias Element = Any? |
| 1966 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1967 | public typealias Index = Swift.Int |
| 1968 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1969 | public typealias Indices = Swift.Range<Swift.Int> |
| 1970 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1971 | public typealias Iterator = Swift.IndexingIterator<TabularData.DataFrame.Row> |
| 1972 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 1973 | public typealias SubSequence = Swift.Slice<TabularData.DataFrame.Row> |
| 1974 | } |
| 1975 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1976 | extension TabularData.DataFrame.Row : Swift.Hashable { |
| 1977 | public static func == (lhs: TabularData.DataFrame.Row, rhs: TabularData.DataFrame.Row) -> Swift.Bool |
| 1978 | public func hash(into hasher: inout Swift.Hasher) |
| 1979 | public var hashValue: Swift.Int { |
| 1980 | get |
| 1981 | } |
| 1982 | } |
| 1983 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1984 | extension TabularData.Column where WrappedElement : Swift.Comparable { |
| 1985 | public func min() -> TabularData.Column<WrappedElement>.Element |
| 1986 | public func max() -> TabularData.Column<WrappedElement>.Element |
| 1987 | public func argmin() -> Swift.Int? |
| 1988 | public func argmax() -> Swift.Int? |
| 1989 | } |
| 1990 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1991 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.Comparable { |
| 1992 | public func min() -> TabularData.DiscontiguousColumnSlice<WrappedElement>.Element |
| 1993 | public func max() -> TabularData.DiscontiguousColumnSlice<WrappedElement>.Element |
| 1994 | public func argmin() -> Swift.Int? |
| 1995 | public func argmax() -> Swift.Int? |
| 1996 | } |
| 1997 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1998 | extension TabularData.ColumnSlice where WrappedElement : Swift.Comparable { |
| 1999 | public func min() -> TabularData.ColumnSlice<WrappedElement>.Element |
| 2000 | public func max() -> TabularData.ColumnSlice<WrappedElement>.Element |
| 2001 | public func argmin() -> Swift.Int? |
| 2002 | public func argmax() -> Swift.Int? |
| 2003 | } |
| 2004 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2005 | extension TabularData.Column where WrappedElement : Swift.AdditiveArithmetic { |
| 2006 | public func sum() -> WrappedElement |
| 2007 | } |
| 2008 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2009 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.AdditiveArithmetic { |
| 2010 | public func sum() -> WrappedElement |
| 2011 | } |
| 2012 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2013 | extension TabularData.ColumnSlice where WrappedElement : Swift.AdditiveArithmetic { |
| 2014 | public func sum() -> WrappedElement |
| 2015 | } |
| 2016 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2017 | extension TabularData.Column where WrappedElement : Swift.FloatingPoint { |
| 2018 | public func mean() -> TabularData.Column<WrappedElement>.Element |
| 2019 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> TabularData.Column<WrappedElement>.Element |
| 2020 | } |
| 2021 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2022 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.FloatingPoint { |
| 2023 | public func mean() -> TabularData.DiscontiguousColumnSlice<WrappedElement>.Element |
| 2024 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> TabularData.DiscontiguousColumnSlice<WrappedElement>.Element |
| 2025 | } |
| 2026 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2027 | extension TabularData.ColumnSlice where WrappedElement : Swift.FloatingPoint { |
| 2028 | public func mean() -> TabularData.ColumnSlice<WrappedElement>.Element |
| 2029 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> TabularData.ColumnSlice<WrappedElement>.Element |
| 2030 | } |
| 2031 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2032 | extension TabularData.Column where WrappedElement : Swift.BinaryInteger { |
| 2033 | public func mean() -> Swift.Double? |
| 2034 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> Swift.Double? |
| 2035 | } |
| 2036 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2037 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.BinaryInteger { |
| 2038 | public func mean() -> Swift.Double? |
| 2039 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> Swift.Double? |
| 2040 | } |
| 2041 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2042 | extension TabularData.ColumnSlice where WrappedElement : Swift.BinaryInteger { |
| 2043 | public func mean() -> Swift.Double? |
| 2044 | public func standardDeviation(deltaDegreesOfFreedom: Swift.Int = 1) -> Swift.Double? |
| 2045 | } |
| 2046 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 2047 | extension TabularData.DataFrameProtocol { |
| 2048 | public func writeJSON(to url: Foundation.URL, options: TabularData.JSONWritingOptions = .init()) throws |
| 2049 | public func jsonRepresentation(options: TabularData.JSONWritingOptions = .init()) throws -> Foundation.Data |
| 2050 | } |
| 2051 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2052 | public enum CSVType : Swift.Sendable { |
| 2053 | case integer |
| 2054 | case boolean |
| 2055 | case float |
| 2056 | case double |
| 2057 | case date |
| 2058 | case string |
| 2059 | case data |
| 2060 | public static func == (a: TabularData.CSVType, b: TabularData.CSVType) -> Swift.Bool |
| 2061 | public func hash(into hasher: inout Swift.Hasher) |
| 2062 | public var hashValue: Swift.Int { |
| 2063 | get |
| 2064 | } |
| 2065 | } |
| 2066 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2067 | extension TabularData.DataFrame { |
| 2068 | public func grouped(by columnName: Swift.String) -> any TabularData.RowGroupingProtocol |
| 2069 | } |
| 2070 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2071 | extension TabularData.DataFrame.Slice { |
| 2072 | public func grouped(by columnName: Swift.String) -> any TabularData.RowGroupingProtocol |
| 2073 | } |
| 2074 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2075 | extension TabularData.DataFrameProtocol { |
| 2076 | public func grouped<GroupingKey>(by columnID: TabularData.ColumnID<GroupingKey>) -> TabularData.RowGrouping<GroupingKey> where GroupingKey : Swift.Hashable |
| 2077 | public func grouped<InputKey, GroupingKey>(by columnName: Swift.String, transform: (InputKey?) -> GroupingKey?) -> TabularData.RowGrouping<GroupingKey> where GroupingKey : Swift.Hashable |
| 2078 | public func grouped<InputKey, GroupingKey>(by columnID: TabularData.ColumnID<InputKey>, transform: (InputKey?) -> GroupingKey?) -> TabularData.RowGrouping<GroupingKey> where GroupingKey : Swift.Hashable |
| 2079 | public func grouped(by columnName: Swift.String, timeUnit: Foundation.Calendar.Component) -> TabularData.RowGrouping<Swift.Int> |
| 2080 | public func grouped(by columnID: TabularData.ColumnID<Foundation.Date>, timeUnit: Foundation.Calendar.Component) -> TabularData.RowGrouping<Swift.Int> |
| 2081 | public func grouped(by columnNames: Swift.String...) -> some TabularData.RowGroupingProtocol |
| 2082 | |
| 2083 | @_disfavoredOverload public func grouped<T>(by columnIDs: TabularData.ColumnID<T>...) -> some TabularData.RowGroupingProtocol where T : Swift.Hashable |
| 2084 | |
| 2085 | public func grouped<T0, T1>(by column0: TabularData.ColumnID<T0>, _ column1: TabularData.ColumnID<T1>) -> some TabularData.RowGroupingProtocol where T0 : Swift.Hashable, T1 : Swift.Hashable |
| 2086 | |
| 2087 | public func grouped<T0, T1, T2>(by column0: TabularData.ColumnID<T0>, _ column1: TabularData.ColumnID<T1>, _ column2: TabularData.ColumnID<T2>) -> some TabularData.RowGroupingProtocol where T0 : Swift.Hashable, T1 : Swift.Hashable, T2 : Swift.Hashable |
| 2088 | |
| 2089 | } |
| 2090 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2091 | extension TabularData.RowGroupingProtocol { |
| 2092 | public func summary(of columnNames: Swift.String...) -> any TabularData.GroupSummaries |
| 2093 | } |
| 2094 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2095 | extension TabularData.RowGrouping { |
| 2096 | public func summary() -> any TabularData.GroupSummaries |
| 2097 | public func summary(of columnNames: [Swift.String]) -> any TabularData.GroupSummaries |
| 2098 | } |
| 2099 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2100 | @usableFromInline |
| 2101 | final internal class PackedOptionalsStorage<Element> { |
| 2102 | @usableFromInline |
| 2103 | final internal var buffer: TabularData.PackedOptionalsBuffer<Element> |
| 2104 | @inlinable final internal var capacity: Swift.Int { |
| 2105 | get { buffer.capacity } |
| 2106 | } |
| 2107 | @inlinable final internal var count: Swift.Int { |
| 2108 | get { buffer.count } |
| 2109 | } |
| 2110 | @inlinable final internal var nilCount: Swift.Int { |
| 2111 | get { buffer.nilCount } |
| 2112 | } |
| 2113 | @usableFromInline |
| 2114 | internal init(capacity: Swift.Int) |
| 2115 | @usableFromInline |
| 2116 | internal init(copying other: TabularData.PackedOptionalsStorage<Element>, capacity: Swift.Int) |
| 2117 | @objc deinit |
| 2118 | @inlinable final internal func grow(minimumCapacity: Swift.Int, growForAppend: Swift.Bool) { |
| 2119 | let newCapacity = growCapacity(minimumCapacity: minimumCapacity, growForAppend: growForAppend) |
| 2120 | let newBuffer = PackedOptionalsBuffer<Element>(moving: buffer, capacity: newCapacity) |
| 2121 | buffer.deallocate() |
| 2122 | buffer = newBuffer |
| 2123 | } |
| 2124 | @inlinable final internal func createNew(minimumCapacity: Swift.Int, growForAppend: Swift.Bool) -> TabularData.PackedOptionalsStorage<Element> { |
| 2125 | let newCapacity = growCapacity(minimumCapacity: minimumCapacity, growForAppend: growForAppend) |
| 2126 | assert(newCapacity >= count) |
| 2127 | return PackedOptionalsStorage(copying: self, capacity: newCapacity) |
| 2128 | } |
| 2129 | @usableFromInline |
| 2130 | final internal func growCapacity(minimumCapacity: Swift.Int, growForAppend: Swift.Bool) -> Swift.Int |
| 2131 | @inlinable final internal func resize(by change: Swift.Int) { |
| 2132 | buffer.resize(by: change) |
| 2133 | } |
| 2134 | @inlinable final internal func append(_ element: Element?) { |
| 2135 | buffer.append(element) |
| 2136 | } |
| 2137 | } |
| 2138 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2139 | extension TabularData.Column : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 2140 | public var description: Swift.String { |
| 2141 | get |
| 2142 | } |
| 2143 | public var debugDescription: Swift.String { |
| 2144 | get |
| 2145 | } |
| 2146 | public var customMirror: Swift.Mirror { |
| 2147 | get |
| 2148 | } |
| 2149 | } |
| 2150 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2151 | extension TabularData.ColumnSlice : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 2152 | public var description: Swift.String { |
| 2153 | get |
| 2154 | } |
| 2155 | public var debugDescription: Swift.String { |
| 2156 | get |
| 2157 | } |
| 2158 | public var customMirror: Swift.Mirror { |
| 2159 | get |
| 2160 | } |
| 2161 | } |
| 2162 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2163 | extension TabularData.DiscontiguousColumnSlice : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 2164 | public var description: Swift.String { |
| 2165 | get |
| 2166 | } |
| 2167 | public var debugDescription: Swift.String { |
| 2168 | get |
| 2169 | } |
| 2170 | public var customMirror: Swift.Mirror { |
| 2171 | get |
| 2172 | } |
| 2173 | } |
| 2174 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2175 | extension TabularData.OptionalColumnProtocol { |
| 2176 | public func description(options: TabularData.FormattingOptions) -> Swift.String |
| 2177 | } |
| 2178 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2179 | extension TabularData.FilledColumn : Swift.CustomStringConvertible { |
| 2180 | public var description: Swift.String { |
| 2181 | get |
| 2182 | } |
| 2183 | public var debugDescription: Swift.String { |
| 2184 | get |
| 2185 | } |
| 2186 | public func description(options: TabularData.FormattingOptions) -> Swift.String |
| 2187 | } |
| 2188 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2189 | public enum JoinKind : Swift.Sendable { |
| 2190 | case inner |
| 2191 | case left |
| 2192 | case right |
| 2193 | case full |
| 2194 | public static func == (a: TabularData.JoinKind, b: TabularData.JoinKind) -> Swift.Bool |
| 2195 | public func hash(into hasher: inout Swift.Hasher) |
| 2196 | public var hashValue: Swift.Int { |
| 2197 | get |
| 2198 | } |
| 2199 | } |
| 2200 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2201 | extension TabularData.DataFrameProtocol { |
| 2202 | public func joined<R>(_ other: R, on columnName: Swift.String, kind: TabularData.JoinKind = .inner) -> TabularData.DataFrame where R : TabularData.DataFrameProtocol |
| 2203 | public func joined<R, T>(_ other: R, on columnID: TabularData.ColumnID<T>, kind: TabularData.JoinKind = .inner) -> TabularData.DataFrame where R : TabularData.DataFrameProtocol, T : Swift.Hashable |
| 2204 | public func joined<R>(_ other: R, on columnNames: (left: Swift.String, right: Swift.String), kind: TabularData.JoinKind = .inner) -> TabularData.DataFrame where R : TabularData.DataFrameProtocol |
| 2205 | public func joined<R, T>(_ other: R, on columnIDs: (left: TabularData.ColumnID<T>, right: TabularData.ColumnID<T>), kind: TabularData.JoinKind = .inner) -> TabularData.DataFrame where R : TabularData.DataFrameProtocol, T : Swift.Hashable |
| 2206 | } |
| 2207 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2208 | public struct AnyColumn : TabularData.AnyColumnProtocol, Swift.Hashable { |
| 2209 | public var name: Swift.String { |
| 2210 | get |
| 2211 | set |
| 2212 | } |
| 2213 | public var wrappedElementType: any Any.Type { |
| 2214 | get |
| 2215 | } |
| 2216 | public var prototype: any TabularData.AnyColumnPrototype { |
| 2217 | get |
| 2218 | } |
| 2219 | public var count: Swift.Int { |
| 2220 | get |
| 2221 | } |
| 2222 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2223 | public var missingCount: Swift.Int { |
| 2224 | get |
| 2225 | } |
| 2226 | public func assumingType<T>(_ type: T.Type) -> TabularData.Column<T> |
| 2227 | public func isNil(at index: Swift.Int) -> Swift.Bool |
| 2228 | public mutating func append(_ element: Any?) |
| 2229 | public mutating func append(contentsOf other: TabularData.AnyColumn) |
| 2230 | public mutating func append(contentsOf other: TabularData.AnyColumnSlice) |
| 2231 | public mutating func remove(at index: Swift.Int) |
| 2232 | public var hashValue: Swift.Int { |
| 2233 | get |
| 2234 | } |
| 2235 | } |
| 2236 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2237 | extension TabularData.AnyColumn : Swift.RandomAccessCollection, Swift.MutableCollection { |
| 2238 | public var startIndex: Swift.Int { |
| 2239 | get |
| 2240 | } |
| 2241 | public var endIndex: Swift.Int { |
| 2242 | get |
| 2243 | } |
| 2244 | public func index(after i: Swift.Int) -> Swift.Int |
| 2245 | public func index(before i: Swift.Int) -> Swift.Int |
| 2246 | public subscript(position: Swift.Int) -> Any? { |
| 2247 | get |
| 2248 | set |
| 2249 | } |
| 2250 | public subscript(range: Swift.Range<Swift.Int>) -> TabularData.AnyColumnSlice { |
| 2251 | get |
| 2252 | set |
| 2253 | } |
| 2254 | public subscript<C>(mask: C) -> TabularData.AnyColumnSlice where C : Swift.Collection, C.Element == Swift.Bool { |
| 2255 | get |
| 2256 | } |
| 2257 | public static func == (lhs: TabularData.AnyColumn, rhs: TabularData.AnyColumn) -> Swift.Bool |
| 2258 | public func hash(into hasher: inout Swift.Hasher) |
| 2259 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 2260 | public typealias Element = Any? |
| 2261 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 2262 | public typealias Index = Swift.Int |
| 2263 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 2264 | public typealias Indices = Swift.Range<Swift.Int> |
| 2265 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 2266 | public typealias Iterator = Swift.IndexingIterator<TabularData.AnyColumn> |
| 2267 | @available(iOS 15, tvOS 15, watchOS 8, macOS 12, *) |
| 2268 | public typealias SubSequence = TabularData.AnyColumnSlice |
| 2269 | } |
| 2270 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2271 | extension TabularData.AnyColumn : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomReflectable { |
| 2272 | public var description: Swift.String { |
| 2273 | get |
| 2274 | } |
| 2275 | public var debugDescription: Swift.String { |
| 2276 | get |
| 2277 | } |
| 2278 | public var customMirror: Swift.Mirror { |
| 2279 | get |
| 2280 | } |
| 2281 | } |
| 2282 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2283 | extension TabularData.AnyColumn { |
| 2284 | public func distinct() -> TabularData.AnyColumnSlice |
| 2285 | } |
| 2286 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2287 | extension TabularData.Column where WrappedElement : Swift.BinaryFloatingPoint { |
| 2288 | public func numericSummary() -> TabularData.NumericSummary<WrappedElement> |
| 2289 | } |
| 2290 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2291 | extension TabularData.ColumnSlice where WrappedElement : Swift.BinaryFloatingPoint { |
| 2292 | public func numericSummary() -> TabularData.NumericSummary<WrappedElement> |
| 2293 | } |
| 2294 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2295 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.BinaryFloatingPoint { |
| 2296 | public func numericSummary() -> TabularData.NumericSummary<WrappedElement> |
| 2297 | } |
| 2298 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2299 | extension TabularData.FilledColumn where Base.WrappedElement : Swift.BinaryFloatingPoint { |
| 2300 | public func numericSummary() -> TabularData.NumericSummary<Base.WrappedElement> |
| 2301 | } |
| 2302 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2303 | extension TabularData.FilledColumn where Base.WrappedElement : Swift.BinaryInteger { |
| 2304 | public func numericSummary() -> TabularData.NumericSummary<Swift.Double> |
| 2305 | } |
| 2306 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2307 | extension TabularData.Column where WrappedElement : Swift.BinaryInteger { |
| 2308 | public func numericSummary() -> TabularData.NumericSummary<Swift.Double> |
| 2309 | } |
| 2310 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2311 | extension TabularData.ColumnSlice where WrappedElement : Swift.BinaryInteger { |
| 2312 | public func numericSummary() -> TabularData.NumericSummary<Swift.Double> |
| 2313 | } |
| 2314 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2315 | extension TabularData.DiscontiguousColumnSlice where WrappedElement : Swift.BinaryInteger { |
| 2316 | public func numericSummary() -> TabularData.NumericSummary<Swift.Double> |
| 2317 | } |
| 2318 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2319 | public struct FormattingOptions { |
| 2320 | public var maximumLineWidth: Swift.Int |
| 2321 | public var maximumCellWidth: Swift.Int |
| 2322 | public var maximumRowCount: Swift.Int |
| 2323 | public var includesColumnTypes: Swift.Bool |
| 2324 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 2325 | public var includesRowIndices: Swift.Bool |
| 2326 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 2327 | public var includesRowAndColumnCounts: Swift.Bool |
| 2328 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2329 | public var floatingPointFormatStyle: Foundation.FloatingPointFormatStyle<Swift.Double> { |
| 2330 | get |
| 2331 | set |
| 2332 | } |
| 2333 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2334 | public var integerFormatStyle: Foundation.IntegerFormatStyle<Swift.Int> { |
| 2335 | get |
| 2336 | set |
| 2337 | } |
| 2338 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2339 | public var dateFormatStyle: Foundation.Date.FormatStyle { |
| 2340 | get |
| 2341 | set |
| 2342 | } |
| 2343 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2344 | public var locale: Foundation.Locale { |
| 2345 | get |
| 2346 | set |
| 2347 | } |
| 2348 | public init() |
| 2349 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2350 | public init(locale: Foundation.Locale) |
| 2351 | public init(maximumLineWidth: Swift.Int, maximumCellWidth: Swift.Int = 50, maximumRowCount: Swift.Int = 20, includesColumnTypes: Swift.Bool = true) |
| 2352 | } |
| 2353 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2354 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.AdditiveArithmetic { |
| 2355 | public static func + (lhs: Self, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2356 | public static func - (lhs: Self, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2357 | } |
| 2358 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2359 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.Numeric { |
| 2360 | public static func * (lhs: Self, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2361 | } |
| 2362 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2363 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.BinaryInteger { |
| 2364 | public static func / (lhs: Self, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2365 | } |
| 2366 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2367 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.FloatingPoint { |
| 2368 | public static func / (lhs: Self, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2369 | } |
| 2370 | extension TabularData.OptionalColumnProtocol { |
| 2371 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2372 | public static func + (lhs: Self, rhs: Self.WrappedElement) -> TabularData.Column<Self.WrappedElement> where Self.WrappedElement : Swift.AdditiveArithmetic |
| 2373 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2374 | public static func + (lhs: Self.WrappedElement, rhs: Self) -> TabularData.Column<Self.WrappedElement> where Self.WrappedElement : Swift.AdditiveArithmetic |
| 2375 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2376 | public static func - (lhs: Self, rhs: Self.WrappedElement) -> TabularData.Column<Self.WrappedElement> where Self.WrappedElement : Swift.AdditiveArithmetic |
| 2377 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2378 | public static func - (lhs: Self.WrappedElement, rhs: Self) -> TabularData.Column<Self.WrappedElement> where Self.WrappedElement : Swift.AdditiveArithmetic |
| 2379 | } |
| 2380 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2381 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.Numeric { |
| 2382 | public static func * (lhs: Self, rhs: Self.WrappedElement) -> TabularData.Column<Self.WrappedElement> |
| 2383 | public static func * (lhs: Self.WrappedElement, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2384 | } |
| 2385 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2386 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.BinaryInteger { |
| 2387 | public static func / (lhs: Self, rhs: Self.WrappedElement) -> TabularData.Column<Self.WrappedElement> |
| 2388 | public static func / (lhs: Self.WrappedElement, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2389 | } |
| 2390 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2391 | extension TabularData.OptionalColumnProtocol where Self.WrappedElement : Swift.FloatingPoint { |
| 2392 | public static func / (lhs: Self, rhs: Self.WrappedElement) -> TabularData.Column<Self.WrappedElement> |
| 2393 | public static func / (lhs: Self.WrappedElement, rhs: Self) -> TabularData.Column<Self.WrappedElement> |
| 2394 | } |
| 2395 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2396 | extension TabularData.JSONType : Swift.Equatable {} |
| 2397 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2398 | extension TabularData.JSONType : Swift.Hashable {} |
| 2399 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2400 | extension TabularData.Order : Swift.Equatable {} |
| 2401 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2402 | extension TabularData.Order : Swift.Hashable {} |
| 2403 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2404 | extension TabularData.CSVType : Swift.Equatable {} |
| 2405 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2406 | extension TabularData.CSVType : Swift.Hashable {} |
| 2407 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2408 | extension TabularData.JoinKind : Swift.Equatable {} |
| 2409 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2410 | extension TabularData.JoinKind : Swift.Hashable {} |
| 1871 | public var min: Element |
| 1872 | public var max: Element |
| 1873 | public init() |
| 1874 | public init(someCount: Swift::Int, noneCount: Swift::Int, mean: Element, standardDeviation: Element, min: Element, max: Element, median: Element, firstQuartile: Element, thirdQuartile: Element) |
| 1875 | public var debugDescription: Swift::String { |
| 1876 | get |
| 1877 | } |
| 1878 | public static func == (a: TabularData::NumericSummary<Element>, b: TabularData::NumericSummary<Element>) -> Swift::Bool |
| 1879 | public func hash(into hasher: inout Swift::Hasher) |
| 1880 | public var hashValue: Swift::Int { |
| 1881 | get |
| 1882 | } |
| 1883 | } |
| 1884 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1885 | extension TabularData::NumericSummary : Swift::Sendable where Element : Swift::Sendable { |
| 1886 | } |
| 1887 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1888 | extension TabularData::DataFrame { |
| 1889 | public struct Row { |
| 1890 | public var base: TabularData::DataFrame { |
| 1891 | get |
| 1892 | } |
| 1893 | public let index: Swift::Int |
| 1894 | public subscript<T>(position: Swift::Int, type: T.Type) -> T? { |
| 1895 | get |
| 1896 | set |
| 1897 | } |
| 1898 | public subscript<T>(columnName: Swift::String, type: T.Type) -> T? { |
| 1899 | get |
| 1900 | set |
| 1901 | } |
| 1902 | public subscript(columnName: Swift::String) -> Any? { |
| 1903 | get |
| 1904 | set |
| 1905 | } |
| 1906 | public subscript<T>(columnID: TabularData::ColumnID<T>) -> T? { |
| 1907 | get |
| 1908 | set |
| 1909 | } |
| 1910 | } |
| 1911 | } |
| 1912 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1913 | extension TabularData::DataFrame { |
| 1914 | public struct Rows : Swift::BidirectionalCollection, Swift::MutableCollection { |
| 1915 | public var startIndex: Swift::Int { |
| 1916 | get |
| 1917 | } |
| 1918 | public var endIndex: Swift::Int { |
| 1919 | get |
| 1920 | } |
| 1921 | public var count: Swift::Int { |
| 1922 | get |
| 1923 | } |
| 1924 | public func index(after i: Swift::Int) -> Swift::Int |
| 1925 | public func index(before i: Swift::Int) -> Swift::Int |
| 1926 | public subscript(position: Swift::Int) -> TabularData::DataFrame.TabularData::Row { |
| 1927 | get |
| 1928 | set |
| 1929 | } |
| 1930 | public subscript(bounds: Swift::Range<Swift::Int>) -> TabularData::DataFrame.TabularData::Rows { |
| 1931 | get |
| 1932 | set |
| 1933 | } |
| 1934 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1935 | public typealias Element = TabularData::DataFrame.TabularData::Row |
| 1936 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1937 | public typealias Index = Swift::Int |
| 1938 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1939 | public typealias Indices = Swift::DefaultIndices<TabularData::DataFrame.TabularData::Rows> |
| 1940 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1941 | public typealias Iterator = Swift::IndexingIterator<TabularData::DataFrame.TabularData::Rows> |
| 1942 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1943 | public typealias SubSequence = TabularData::DataFrame.TabularData::Rows |
| 1944 | } |
| 1945 | } |
| 1946 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1947 | extension TabularData::DataFrame.TabularData::Row : Swift::RandomAccessCollection, Swift::MutableCollection { |
| 1948 | public var startIndex: Swift::Int { |
| 1949 | get |
| 1950 | } |
| 1951 | public var endIndex: Swift::Int { |
| 1952 | get |
| 1953 | } |
| 1954 | public func index(after i: Swift::Int) -> Swift::Int |
| 1955 | public func index(before i: Swift::Int) -> Swift::Int |
| 1956 | public var count: Swift::Int { |
| 1957 | get |
| 1958 | } |
| 1959 | public subscript(position: Swift::Int) -> Any? { |
| 1960 | get |
| 1961 | set |
| 1962 | } |
| 1963 | public subscript(bounds: Swift::Range<Swift::Int>) -> Swift::Slice<TabularData::DataFrame.TabularData::Row> { |
| 1964 | get |
| 1965 | set |
| 1966 | } |
| 1967 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1968 | public typealias Element = Any? |
| 1969 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1970 | public typealias Index = Swift::Int |
| 1971 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1972 | public typealias Indices = Swift::Range<Swift::Int> |
| 1973 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1974 | public typealias Iterator = Swift::IndexingIterator<TabularData::DataFrame.TabularData::Row> |
| 1975 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1976 | public typealias SubSequence = Swift::Slice<TabularData::DataFrame.TabularData::Row> |
| 1977 | } |
| 1978 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1979 | extension TabularData::DataFrame.TabularData::Row : Swift::Hashable { |
| 1980 | public static func == (lhs: TabularData::DataFrame.TabularData::Row, rhs: TabularData::DataFrame.TabularData::Row) -> Swift::Bool |
| 1981 | public func hash(into hasher: inout Swift::Hasher) |
| 1982 | public var hashValue: Swift::Int { |
| 1983 | get |
| 1984 | } |
| 1985 | } |
| 1986 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1987 | extension TabularData::Column where WrappedElement : Swift::Comparable { |
| 1988 | public func min() -> TabularData::Column<WrappedElement>.TabularData::Element |
| 1989 | public func max() -> TabularData::Column<WrappedElement>.TabularData::Element |
| 1990 | public func argmin() -> Swift::Int? |
| 1991 | public func argmax() -> Swift::Int? |
| 1992 | } |
| 1993 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 1994 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::Comparable { |
| 1995 | public func min() -> TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element |
| 1996 | public func max() -> TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element |
| 1997 | public func argmin() -> Swift::Int? |
| 1998 | public func argmax() -> Swift::Int? |
| 1999 | } |
| 2000 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2001 | extension TabularData::ColumnSlice where WrappedElement : Swift::Comparable { |
| 2002 | public func min() -> TabularData::ColumnSlice<WrappedElement>.TabularData::Element |
| 2003 | public func max() -> TabularData::ColumnSlice<WrappedElement>.TabularData::Element |
| 2004 | public func argmin() -> Swift::Int? |
| 2005 | public func argmax() -> Swift::Int? |
| 2006 | } |
| 2007 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2008 | extension TabularData::Column where WrappedElement : Swift::AdditiveArithmetic { |
| 2009 | public func sum() -> WrappedElement |
| 2010 | } |
| 2011 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2012 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::AdditiveArithmetic { |
| 2013 | public func sum() -> WrappedElement |
| 2014 | } |
| 2015 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2016 | extension TabularData::ColumnSlice where WrappedElement : Swift::AdditiveArithmetic { |
| 2017 | public func sum() -> WrappedElement |
| 2018 | } |
| 2019 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2020 | extension TabularData::Column where WrappedElement : Swift::FloatingPoint { |
| 2021 | public func mean() -> TabularData::Column<WrappedElement>.TabularData::Element |
| 2022 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> TabularData::Column<WrappedElement>.TabularData::Element |
| 2023 | } |
| 2024 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2025 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::FloatingPoint { |
| 2026 | public func mean() -> TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element |
| 2027 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> TabularData::DiscontiguousColumnSlice<WrappedElement>.TabularData::Element |
| 2028 | } |
| 2029 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2030 | extension TabularData::ColumnSlice where WrappedElement : Swift::FloatingPoint { |
| 2031 | public func mean() -> TabularData::ColumnSlice<WrappedElement>.TabularData::Element |
| 2032 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> TabularData::ColumnSlice<WrappedElement>.TabularData::Element |
| 2033 | } |
| 2034 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2035 | extension TabularData::Column where WrappedElement : Swift::BinaryInteger { |
| 2036 | public func mean() -> Swift::Double? |
| 2037 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> Swift::Double? |
| 2038 | } |
| 2039 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2040 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::BinaryInteger { |
| 2041 | public func mean() -> Swift::Double? |
| 2042 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> Swift::Double? |
| 2043 | } |
| 2044 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2045 | extension TabularData::ColumnSlice where WrappedElement : Swift::BinaryInteger { |
| 2046 | public func mean() -> Swift::Double? |
| 2047 | public func standardDeviation(deltaDegreesOfFreedom: Swift::Int = 1) -> Swift::Double? |
| 2048 | } |
| 2049 | @available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) |
| 2050 | extension TabularData::DataFrameProtocol { |
| 2051 | public func writeJSON(to url: Foundation::URL, options: TabularData::JSONWritingOptions = .init()) throws |
| 2052 | public func jsonRepresentation(options: TabularData::JSONWritingOptions = .init()) throws -> Foundation::Data |
| 2053 | } |
| 2054 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2055 | public enum CSVType : Swift::Sendable { |
| 2056 | case integer |
| 2057 | case boolean |
| 2058 | case float |
| 2059 | case double |
| 2060 | case date |
| 2061 | case string |
| 2062 | case data |
| 2063 | public static func == (a: TabularData::CSVType, b: TabularData::CSVType) -> Swift::Bool |
| 2064 | public func hash(into hasher: inout Swift::Hasher) |
| 2065 | public var hashValue: Swift::Int { |
| 2066 | get |
| 2067 | } |
| 2068 | } |
| 2069 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2070 | extension TabularData::DataFrame { |
| 2071 | public func grouped(by columnName: Swift::String) -> any TabularData::RowGroupingProtocol |
| 2072 | } |
| 2073 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2074 | extension TabularData::DataFrame.TabularData::Slice { |
| 2075 | public func grouped(by columnName: Swift::String) -> any TabularData::RowGroupingProtocol |
| 2076 | } |
| 2077 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2078 | extension TabularData::DataFrameProtocol { |
| 2079 | public func grouped<GroupingKey>(by columnID: TabularData::ColumnID<GroupingKey>) -> TabularData::RowGrouping<GroupingKey> where GroupingKey : Swift::Hashable |
| 2080 | public func grouped<InputKey, GroupingKey>(by columnName: Swift::String, transform: (InputKey?) -> GroupingKey?) -> TabularData::RowGrouping<GroupingKey> where GroupingKey : Swift::Hashable |
| 2081 | public func grouped<InputKey, GroupingKey>(by columnID: TabularData::ColumnID<InputKey>, transform: (InputKey?) -> GroupingKey?) -> TabularData::RowGrouping<GroupingKey> where GroupingKey : Swift::Hashable |
| 2082 | public func grouped(by columnName: Swift::String, timeUnit: Foundation::Calendar.Foundation::Component) -> TabularData::RowGrouping<Swift::Int> |
| 2083 | public func grouped(by columnID: TabularData::ColumnID<Foundation::Date>, timeUnit: Foundation::Calendar.Foundation::Component) -> TabularData::RowGrouping<Swift::Int> |
| 2084 | public func grouped(by columnNames: Swift::String...) -> some TabularData::RowGroupingProtocol |
| 2085 | |
| 2086 | @_disfavoredOverload public func grouped<T>(by columnIDs: TabularData::ColumnID<T>...) -> some TabularData::RowGroupingProtocol where T : Swift::Hashable |
| 2087 | |
| 2088 | public func grouped<T0, T1>(by column0: TabularData::ColumnID<T0>, _ column1: TabularData::ColumnID<T1>) -> some TabularData::RowGroupingProtocol where T0 : Swift::Hashable, T1 : Swift::Hashable |
| 2089 | |
| 2090 | public func grouped<T0, T1, T2>(by column0: TabularData::ColumnID<T0>, _ column1: TabularData::ColumnID<T1>, _ column2: TabularData::ColumnID<T2>) -> some TabularData::RowGroupingProtocol where T0 : Swift::Hashable, T1 : Swift::Hashable, T2 : Swift::Hashable |
| 2091 | |
| 2092 | } |
| 2093 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2094 | extension TabularData::RowGroupingProtocol { |
| 2095 | public func summary(of columnNames: Swift::String...) -> any TabularData::GroupSummaries |
| 2096 | } |
| 2097 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2098 | extension TabularData::RowGrouping { |
| 2099 | public func summary() -> any TabularData::GroupSummaries |
| 2100 | public func summary(of columnNames: [Swift::String]) -> any TabularData::GroupSummaries |
| 2101 | } |
| 2102 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2103 | @usableFromInline |
| 2104 | final internal class PackedOptionalsStorage<Element> { |
| 2105 | @usableFromInline |
| 2106 | final internal var buffer: TabularData::PackedOptionalsBuffer<Element> |
| 2107 | @inlinable final internal var capacity: Swift::Int { |
| 2108 | get { buffer.capacity } |
| 2109 | } |
| 2110 | @inlinable final internal var count: Swift::Int { |
| 2111 | get { buffer.count } |
| 2112 | } |
| 2113 | @inlinable final internal var nilCount: Swift::Int { |
| 2114 | get { buffer.nilCount } |
| 2115 | } |
| 2116 | @usableFromInline |
| 2117 | internal init(capacity: Swift::Int) |
| 2118 | @usableFromInline |
| 2119 | internal init(copying other: TabularData::PackedOptionalsStorage<Element>, capacity: Swift::Int) |
| 2120 | @objc deinit |
| 2121 | @inlinable final internal func grow(minimumCapacity: Swift::Int, growForAppend: Swift::Bool) { |
| 2122 | let newCapacity = growCapacity(minimumCapacity: minimumCapacity, growForAppend: growForAppend) |
| 2123 | let newBuffer = PackedOptionalsBuffer<Element>(moving: buffer, capacity: newCapacity) |
| 2124 | buffer.deallocate() |
| 2125 | buffer = newBuffer |
| 2126 | } |
| 2127 | @inlinable final internal func createNew(minimumCapacity: Swift::Int, growForAppend: Swift::Bool) -> TabularData::PackedOptionalsStorage<Element> { |
| 2128 | let newCapacity = growCapacity(minimumCapacity: minimumCapacity, growForAppend: growForAppend) |
| 2129 | assert(newCapacity >= count) |
| 2130 | return PackedOptionalsStorage(copying: self, capacity: newCapacity) |
| 2131 | } |
| 2132 | @usableFromInline |
| 2133 | final internal func growCapacity(minimumCapacity: Swift::Int, growForAppend: Swift::Bool) -> Swift::Int |
| 2134 | @inlinable final internal func resize(by change: Swift::Int) { |
| 2135 | buffer.resize(by: change) |
| 2136 | } |
| 2137 | @inlinable final internal func append(_ element: Element?) { |
| 2138 | buffer.append(element) |
| 2139 | } |
| 2140 | } |
| 2141 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2142 | extension TabularData::Column : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 2143 | public var description: Swift::String { |
| 2144 | get |
| 2145 | } |
| 2146 | public var debugDescription: Swift::String { |
| 2147 | get |
| 2148 | } |
| 2149 | public var customMirror: Swift::Mirror { |
| 2150 | get |
| 2151 | } |
| 2152 | } |
| 2153 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2154 | extension TabularData::ColumnSlice : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 2155 | public var description: Swift::String { |
| 2156 | get |
| 2157 | } |
| 2158 | public var debugDescription: Swift::String { |
| 2159 | get |
| 2160 | } |
| 2161 | public var customMirror: Swift::Mirror { |
| 2162 | get |
| 2163 | } |
| 2164 | } |
| 2165 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2166 | extension TabularData::DiscontiguousColumnSlice : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 2167 | public var description: Swift::String { |
| 2168 | get |
| 2169 | } |
| 2170 | public var debugDescription: Swift::String { |
| 2171 | get |
| 2172 | } |
| 2173 | public var customMirror: Swift::Mirror { |
| 2174 | get |
| 2175 | } |
| 2176 | } |
| 2177 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2178 | extension TabularData::OptionalColumnProtocol { |
| 2179 | public func description(options: TabularData::FormattingOptions) -> Swift::String |
| 2180 | } |
| 2181 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2182 | extension TabularData::FilledColumn : Swift::CustomStringConvertible { |
| 2183 | public var description: Swift::String { |
| 2184 | get |
| 2185 | } |
| 2186 | public var debugDescription: Swift::String { |
| 2187 | get |
| 2188 | } |
| 2189 | public func description(options: TabularData::FormattingOptions) -> Swift::String |
| 2190 | } |
| 2191 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2192 | public enum JoinKind : Swift::Sendable { |
| 2193 | case inner |
| 2194 | case left |
| 2195 | case right |
| 2196 | case full |
| 2197 | public static func == (a: TabularData::JoinKind, b: TabularData::JoinKind) -> Swift::Bool |
| 2198 | public func hash(into hasher: inout Swift::Hasher) |
| 2199 | public var hashValue: Swift::Int { |
| 2200 | get |
| 2201 | } |
| 2202 | } |
| 2203 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2204 | extension TabularData::DataFrameProtocol { |
| 2205 | public func joined<R>(_ other: R, on columnName: Swift::String, kind: TabularData::JoinKind = .inner) -> TabularData::DataFrame where R : TabularData::DataFrameProtocol |
| 2206 | public func joined<R, T>(_ other: R, on columnID: TabularData::ColumnID<T>, kind: TabularData::JoinKind = .inner) -> TabularData::DataFrame where R : TabularData::DataFrameProtocol, T : Swift::Hashable |
| 2207 | public func joined<R>(_ other: R, on columnNames: (left: Swift::String, right: Swift::String), kind: TabularData::JoinKind = .inner) -> TabularData::DataFrame where R : TabularData::DataFrameProtocol |
| 2208 | public func joined<R, T>(_ other: R, on columnIDs: (left: TabularData::ColumnID<T>, right: TabularData::ColumnID<T>), kind: TabularData::JoinKind = .inner) -> TabularData::DataFrame where R : TabularData::DataFrameProtocol, T : Swift::Hashable |
| 2209 | } |
| 2210 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2211 | public struct AnyColumn : TabularData::AnyColumnProtocol, Swift::Hashable { |
| 2212 | public var name: Swift::String { |
| 2213 | get |
| 2214 | set |
| 2215 | } |
| 2216 | public var wrappedElementType: any Any.Type { |
| 2217 | get |
| 2218 | } |
| 2219 | public var prototype: any TabularData::AnyColumnPrototype { |
| 2220 | get |
| 2221 | } |
| 2222 | public var count: Swift::Int { |
| 2223 | get |
| 2224 | } |
| 2225 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2226 | public var missingCount: Swift::Int { |
| 2227 | get |
| 2228 | } |
| 2229 | public func assumingType<T>(_ type: T.Type) -> TabularData::Column<T> |
| 2230 | public func isNil(at index: Swift::Int) -> Swift::Bool |
| 2231 | public mutating func append(_ element: Any?) |
| 2232 | public mutating func append(contentsOf other: TabularData::AnyColumn) |
| 2233 | public mutating func append(contentsOf other: TabularData::AnyColumnSlice) |
| 2234 | public mutating func remove(at index: Swift::Int) |
| 2235 | public var hashValue: Swift::Int { |
| 2236 | get |
| 2237 | } |
| 2238 | } |
| 2239 | @available(*, unavailable) |
| 2240 | extension TabularData::AnyColumn : Swift::Sendable { |
| 2241 | } |
| 2242 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2243 | extension TabularData::AnyColumn : Swift::RandomAccessCollection, Swift::MutableCollection { |
| 2244 | public var startIndex: Swift::Int { |
| 2245 | get |
| 2246 | } |
| 2247 | public var endIndex: Swift::Int { |
| 2248 | get |
| 2249 | } |
| 2250 | public func index(after i: Swift::Int) -> Swift::Int |
| 2251 | public func index(before i: Swift::Int) -> Swift::Int |
| 2252 | public subscript(position: Swift::Int) -> Any? { |
| 2253 | get |
| 2254 | set |
| 2255 | } |
| 2256 | public subscript(range: Swift::Range<Swift::Int>) -> TabularData::AnyColumnSlice { |
| 2257 | get |
| 2258 | set |
| 2259 | } |
| 2260 | public subscript<C>(mask: C) -> TabularData::AnyColumnSlice where C : Swift::Collection, C.Element == Swift::Bool { |
| 2261 | get |
| 2262 | } |
| 2263 | public static func == (lhs: TabularData::AnyColumn, rhs: TabularData::AnyColumn) -> Swift::Bool |
| 2264 | public func hash(into hasher: inout Swift::Hasher) |
| 2265 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2266 | public typealias Element = Any? |
| 2267 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2268 | public typealias Index = Swift::Int |
| 2269 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2270 | public typealias Indices = Swift::Range<Swift::Int> |
| 2271 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2272 | public typealias Iterator = Swift::IndexingIterator<TabularData::AnyColumn> |
| 2273 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2274 | public typealias SubSequence = TabularData::AnyColumnSlice |
| 2275 | } |
| 2276 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2277 | extension TabularData::AnyColumn : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomReflectable { |
| 2278 | public var description: Swift::String { |
| 2279 | get |
| 2280 | } |
| 2281 | public var debugDescription: Swift::String { |
| 2282 | get |
| 2283 | } |
| 2284 | public var customMirror: Swift::Mirror { |
| 2285 | get |
| 2286 | } |
| 2287 | } |
| 2288 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2289 | extension TabularData::AnyColumn { |
| 2290 | public func distinct() -> TabularData::AnyColumnSlice |
| 2291 | } |
| 2292 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2293 | extension TabularData::Column where WrappedElement : Swift::BinaryFloatingPoint { |
| 2294 | public func numericSummary() -> TabularData::NumericSummary<WrappedElement> |
| 2295 | } |
| 2296 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2297 | extension TabularData::ColumnSlice where WrappedElement : Swift::BinaryFloatingPoint { |
| 2298 | public func numericSummary() -> TabularData::NumericSummary<WrappedElement> |
| 2299 | } |
| 2300 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2301 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::BinaryFloatingPoint { |
| 2302 | public func numericSummary() -> TabularData::NumericSummary<WrappedElement> |
| 2303 | } |
| 2304 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2305 | extension TabularData::FilledColumn where Base.WrappedElement : Swift::BinaryFloatingPoint { |
| 2306 | public func numericSummary() -> TabularData::NumericSummary<Base.WrappedElement> |
| 2307 | } |
| 2308 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2309 | extension TabularData::FilledColumn where Base.WrappedElement : Swift::BinaryInteger { |
| 2310 | public func numericSummary() -> TabularData::NumericSummary<Swift::Double> |
| 2311 | } |
| 2312 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2313 | extension TabularData::Column where WrappedElement : Swift::BinaryInteger { |
| 2314 | public func numericSummary() -> TabularData::NumericSummary<Swift::Double> |
| 2315 | } |
| 2316 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2317 | extension TabularData::ColumnSlice where WrappedElement : Swift::BinaryInteger { |
| 2318 | public func numericSummary() -> TabularData::NumericSummary<Swift::Double> |
| 2319 | } |
| 2320 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2321 | extension TabularData::DiscontiguousColumnSlice where WrappedElement : Swift::BinaryInteger { |
| 2322 | public func numericSummary() -> TabularData::NumericSummary<Swift::Double> |
| 2323 | } |
| 2324 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2325 | public struct FormattingOptions : Swift::Sendable { |
| 2326 | public var maximumLineWidth: Swift::Int |
| 2327 | public var maximumCellWidth: Swift::Int |
| 2328 | public var maximumRowCount: Swift::Int |
| 2329 | public var includesColumnTypes: Swift::Bool |
| 2330 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 2331 | public var includesRowIndices: Swift::Bool |
| 2332 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *) |
| 2333 | public var includesRowAndColumnCounts: Swift::Bool |
| 2334 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2335 | public var floatingPointFormatStyle: Foundation::FloatingPointFormatStyle<Swift::Double> { |
| 2336 | get |
| 2337 | set |
| 2338 | } |
| 2339 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2340 | public var integerFormatStyle: Foundation::IntegerFormatStyle<Swift::Int> { |
| 2341 | get |
| 2342 | set |
| 2343 | } |
| 2344 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2345 | public var dateFormatStyle: Foundation::Date.Foundation::FormatStyle { |
| 2346 | get |
| 2347 | set |
| 2348 | } |
| 2349 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2350 | public var locale: Foundation::Locale { |
| 2351 | get |
| 2352 | set |
| 2353 | } |
| 2354 | public init() |
| 2355 | @available(macOS 12.3, iOS 15.4, tvOS 15.4, watchOS 8.5, *) |
| 2356 | public init(locale: Foundation::Locale) |
| 2357 | public init(maximumLineWidth: Swift::Int, maximumCellWidth: Swift::Int = 50, maximumRowCount: Swift::Int = 20, includesColumnTypes: Swift::Bool = true) |
| 2358 | } |
| 2359 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2360 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::AdditiveArithmetic { |
| 2361 | public static func + (lhs: Self, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2362 | public static func - (lhs: Self, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2363 | } |
| 2364 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2365 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::Numeric { |
| 2366 | public static func * (lhs: Self, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2367 | } |
| 2368 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2369 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::BinaryInteger { |
| 2370 | public static func / (lhs: Self, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2371 | } |
| 2372 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2373 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::FloatingPoint { |
| 2374 | public static func / (lhs: Self, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2375 | } |
| 2376 | extension TabularData::OptionalColumnProtocol { |
| 2377 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2378 | public static func + (lhs: Self, rhs: Self.WrappedElement) -> TabularData::Column<Self.WrappedElement> where Self.WrappedElement : Swift::AdditiveArithmetic |
| 2379 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2380 | public static func + (lhs: Self.WrappedElement, rhs: Self) -> TabularData::Column<Self.WrappedElement> where Self.WrappedElement : Swift::AdditiveArithmetic |
| 2381 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2382 | public static func - (lhs: Self, rhs: Self.WrappedElement) -> TabularData::Column<Self.WrappedElement> where Self.WrappedElement : Swift::AdditiveArithmetic |
| 2383 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2384 | public static func - (lhs: Self.WrappedElement, rhs: Self) -> TabularData::Column<Self.WrappedElement> where Self.WrappedElement : Swift::AdditiveArithmetic |
| 2385 | } |
| 2386 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2387 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::Numeric { |
| 2388 | public static func * (lhs: Self, rhs: Self.WrappedElement) -> TabularData::Column<Self.WrappedElement> |
| 2389 | public static func * (lhs: Self.WrappedElement, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2390 | } |
| 2391 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2392 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::BinaryInteger { |
| 2393 | public static func / (lhs: Self, rhs: Self.WrappedElement) -> TabularData::Column<Self.WrappedElement> |
| 2394 | public static func / (lhs: Self.WrappedElement, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2395 | } |
| 2396 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2397 | extension TabularData::OptionalColumnProtocol where Self.WrappedElement : Swift::FloatingPoint { |
| 2398 | public static func / (lhs: Self, rhs: Self.WrappedElement) -> TabularData::Column<Self.WrappedElement> |
| 2399 | public static func / (lhs: Self.WrappedElement, rhs: Self) -> TabularData::Column<Self.WrappedElement> |
| 2400 | } |
| 2401 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2402 | extension TabularData::JSONType : Swift::Equatable {} |
| 2403 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2404 | extension TabularData::JSONType : Swift::Hashable {} |
| 2405 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2406 | extension TabularData::Order : Swift::Equatable {} |
| 2407 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2408 | extension TabularData::Order : Swift::Hashable {} |
| 2409 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2410 | extension TabularData::CSVType : Swift::Equatable {} |
| 2411 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2412 | extension TabularData::CSVType : Swift::Hashable {} |
| 2413 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2414 | extension TabularData::JoinKind : Swift::Equatable {} |
| 2415 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) |
| 2416 | extension TabularData::JoinKind : Swift::Hashable {} |