Contents

condense(columnNamed:to:)

Creates a new data table where duplicate row values in the given column are condensed into a new sequence-type column.

Declaration

func condense(columnNamed: String, to: String) -> MLDataTable

Parameters

  • columnNamed:

    The name of the column to condense.

  • to:

    The name of the new condensed column.

Return Value

A new data table.

Discussion

This function performs the inverse of expand(columnNamed:to:).