Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.
Functions and constants
init · iOS 15.0+init
TypeScriptstatic init(shape: Array<number>, strides: Array<number>, contents: Array<unknown>): ShapedData<unknown>
Swift declarationinit(shape: [Int], strides: [Int], contents: [Element])
Creates a multidimensional shaped array from a one-dimensional array.
- Parameters:
- shape: An integer array that stores the size of each dimension in the corresponding element.
- strides: An integer array that stores the number of memory locations
that span the length of each dimension in the corresponding element.
- contents: A linear array that stores the elements of the multidimensional array.
get · iOS 15.0+shape
TypeScriptget shape(): Array<number>
Swift declarationlet shape: [Int]
An integer array that stores the size of each dimension in the corresponding element.
get · iOS 15.0+strides
TypeScriptget strides(): Array<number>
Swift declarationlet strides: [Int]
An integer array that stores the number of memory locations
that span the length of each dimension in the corresponding element.
get · iOS 15.0+contents
TypeScriptget contents(): Array<unknown>
Swift declarationlet contents: [Element]
A linear array that stores the elements of the multidimensional array.
method · iOS 15.0+eraseToAnyColumn
TypeScripteraseToAnyColumn(): AnyColumnSlice
Swift declarationfunc eraseToAnyColumn() -> AnyColumnSlice
Returns a type-erased column slice.
get · iOS 15.0+startIndex
TypeScriptget startIndex(): number
Swift declarationvar startIndex: Int { get }
The index of the initial element in the column slice.
get · iOS 15.0+description
TypeScriptget description(): string
Swift declarationvar description: String { get }
A text representation of the column slice.
get · iOS 15.0+customMirror
TypeScriptget customMirror(): SDKHandle
Swift declarationvar customMirror: Mirror { get }
A mirror that reflects the column slice.
get · iOS 15.0+missingCount
TypeScriptget missingCount(): number
Swift declarationvar missingCount: Int { get }
The number of missing elements in the column slice.
get · iOS 15.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String { get }
A text representation of the column slice suitable for debugging.
method · iOS 15.0+map
TypeScriptmap(transform: ((arg0: (unknown) | null) => (unknown) | null)): Column<unknown>
Swift declarationfunc map<T>(_ transform: (ColumnSlice<WrappedElement>.Element) throws -> T?) rethrows -> Column<T>
Creates a new column by applying a transformation to every element.
- Parameter transform: The transformation closure.
get · iOS 15.0+name
TypeScriptget name(): string
Swift declarationvar name: String { get set }
The name of the slice's parent column.
set · iOS 15.0+name
TypeScriptset name(value: string)
Swift declarationvar name: String { get set }
The name of the slice's parent column.
get · iOS 15.0+count
TypeScriptget count(): number
Swift declarationvar count: Int { get }
The number of elements in the column slice.
method · iOS 15.0+index
TypeScriptindexAfter(i: number): number
Swift declarationfunc index(after i: Int) -> Int
Returns the index immediately after an element index.
- Parameter i: A valid index to an element in the column slice.
method · iOS 15.0+index
TypeScriptindexBefore(i: number): number
Swift declarationfunc index(before i: Int) -> Int
Returns the index immediately before an element index.
- Parameter i: A valid index to an element in the column slice.
method · iOS 15.0+isNil
TypeScriptisNil(index: number): boolean
Swift declarationfunc isNil(at index: Int) -> Bool
Returns a Boolean that indicates whether the element at an index is missing.
- Parameter index: An element index.
method · iOS 15.0+filter
TypeScriptfilter(isIncluded: ((arg0: (unknown) | null) => boolean)): DiscontiguousColumnSlice<unknown>
Swift declarationfunc filter(_ isIncluded: (ColumnSlice<WrappedElement>.Element) throws -> Bool) rethrows -> DiscontiguousColumnSlice<WrappedElement>
Generates a slice that contains the elements that satisfy the predicate.
- Parameter isIncluded: The filter predicate. Elements for which the predicate returns `true` are included.
get · iOS 15.0+endIndex
TypeScriptget endIndex(): number
Swift declarationvar endIndex: Int { get }
The index of the final element in the column slice.
get · iOS 15.0+prototype
TypeScriptget prototype(): SDKHandle
Swift declarationvar prototype: any AnyColumnPrototype { get }
A prototype that creates type-erased columns with the same underlying type as the column slice.
Use a type-erased column prototype to create new columns of the same type as the slice's parent column
without explicitly knowing what type it is.
method · iOS 15.0+numericSummary
TypeScriptnumericSummary(): NumericSummary<number>
Swift declarationfunc numericSummary() -> NumericSummary<WrappedElement>
Generates a numeric summary of the floating-point column slice's elements.
method · iOS 15.0+standardDeviation
TypeScriptstandardDeviationDeltaDegreesOfFreedom(deltaDegreesOfFreedom?: number): (number) | null
Swift declarationfunc standardDeviation(deltaDegreesOfFreedom: Int = 1) -> ColumnSlice<WrappedElement>.Element
Returns the standard deviation of the floating-point column slice's elements, ignoring missing elements.
- Parameter deltaDegreesOfFreedom: A nonnegative integer.
The method calculates the standard deviation's divisor by subtracting this parameter from the number of
non-`nil` elements (`n - deltaDegreesOfFreedom` where `n` is the number of non-`nil` elements).
- Returns: The standard deviation; otherwise, `nil` if there are fewer than
`deltaDegreesOfFreedom + 1` non-`nil` items in the column.
method · iOS 15.0+mean
TypeScriptmean(): (number) | null
Swift declarationfunc mean() -> ColumnSlice<WrappedElement>.Element
Returns the mean average of the floating-point slice's elements, ignoring missing elements.
method · iOS 15.0+summary
TypeScriptsummary(): CategoricalSummary<number>
Swift declarationfunc summary() -> CategoricalSummary<WrappedElement>
Generates a categorical summary of the column slice's elements.
method · iOS 15.0+distinct
TypeScriptdistinct(): DiscontiguousColumnSlice<number>
Swift declarationfunc distinct() -> DiscontiguousColumnSlice<WrappedElement>
Generates a discontiguous slice that contains unique elements.
The method only adds the first of multiple elements with the same value
--- the element with the smallest index ---
to the slice.
- Returns: A discontiguous column slice.
method · iOS 15.0+numericSummary
TypeScriptnumericSummary947(): NumericSummary<number>
Swift declarationfunc numericSummary() -> NumericSummary<Double>
Generates a numeric summary of the integer column slice's elements.
method · iOS 15.0+standardDeviation
TypeScriptstandardDeviationDeltaDegreesOfFreedom66200(deltaDegreesOfFreedom?: number): (number) | null
Swift declarationfunc standardDeviation(deltaDegreesOfFreedom: Int = 1) -> Double?
Returns the standard deviation of the integer column slice's elements, ignoring missing elements.
- Parameter deltaDegreesOfFreedom: A nonnegative integer.
The method calculates the standard deviation's divisor by subtracting this parameter from the number of
non-`nil` elements (`n - deltaDegreesOfFreedom` where `n` is the number of non-`nil` elements).
- Returns: The standard deviation; otherwise, `nil` if there are fewer than
`deltaDegreesOfFreedom + 1` non-`nil` items in the column.
method · iOS 15.0+mean
TypeScriptmean65126(): (number) | null
Swift declarationfunc mean() -> Double?
Returns the mean average of the integer slice's elements, ignoring missing elements.
method · iOS 15.0+sum
TypeScriptsum(): number
Swift declarationfunc sum() -> WrappedElement
Returns the sum of the column slice's elements, ignoring missing elements.
init · iOS 15.0+init
TypeScriptstatic init(column: Column<unknown>): ColumnSlice<unknown>
Swift declarationinit(_ column: Column<WrappedElement>)
Creates a slice with the contents of a column.
- Parameter column: A column.
subscript · iOS 15.0+subscript
TypeScriptsubscript(range: SDKHandle): ColumnSlice<unknown>
Swift declarationsubscript(range: Range<Int>) -> ColumnSlice<WrappedElement> { get set }
Accesses a contiguous range of elements.
- Parameter range: A range of valid indices in the column slice.
subscript · iOS 15.0+subscript
TypeScriptsubscript44104(position: number): (unknown) | null
Swift declarationsubscript(position: Int) -> ColumnSlice<WrappedElement>.Element { get set }
Accesses an element at an index.
- Parameter position: A valid index to an element in the column slice.
get · iOS 15.0+startIndex
TypeScriptget startIndex(): number
Swift declarationvar startIndex: Int { get }
The index of the initial group in the row grouping.
get · iOS 15.0+description
TypeScriptget description(): string
Swift declarationvar description: String { get }
A text representation of the row grouping.
method · iOS 15.0+randomSplit
TypeScriptrandomSplit(proportion: number, seed?: (number) | null): [RowGrouping<number>, RowGrouping<number>]
Swift declarationfunc randomSplit(by proportion: Double, seed: Int? = nil) -> (RowGrouping<GroupingKey>, RowGrouping<GroupingKey>)
Generates two row groupings by randomly splitting the original with a proportion and a seed number.
- Parameters:
- proportion: A proportion in the range `[0.0, 1.0]`.
- seed: A seed number for a random-number generator.
- Returns: A tuple of two row groupings.
get · iOS 15.0+count
TypeScriptget count(): number
Swift declarationvar count: Int { get }
The number of groups in the row grouping.
method · iOS 15.0+index
TypeScriptindexAfter(i: number): number
Swift declarationfunc index(after i: Int) -> Int
Returns the index immediately after an element index.
- Parameter i: A valid index to an element in the column.
method · iOS 15.0+index
TypeScriptindexBefore(i: number): number
Swift declarationfunc index(before i: Int) -> Int
Returns the index immediately before an element index.
- Parameter i: A valid index to an element in the column.
method · iOS 15.0+counts
TypeScriptcounts(order?: (Order) | null): DataFrame
Swift declarationfunc counts(order: Order? = nil) -> DataFrame
Generates a data frame with two columns, one that has a row for each group key and another for the number of
rows in the group.
- Parameter order: A sorting order the method uses to sort the data frame by its count column.
The name of the data frame's column that stores the number of rows in each group is *count*.
method · iOS 15.4+filter
TypeScriptfilter(isIncluded: ((arg0: DataFrame_Slice) => boolean)): RowGrouping<number>
Swift declarationfunc filter(_ isIncluded: (DataFrame.Slice) throws -> Bool) rethrows -> RowGrouping<GroupingKey>
Returns a row grouping containing only the groups that satisfy a predicate.
- Parameter isIncluded: A predicate closure that takes a group and returns a Boolean that indicates whether
the group is included.
- Returns: A data frame slice that contains the rows that satisfy the predicate.
method · iOS 15.0+summary
TypeScriptsummaryOf(columnNames: Array<string>): SDKHandle
Swift declarationfunc summary(of columnNames: [String]) -> any GroupSummaries
Generates a group summaries instance for the columns you select by name.
- Parameter columnNames: An array of column names.
method · iOS 15.0+summary
TypeScriptsummary(): SDKHandle
Swift declarationfunc summary() -> any GroupSummaries
Generates a group summaries instance for the columns of the row grouping.
get · iOS 15.0+endIndex
TypeScriptget endIndex(): number
Swift declarationvar endIndex: Int { get }
The index of the final group in the row grouping.
method · iOS 15.0+mapGroups
TypeScriptmapGroups(transform: ((arg0: DataFrame_Slice) => DataFrame)): RowGrouping<number>
Swift declarationfunc mapGroups(_ transform: (DataFrame.Slice) throws -> DataFrame) rethrows -> RowGrouping<GroupingKey>
Generates a row grouping that applies a transformation closure to each group in the original.
- Parameter transform: A closure that generates a data frame from a data frame slice that represents a group.
method · iOS 15.0+ungrouped
TypeScriptungrouped(): DataFrame
Swift declarationfunc ungrouped() -> DataFrame
Generates a data frame that contains all the rows from each group in the row grouping.
The method discards any column with the same name as the row grouping itself.
subscript · iOS 15.0+subscript
TypeScriptsubscript(position: number): { "key": (number) | null; "group": DataFrame_Slice }
Swift declarationsubscript(position: Int) -> (key: GroupingKey?, group: DataFrame.Slice) { get }
Retrieves a group at an index.
- Parameter position: A valid index to a group in the row grouping.
method · iOS 15.0+description
TypeScriptdescriptionOptions(options: FormattingOptions): string
Swift declarationfunc description(options: FormattingOptions) -> String
Generates a string description of the filled column.
- Parameter options: The formatting options.
get · iOS 15.0+description
TypeScriptget description(): string
Swift declarationvar description: String { get }
A mirror that reflects the filled column.
get · iOS 15.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String { get }
A text representation of the filled column suitable for debugging.
get · iOS 15.0+name
TypeScriptget name(): string
Swift declarationvar name: String { get set }
The name of the column.
set · iOS 15.0+name
TypeScriptset name(value: string)
Swift declarationvar name: String { get set }
The name of the column.
get · iOS 15.0+totalCount
TypeScriptget totalCount(): number
Swift declarationvar totalCount: Int { get }
The total number of elements in the column.
get · iOS 15.0+firstQuartile
TypeScriptget firstQuartile(): number
Swift declarationvar firstQuartile: Element
The value that's above 25% of the non-missing elements' values.
set · iOS 15.0+firstQuartile
TypeScriptset firstQuartile(value: number)
Swift declarationvar firstQuartile: Element
The value that's above 25% of the non-missing elements' values.
get · iOS 15.0+thirdQuartile
TypeScriptget thirdQuartile(): number
Swift declarationvar thirdQuartile: Element
The value that's above 75% of the non-missing elements' values.
set · iOS 15.0+thirdQuartile
TypeScriptset thirdQuartile(value: number)
Swift declarationvar thirdQuartile: Element
The value that's above 75% of the non-missing elements' values.
get · iOS 15.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String { get }
A text representation of the summary's statistics suitable for debugging.
get · iOS 15.0+standardDeviation
TypeScriptget standardDeviation(): number
Swift declarationvar standardDeviation: Element
The standard deviation of a column's values that excludes missing elements.
set · iOS 15.0+standardDeviation
TypeScriptset standardDeviation(value: number)
Swift declarationvar standardDeviation: Element
The standard deviation of a column's values that excludes missing elements.
get · iOS 15.0+max
TypeScriptget max(): number
Swift declarationvar max: Element
The largest value, excluding missing elements.
set · iOS 15.0+max
TypeScriptset max(value: number)
Swift declarationvar max: Element
The largest value, excluding missing elements.
get · iOS 15.0+min
TypeScriptget min(): number
Swift declarationvar min: Element
The smallest value, excluding missing elements.
set · iOS 15.0+min
TypeScriptset min(value: number)
Swift declarationvar min: Element
The smallest value, excluding missing elements.
get · iOS 15.0+mean
TypeScriptget mean(): number
Swift declarationvar mean: Element
The arithmetic mean of a column's values that excludes missing elements.
set · iOS 15.0+mean
TypeScriptset mean(value: number)
Swift declarationvar mean: Element
The arithmetic mean of a column's values that excludes missing elements.
get · iOS 15.0+median
TypeScriptget median(): number
Swift declarationvar median: Element
The midpoint value that's above half of the non-missing elements' values and below the other half's values.
set · iOS 15.0+median
TypeScriptset median(value: number)
Swift declarationvar median: Element
The midpoint value that's above half of the non-missing elements' values and below the other half's values.
get · iOS 15.0+noneCount
TypeScriptget noneCount(): number
Swift declarationvar noneCount: Int
The number of missing elements in the column.
set · iOS 15.0+noneCount
TypeScriptset noneCount(value: number)
Swift declarationvar noneCount: Int
The number of missing elements in the column.
init · iOS 15.0+init
TypeScriptstatic initSomeCountNoneCountMeanStandardDeviationMinMaxMedianFirstQuartileThirdQuartile(someCount: number, noneCount: number, mean: number, standardDeviation: number, min: number, max: number, median: number, firstQuartile: number, thirdQuartile: number): NumericSummary<number>
Swift declarationinit(someCount: Int, noneCount: Int, mean: Element, standardDeviation: Element, min: Element, max: Element, median: Element, firstQuartile: Element, thirdQuartile: Element)
Creates an empty numeric summary.
- Parameters:
- someCount: The number of elements in column, excluding missing elements.
- noneCount: The number of missing elements in the column.
- mean: The arithmetic mean of a column's values, excluding missing elements.
- standardDeviation: The standard deviation of a column's values, excluding missing elements.
- min: The smallest value, excluding missing elements.
- max: The largest value, excluding missing elements.
- median: The midpoint value that bisects the values of the non-missing elements.
- firstQuartile: The value that's above 25% of the values non-missing elements' values.
- thirdQuartile: The value that's above 75% of the non-missing elements' values.
get · iOS 15.0+someCount
TypeScriptget someCount(): number
Swift declarationvar someCount: Int
The number of non-missing elements in the column.
set · iOS 15.0+someCount
TypeScriptset someCount(value: number)
Swift declarationvar someCount: Int
The number of non-missing elements in the column.
init · iOS 15.0+init
TypeScriptstatic init(): NumericSummary<number>
Swift declarationinit()
Creates an empty numeric summary with default values.
get · iOS 15.0+totalCount
TypeScriptget totalCount(): number
Swift declarationvar totalCount: Int { get }
The total number of elements in the column.
get · iOS 15.0+uniqueCount
TypeScriptget uniqueCount(): number
Swift declarationvar uniqueCount: Int
The number of elements with distinct values in a column that excludes missing elements.
set · iOS 15.0+uniqueCount
TypeScriptset uniqueCount(value: number)
Swift declarationvar uniqueCount: Int
The number of elements with distinct values in a column that excludes missing elements.
get · iOS 15.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String { get }
A text representation of the summary's statistics suitable for debugging.
get · iOS 15.0+mode
TypeScriptget mode(): Array<number>
Swift declarationvar mode: [Element]
The most common values in a column, ignoring missing elements.
The summary orders the elements based on their original locations within the column.
set · iOS 15.0+mode
TypeScriptset mode(value: Array<number>)
Swift declarationvar mode: [Element]
The most common values in a column, ignoring missing elements.
The summary orders the elements based on their original locations within the column.
get · iOS 15.0+noneCount
TypeScriptget noneCount(): number
Swift declarationvar noneCount: Int
The number of missing elements in the column.
set · iOS 15.0+noneCount
TypeScriptset noneCount(value: number)
Swift declarationvar noneCount: Int
The number of missing elements in the column.
init · iOS 15.0+init
TypeScriptstatic initSomeCountNoneCountUniqueCountMode(someCount: number, noneCount: number, uniqueCount: number, mode: Array<number>): CategoricalSummary<number>
Swift declarationinit(someCount: Int, noneCount: Int, uniqueCount: Int, mode: [Element])
Creates a categorical summary.
- Parameters:
- someCount: The number of elements in a column, excluding missing elements.
- noneCount: The number of missing elements in the column.
- uniqueCount: The number of elements with distinct values in a column, ignoring missing elements.
- mode: The most common values in a column, ignoring missing elements.
get · iOS 15.0+someCount
TypeScriptget someCount(): number
Swift declarationvar someCount: Int
The number of non-missing elements in the column.
set · iOS 15.0+someCount
TypeScriptset someCount(value: number)
Swift declarationvar someCount: Int
The number of non-missing elements in the column.
init · iOS 15.0+init
TypeScriptstatic init(): CategoricalSummary<number>
Swift declarationinit()
Creates a categorical summary with default values.
method · iOS 15.0+eraseToAnyColumn
TypeScripteraseToAnyColumn(): AnyColumnSlice
Swift declarationfunc eraseToAnyColumn() -> AnyColumnSlice
Generates a type-erased copy of the column slice.
get · iOS 15.0+startIndex
TypeScriptget startIndex(): number
Swift declarationvar startIndex: Int { get }
The index of the initial element in the column slice.
get · iOS 15.0+description
TypeScriptget description(): string
Swift declarationvar description: String { get }
A text representation of the column slice.
get · iOS 15.0+customMirror
TypeScriptget customMirror(): SDKHandle
Swift declarationvar customMirror: Mirror { get }
A mirror that reflects the column slice.
get · iOS 15.0+missingCount
TypeScriptget missingCount(): number
Swift declarationvar missingCount: Int { get }
The number of missing elements in the column slice.
get · iOS 15.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String { get }
A text representation of the column slice suitable for debugging.
method · iOS 15.0+map
TypeScriptmap(transform: ((arg0: (unknown) | null) => (unknown) | null)): Column<unknown>
Swift declarationfunc map<T>(_ transform: (DiscontiguousColumnSlice<WrappedElement>.Element) throws -> T?) rethrows -> Column<T>
Creates a new column by applying a transformation to each element.
- Parameter transform: A closure that transforms the column slice's elements to another type.
get · iOS 15.0+name
TypeScriptget name(): string
Swift declarationvar name: String { get set }
The name of the slice's parent column.
set · iOS 15.0+name
TypeScriptset name(value: string)
Swift declarationvar name: String { get set }
The name of the slice's parent column.
get · iOS 15.0+count
TypeScriptget count(): number
Swift declarationvar count: Int { get }
The number of elements in the column slice.
method · iOS 15.0+index
TypeScriptindexAfter(i: number): number
Swift declarationfunc index(after i: Int) -> Int
Returns the index immediately after an element index.
- Parameter i: A valid index to an element in the column slice.
method · iOS 15.0+index
TypeScriptindexBefore(i: number): number
Swift declarationfunc index(before i: Int) -> Int
Returns the index immediately before an element index.
- Parameter i: A valid index to an element in the column slice.
method · iOS 15.0+isNil
TypeScriptisNil(index: number): boolean
Swift declarationfunc isNil(at index: Int) -> Bool
Returns a Boolean that indicates whether the element at the index is missing.
- Parameter index: An index.
init · iOS 15.0+init
TypeScriptstatic initColumnRanges(column: Column<unknown>, ranges: Array<SDKHandle>): DiscontiguousColumnSlice<unknown>
Swift declarationinit(column: Column<WrappedElement>, ranges: [Range<Int>])
Creates a slice with the contents of a column.
- Parameter column: A column.
- Parameter ranges: An array of integer ranges.
method · iOS 15.0+filter
TypeScriptfilter(isIncluded: ((arg0: (unknown) | null) => boolean)): DiscontiguousColumnSlice<unknown>
Swift declarationfunc filter(_ isIncluded: (DiscontiguousColumnSlice<WrappedElement>.Element) throws -> Bool) rethrows -> DiscontiguousColumnSlice<WrappedElement>
Generates a slice that contains the elements that satisfy the predicate.
- Parameter isIncluded: A predicate closure that returns a Boolean.
The method uses the closure to determine whether it includes an element in the slice.
get · iOS 15.0+endIndex
TypeScriptget endIndex(): number
Swift declarationvar endIndex: Int { get }
The index of the final element in the column slice.
get · iOS 15.0+prototype
TypeScriptget prototype(): SDKHandle
Swift declarationvar prototype: any AnyColumnPrototype { get }
A prototype that creates type-erased columns with the same underlying type as the column slice.
Use a type-erased column prototype to create new columns of the same type as the slice's parent column
without explicitly knowing what type it is.
method · iOS 15.0+numericSummary
TypeScriptnumericSummary(): NumericSummary<number>
Swift declarationfunc numericSummary() -> NumericSummary<WrappedElement>
Generates a numeric summary of the floating-point column slice's elements.
method · iOS 15.0+standardDeviation
TypeScriptstandardDeviationDeltaDegreesOfFreedom(deltaDegreesOfFreedom?: number): (number) | null
Swift declarationfunc standardDeviation(deltaDegreesOfFreedom: Int = 1) -> DiscontiguousColumnSlice<WrappedElement>.Element
Returns the standard deviation of the floating-point column slice's elements, ignoring missing elements.
- Parameter deltaDegreesOfFreedom: A nonnegative integer.
The method calculates the standard deviation's divisor by subtracting this parameter from the number of
non-`nil` elements (`n - deltaDegreesOfFreedom` where `n` is the number of non-`nil` elements).
- Returns: The standard deviation; otherwise, `nil` if there are fewer than
`deltaDegreesOfFreedom + 1` non-`nil` items in the column.
method · iOS 15.0+mean
TypeScriptmean(): (number) | null
Swift declarationfunc mean() -> DiscontiguousColumnSlice<WrappedElement>.Element
Returns the mean average of the floating-point slice's elements, ignoring missing elements.
method · iOS 15.0+summary
TypeScriptsummary(): CategoricalSummary<number>
Swift declarationfunc summary() -> CategoricalSummary<WrappedElement>
Generates a categorical summary of the column slice's elements.
method · iOS 15.0+distinct
TypeScriptdistinct(): DiscontiguousColumnSlice<number>
Swift declarationfunc distinct() -> DiscontiguousColumnSlice<WrappedElement>
Generates a discontiguous slice that contains unique elements.
The method only adds the first of multiple elements with the same value
--- the element with the smallest index ---
to the slice.
- Returns: A discontiguous column slice.
method · iOS 15.0+numericSummary
TypeScriptnumericSummary56122(): NumericSummary<number>
Swift declarationfunc numericSummary() -> NumericSummary<Double>
Generates a numeric summary of the integer column slice's elements.
method · iOS 15.0+standardDeviation
TypeScriptstandardDeviationDeltaDegreesOfFreedom29806(deltaDegreesOfFreedom?: number): (number) | null
Swift declarationfunc standardDeviation(deltaDegreesOfFreedom: Int = 1) -> Double?
Returns the standard deviation of the integer column slice's elements, ignoring missing elements.
- Parameter deltaDegreesOfFreedom: A nonnegative integer.
The method calculates the standard deviation's divisor by subtracting this parameter from the number of
non-`nil` elements (`n - deltaDegreesOfFreedom` where `n` is the number of non-`nil` elements).
- Returns: The standard deviation; otherwise, `nil` if there are fewer than
`deltaDegreesOfFreedom + 1` non-`nil` items in the column.
method · iOS 15.0+mean
TypeScriptmean60696(): (number) | null
Swift declarationfunc mean() -> Double?
Returns the mean average of the integer slice's elements, ignoring missing elements.
method · iOS 15.0+sum
TypeScriptsum(): number
Swift declarationfunc sum() -> WrappedElement
Returns the sum of the column slice's elements, ignoring missing elements.
init · iOS 15.0+init
TypeScriptstatic init(column: Column<unknown>): DiscontiguousColumnSlice<unknown>
Swift declarationinit(_ column: Column<WrappedElement>)
Creates a slice with the contents of a column.
- Parameter column: A column.
subscript · iOS 15.0+subscript
TypeScriptsubscript(range: SDKHandle): DiscontiguousColumnSlice<unknown>
Swift declarationsubscript(range: Range<Int>) -> DiscontiguousColumnSlice<WrappedElement> { get set }
Accesses a contiguous range of elements.
- Parameter range: A range of valid indices in the column slice.
subscript · iOS 15.0+subscript
TypeScriptsubscript93698(range: SDKHandle): DiscontiguousColumnSlice<unknown>
Swift declarationsubscript<R>(range: R) -> DiscontiguousColumnSlice<WrappedElement> where R : RangeExpression, R.Bound == Int { get set }
Accesses a contiguous range of elements with a range expression.
- Parameter range: A range expression of valid indices in the column slice.
subscript · iOS 15.0+subscript
TypeScriptsubscript82204(range: SDKHandle): DiscontiguousColumnSlice<unknown>
Swift declarationsubscript(range: UnboundedRange) -> DiscontiguousColumnSlice<WrappedElement> { get set }
Accesses a contiguous range of elements with an unbounded range.
- Parameter range: An unbounded range of valid indices in the column slice.
subscript · iOS 15.0+subscript
TypeScriptsubscript57566(position: number): (unknown) | null
Swift declarationsubscript(position: Int) -> DiscontiguousColumnSlice<WrappedElement>.Element { get set }
Accesses an element at an index.
- Parameter position: A valid index to an element in the column slice.
method · iOS 15.0+eraseToAnyColumn
TypeScripteraseToAnyColumn(): AnyColumn
Swift declarationfunc eraseToAnyColumn() -> AnyColumn
Generates a type-erased copy of the column.
get · iOS 15.0+startIndex
TypeScriptget startIndex(): number
Swift declarationvar startIndex: Int { get }
The index of the initial element in the column.
get · iOS 15.0+description
TypeScriptget description(): string
Swift declarationvar description: String { get }
A text representation of the column.
get · iOS 15.0+customMirror
TypeScriptget customMirror(): SDKHandle
Swift declarationvar customMirror: Mirror { get }
A mirror that reflects the column.
get · iOS 15.0+missingCount
TypeScriptget missingCount(): number
Swift declarationvar missingCount: Int { get }
The number of missing elements in the column.
get · iOS 15.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String { get }
A text representation of the column suitable for debugging.
method · iOS 16.0+withContiguousStorageIfAvailable
TypeScriptwithContiguousStorageIfAvailable(body: ((arg0: unknown[]) => unknown)): (unknown) | null
Swift declarationfunc withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<WrappedElement>) throws -> R) rethrows -> R?
Call `body(buffer)`, where `buffer` provides access to the non-optional contiguous storage of the entire
column. If the column contains missing values, `body` is not called and `nil` is returned.
The optimizer can often eliminate bounds- and uniqueness-checking within an algorithm. When that fails,
however, invoking the same algorithm on `body`'s argument may let you trade safety for speed.
- Parameters:
- body: a closure to be executed using the elements of this collection.
- buffer: a buffer to the contiguous storage of this collection.
- Returns: the value returned by `body`, or `nil`.
method · iOS 16.0+withContiguousMutableStorageIfAvailable
TypeScriptwithContiguousMutableStorageIfAvailable(body: ((arg0: unknown[]) => unknown)): (unknown) | null
Swift declarationmutating func withContiguousMutableStorageIfAvailable<R>(_ body: (inout UnsafeMutableBufferPointer<WrappedElement>) throws -> R) rethrows -> R?
Call `body(buffer)`, where `buffer` provides access to the non-optional contiguous mutable storage of the
entire column. If the column contains missing values, `body` is not called and `nil` is returned.
The optimizer can often eliminate bounds- and uniqueness-checking within an algorithm. When that fails,
however, invoking the same algorithm on `body`'s argument may let you trade safety for speed.
- Note: `buffer` must not be replaced by `body`.
- Parameters:
- body: a closure to be executed using the elements of this collection.
- buffer: a buffer to the mutable contiguous storage of this collection.
- Returns: the value returned by `body`, or `nil`.
method · iOS 15.0+map
TypeScriptmap(transform: ((arg0: (unknown) | null) => (unknown) | null)): Column<unknown>
Swift declarationfunc map<T>(_ transform: (Column<WrappedElement>.Element) throws -> T?) rethrows -> Column<T>
Creates a new column by applying a transformation to every element.
- Parameter transform: A transformation closure.
init · iOS 15.0+init
TypeScriptstatic initNameCapacity(name: string, capacity: number): Column<unknown>
Swift declarationinit(name: String, capacity: Int)
Creates a column with a name and a capacity.
- Parameters:
- name: A column name.
- capacity: An integer that represents the number of elements the column can initially store.
get · iOS 15.0+name
TypeScriptget name(): string
Swift declarationvar name: String
The name of the column.
set · iOS 15.0+name
TypeScriptset name(value: string)
Swift declarationvar name: String
The name of the column.
get · iOS 15.0+count
TypeScriptget count(): number
Swift declarationvar count: Int { get }
The number of elements in the column.
method · iOS 15.0+index
TypeScriptindexAfter(i: number): number
Swift declarationfunc index(after i: Int) -> Int
Returns the index immediately after an element index.
- Parameter i: A valid index to an element in the column.
method · iOS 15.0+index
TypeScriptindexBefore(i: number): number
Swift declarationfunc index(before i: Int) -> Int
Returns the index immediately before an element index.
- Parameter i: A valid index to an element in the column.
method · iOS 15.0+append
TypeScriptappend(element: unknown): void
Swift declarationmutating func append(_ element: WrappedElement)
Appends a nonoptional value to the column.
- Parameter element: An optional element.
method · iOS 15.0+append
TypeScriptappend63987(element: (unknown) | null): void
Swift declarationmutating func append(_ element: Column<WrappedElement>.Element)
Appends an optional value to the column.
- Parameter element: A nonoptional element.
method · iOS 15.0+filter
TypeScriptfilter(isIncluded: ((arg0: (unknown) | null) => boolean)): DiscontiguousColumnSlice<unknown>
Swift declarationfunc filter(_ isIncluded: (Column<WrappedElement>.Element) throws -> Bool) rethrows -> DiscontiguousColumnSlice<WrappedElement>
Generates a slice that contains the elements that satisfy a predicate.
- Parameter isIncluded: A predicate closure that returns a Boolean.
The method uses the closure to determine whether it includes an element in the slice.
method · iOS 15.0+remove
TypeScriptremove(index: number): void
Swift declarationmutating func remove(at index: Int)
Removes an element from the column.
- Parameter index: The element's location in the column.
get · iOS 15.0+endIndex
TypeScriptget endIndex(): number
Swift declarationvar endIndex: Int { get }
The index of the final element in the column.
method · iOS 15.0+mapNonNil
TypeScriptmapNonNil(transform: ((arg0: unknown) => (unknown) | null)): Column<unknown>
Swift declarationfunc mapNonNil<T>(_ transform: (WrappedElement) throws -> T?) rethrows -> Column<T>
Creates a new column by applying the transformation to every element that isn't missing.
- Parameter transform: A transformation closure.
get · iOS 15.0+prototype
TypeScriptget prototype(): SDKHandle
Swift declarationvar prototype: any AnyColumnPrototype { get }
A prototype that creates type-erased columns with the same underlying type as the column slice.
Use a type-erased column prototype to create new columns of the same type as the slice's parent column
without explicitly knowing what type it is.
method · iOS 15.0+transform
TypeScripttransform(transform: ((arg0: (unknown) | null) => (unknown) | null)): void
Swift declarationmutating func transform(_ transform: (Column<WrappedElement>.Element) throws -> Column<WrappedElement>.Element) rethrows
Applies a transformation to every element in the column.
- Parameter transform: A transformation closure.
method · iOS 15.0+transform
TypeScripttransform60933(transform: ((arg0: unknown) => unknown)): void
Swift declarationmutating func transform(_ transform: (WrappedElement) throws -> WrappedElement) rethrows
Applies a transformation to every element that isn't missing.
- Parameter transform: A transformation closure.
method · iOS 15.0+numericSummary
TypeScriptnumericSummary(): NumericSummary<number>
Swift declarationfunc numericSummary() -> NumericSummary<WrappedElement>
Generates a numeric summary of the floating-point column's elements.
method · iOS 15.0+standardDeviation
TypeScriptstandardDeviationDeltaDegreesOfFreedom(deltaDegreesOfFreedom?: number): (number) | null
Swift declarationfunc standardDeviation(deltaDegreesOfFreedom: Int = 1) -> Column<WrappedElement>.Element
Returns the standard deviation of the floating-point column's elements, ignoring missing elements.
- Parameter deltaDegreesOfFreedom: A nonnegative integer.
The method calculates the standard deviation's divisor by subtracting this parameter from the number of
non-`nil` elements (`n - deltaDegreesOfFreedom` where `n` is the number of non-`nil` elements).
- Returns: The standard deviation; otherwise, `nil` if there are fewer than
`deltaDegreesOfFreedom + 1` non-`nil` items in the column.
method · iOS 15.0+mean
TypeScriptmean(): (number) | null
Swift declarationfunc mean() -> Column<WrappedElement>.Element
Returns the mean average of the floating-point column's elements, ignoring missing elements.
method · iOS 15.0+summary
TypeScriptsummary(): CategoricalSummary<number>
Swift declarationfunc summary() -> CategoricalSummary<WrappedElement>
Generates a categorical summary of the column's elements.
method · iOS 15.0+distinct
TypeScriptdistinct(): DiscontiguousColumnSlice<number>
Swift declarationfunc distinct() -> DiscontiguousColumnSlice<WrappedElement>
Generates a discontiguous slice that contains unique elements.
The method only adds the first of multiple elements with the same value
--- the element with the smallest index ---
to the slice.
- Returns: A discontiguous column slice.
method · iOS 15.0+numericSummary
TypeScriptnumericSummary83584(): NumericSummary<number>
Swift declarationfunc numericSummary() -> NumericSummary<Double>
Generates a numeric summary of the integer column's elements.
method · iOS 15.0+standardDeviation
TypeScriptstandardDeviationDeltaDegreesOfFreedom81666(deltaDegreesOfFreedom?: number): (number) | null
Swift declarationfunc standardDeviation(deltaDegreesOfFreedom: Int = 1) -> Double?
Returns the standard deviation of the integer column's elements, ignoring missing elements.
- Parameter deltaDegreesOfFreedom: A nonnegative integer.
The method calculates the standard deviation's divisor by subtracting this parameter from the number of
non-`nil` elements (`n - deltaDegreesOfFreedom` where `n` is the number of non-`nil` elements).
- Returns: The standard deviation; otherwise, `nil` if there are fewer than
`deltaDegreesOfFreedom + 1` non-`nil` items in the column.
method · iOS 15.0+mean
TypeScriptmean26908(): (number) | null
Swift declarationfunc mean() -> Double?
Returns the mean average of the integer column's elements, ignoring missing elements.
method · iOS 15.0+sum
TypeScriptsum(): number
Swift declarationfunc sum() -> WrappedElement
Returns the sum of the column's elements, ignoring missing elements.
init · iOS 15.0+init
TypeScriptstatic initCapacity(id: ColumnID<unknown>, capacity: number): Column<unknown>
Swift declarationinit(_ id: ColumnID<WrappedElement>, capacity: Int)
Creates a column with a column identifier and a capacity.
- Parameters:
- id: A column identifier.
- capacity: An integer that represents the number of elements the column can initially store.
subscript · iOS 15.0+subscript
TypeScriptsubscript(mask: Array<boolean>): DiscontiguousColumnSlice<unknown>
Swift declarationsubscript<C>(mask: C) -> DiscontiguousColumnSlice<WrappedElement> where C : Collection, C.Element == Bool { get }
Returns a column slice that includes elements that correspond to a collection of Booleans.
- Parameter mask: A Boolean collection. The subscript returns a slice that includes the column elements
that correspond to the `true` elements in `mask`.
You can create a Boolean column for this subscript by comparing a column to a value
of the column elements' type.
```swift
let followerColumn = artists["Followers", Int.self].filled(with: 0)
let popularArtists = artists[followerColumn > 10_000_000]
```
subscript · iOS 15.0+subscript
TypeScriptsubscript44431(bounds: SDKHandle): ColumnSlice<unknown>
Swift declarationsubscript(bounds: Range<Int>) -> ColumnSlice<WrappedElement> { get set }
Accesses a contiguous range of elements.
- Parameter bounds: A range of valid indices in the column.
subscript · iOS 15.0+subscript
TypeScriptsubscript5224(range: SDKHandle): ColumnSlice<unknown>
Swift declarationsubscript<R>(range: R) -> ColumnSlice<WrappedElement> where R : RangeExpression, R.Bound == Int { get set }
Accesses a contiguous range of elements with a range expression.
- Parameter range: An integer range expression that represents valid indices in the column.
init · iOS 15.0+init
TypeScriptstatic init(slice: ColumnSlice<unknown>): Column<unknown>
Swift declarationinit(_ slice: ColumnSlice<WrappedElement>)
Creates a column from a column slice.
- Parameter slice: A column slice.
subscript · iOS 15.0+subscript
TypeScriptsubscript52386(position: number): (unknown) | null
Swift declarationsubscript(position: Int) -> Column<WrappedElement>.Element { get set }
Accesses an element at an index.
- Parameter position: A valid index to an element in the column.
get · iOS 15.0+description
TypeScriptget description(): string
Swift declarationvar description: String { get }
A text representation of the column identifier.
get · iOS 15.0+name
TypeScriptget name(): string
Swift declarationvar name: String
The name of the column the identifier represents.
set · iOS 15.0+name
TypeScriptset name(value: string)
Swift declarationvar name: String
The name of the column the identifier represents.