Contents

sums(_:_:order:)

Generates a data frame that contains the sum of each group’s rows along a column you select by name.

Declaration

func sums<N>(_ columnName: String, _ type: N.Type, order: Order? = nil) -> DataFrame where N : AdditiveArithmetic, N : Comparable

Parameters

  • columnName:

    The name of a column.

  • type:

    The type of the column.

  • order:

    A sorting order the method uses to sort the data frame by its sum column.

See Also

Aggregating a Row Grouping