We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fcbcd commit 911322dCopy full SHA for 911322d
streamjoy/serializers.py
@@ -259,8 +259,8 @@ def serialize_polars(
259
groupby = kwargs.get("groupby")
260
261
if groupby:
262
- group_sizes = resources.groupby(groupby).agg(pl.len()).sort(by="count")
263
- total_frames = group_sizes.select(pl.col("count").max()).to_numpy()[0, 0]
+ group_sizes = resources.groupby(groupby).agg(pl.len())
+ total_frames = group_sizes.select(pl.col("len").max()).to_numpy()[0, 0]
264
else:
265
total_frames = len(resources)
266
0 commit comments