EAPDataFrameNamespace.map_by
eap_pl.EAPDataFrameNamespace.map_by(by, fun)Apply fun to each group and preserve the grouping keys.
fun must accept a Polars DataFrame for one group and return a one-row Polars DataFrame. The grouping columns listed in by are reattached automatically to the returned result.