Contents

prefix(through:)

Returns a new slice that contains the initial elements of the original slice up to and including the element at a position.

Declaration

func prefix(through position: Int) -> DataFrame.Slice

Parameters

  • position:

    A valid index to an element in the slice.

Return Value

A new slice of the underlying data frame.

See Also

Creating a Slice by Selecting Rows