Contents

init(groups:groupKeysColumnName:)

Creates a row grouping from a list of groups.

Declaration

init<D>(groups: [(GroupingKey?, D)], groupKeysColumnName: String) where D : DataFrameProtocol

Parameters

  • groups:

    An array of tuples. Each tuple pairs a key with a data frame type.

  • groupKeysColumnName:

    The name of the grouping key column the row grouping creates when it generates a data frame, such as its Ungrouped() or Counts(order:) methods.

Discussion

The member data frames must all have the same columns (count, names, and types).

See Also

Creating a Row Grouping