description
TypeScriptget description(): stringSwift declarationvar description: String { get }A text representation of the data frame slice.
struct · iOS 15.0+ · SDK 27.1
@dynamicMemberLookup struct SliceA set of a data frame's rows you create by using a method from a data frame instance or another data frame slice. A slice is an arbitrary set of rows from a data frame. For example, a slice might contain rows 0–3, 5–9, and 101 from its underlying data frame.
get description(): stringSwift declarationvar description: String { get }A text representation of the data frame slice.
get customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }A mirror that reflects the data frame slice.
subscriptDynamicMember(columnName: string): AnyColumnSliceSwift declarationsubscript(dynamicMember columnName: String) -> AnyColumnSlice { get }Returns a column you select by its name to support dynamic-member lookup. - Parameter columnName: The name of a column.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A text representation of the data frame slice suitable for debugging.
get base(): DataFrameSwift declarationvar base: DataFrame { get }The underlying data frame.
get rows(): DataFrame_RowsSwift declarationvar rows: DataFrame.Rows { get set }The entire slice as a collection of rows.
set rows(value: DataFrame_Rows)Swift declarationvar rows: DataFrame.Rows { get set }The entire slice as a collection of rows.
get shape(): { "rows": number; "columns": number }Swift declarationvar shape: (rows: Int, columns: Int) { get }The number of rows and columns in the slice. - Parameters: - rows: The number of rows in the slice. - columns: The number of columns in the slice.
filter(columnID: ColumnID<unknown>, isIncluded: ((arg0: (unknown) | null) => boolean)): DataFrame_SliceSwift declarationfunc filter<T>(on columnID: ColumnID<T>, _ isIncluded: (T?) throws -> Bool) rethrows -> DataFrame.SliceReturns a selection of rows that satisfy a predicate in the columns you select by column identifier. - Parameters: - columnID: The identifier of a column in the slice. - isIncluded: A predicate closure that receives an element of the column as its argument, and returns a Boolean that indicates whether the slice includes the element's row. - Returns: A data frame slice that contains the rows that satisfy the predicate.
prefixUpTo(position: number): DataFrame_SliceSwift declarationfunc prefix(upTo position: Int) -> DataFrame.SliceReturns a new slice that contains the initial elements of the original slice up to, but not including, the element at a position. - Parameter position: A valid index to an element in the slice. - Returns: A new slice of the underlying data frame.
prefixThrough(position: number): DataFrame_SliceSwift declarationfunc prefix(through position: Int) -> DataFrame.SliceReturns a new slice that contains the initial elements of the original slice up to and including the element at a position. - Parameter position: A valid index to an element in the slice. - Returns: A new slice of the underlying data frame.
prefix(length: number): DataFrame_SliceSwift declarationfunc prefix(_ length: Int) -> DataFrame.SliceReturns a new slice that contains the initial elements of the original slice. - Parameter length: The number of elements in the new slice. The length must be greater than or equal to zero and less than or equal to the number of elements in the original slice. - Returns: A new slice of the underlying data frame.
suffixFrom(position: number): DataFrame_SliceSwift declarationfunc suffix(from position: Int) -> DataFrame.SliceReturns a new slice that contains the final elements of the original slice beginning with the element at a position. - Parameter position: A valid index to an element in the slice. - Returns: A new slice of the underlying data frame.
suffix(length: number): DataFrame_SliceSwift declarationfunc suffix(_ length: Int) -> DataFrame.SliceReturns a new slice that contains the final elements of the original slice. - Parameter length: The number of elements in the new slice. The length must be greater than or equal to zero and less than or equal to the number of elements in the original slice. - Returns: A new slice of the underlying data frame.
get columns(): Array<AnyColumnSlice>Swift declarationvar columns: [AnyColumnSlice] { get }The entire slice as a collection of columns.
grouped(columnName: string): SDKHandleSwift declarationfunc grouped(by columnName: String) -> any RowGroupingProtocolCreates a grouping of rows that the method selects by choosing unique values in a column. - Parameter columnName: The name of a column.
summary(): DataFrameSwift declarationfunc summary() -> DataFrameGenerates a data frame that summarizes the columns of the data frame slice.
selecting(columnNames: Array<string>): DataFrame_SliceSwift declarationfunc selecting<S>(columnNames: S) -> DataFrame.Slice where S : Sequence, S.Element == StringGenerates a data frame slice that includes the columns you select with a sequence of names. - Parameter columnNames: A sequence of column names. - Returns: A new data frame slice.
subscript(columnID: ColumnID<unknown>): DiscontiguousColumnSlice<unknown>Swift declarationsubscript<T>(columnID: ColumnID<T>) -> DiscontiguousColumnSlice<T> { get }Returns a column you select by its column identifier. - Parameter id: The identifier of a column.
subscript75194(columnName: string): AnyColumnSliceSwift declarationsubscript(columnName: String) -> AnyColumnSlice { get }Returns a column you select by its name. - Parameter columnName: The name of a column.
subscript87752(columnNames: Array<string>): DataFrame_SliceSwift declarationsubscript<S>(columnNames: S) -> DataFrame.Slice where S : Sequence, S.Element == String { get }Generates a data frame slice that includes the columns in a sequence of column names. - Parameter columnNames: A sequence of column names. - Returns: A new data frame slice.
6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
DataFrame.Slice.subscript(_:_:)
Passing a Swift type itself is not supported.
DataFrame.Slice.subscript(column:_:)
Passing a Swift type itself is not supported.
DataFrame.Slice.filter(on:_:_:)
Passing a Swift type itself is not supported.
DataFrame.Slice.selecting(columnNames:)
A variable number of Swift arguments is not supported.
DataFrame.Slice.summary(of:)
A variable number of Swift arguments is not supported.
DataFrame.Slice.summary(ofColumns:)
A variable number of Swift arguments is not supported.