Timestream.with_key

Timestream.with_key(key, grouping=None)

Return a Timestream with a new grouping by key.

Parameters:
  • key (Arg)

    The new key to use for the grouping.

  • grouping (Optional[str], default: None)

    A string literal naming the new grouping. If no grouping is specified,

    one will be computed from the type of the key.