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.SliceParameters
- position:
A valid index to an element in the slice.
Return Value
A new slice of the underlying data frame.