ray.data.grouped_data.GroupedData.__init__#

GroupedData.__init__(dataset: Dataset, key: str | List[str])[source]#

Construct a dataset grouped by key (internal API).

The constructor is not part of the GroupedData API. Use the Dataset.groupby() method to construct one.