Код: Выделить всё
df.groupby(['X', 'Y'])['Z'].mean()
Код: Выделить всё
df.group_by(['X', 'Y'], maintain_order=True).select(pl.col('Z').mean())
Код: Выделить всё
AttributeError: 'GroupBy' object has no attribute 'select'
Подробнее здесь: https://stackoverflow.com/questions/778 ... -in-polars