upsample not working if arguments are only sorted within group #18229
Labels
A-temporal
Area: date/time functionality
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
I'm not sure if this is a bug or desired behavior, but it was somewhat unintuitive behavior.
I would like to
upsample
my data, butgroup_by
some other variable (groups
).My assumption was that if I do
sort('groups', 'date')
and thenupsample(...., group_by='groups')
that this counts as sorted because it is sorted within each group.Quoting from the upsample doc:
So I would assume that this should work similarly for the input. In the MWE, although the
time
column isn't sorted, it is sorted within a group.Expected behavior
I would think that something like this should always work
Installed versions
The text was updated successfully, but these errors were encountered: