Skip to content

Commit

Permalink
Reactivate ordering of seed data if not ordered.
Browse files Browse the repository at this point in the history
  • Loading branch information
yohplala committed Apr 17, 2024
1 parent f010a56 commit 15e799b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oups/aggstream/aggstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,10 @@ def _iter_data(
seed_remainder = None
for seed_chunk in seed:
# Check seed chunk is ordered on 'ordered_on', else order.
# if not seed_chunk[ordered_on].is_monotonic_increasing:
# This re-ordering is made because for 'trim_start' and
# 'discard_last', this ordereding is required.
# seed_chunk.sort_values(by=ordered_on, inplace=True)
if not seed_chunk[ordered_on].is_monotonic_increasing:
seed_chunk.sort_values(by=ordered_on, inplace=True)
# Step 1 / Seed check by user.
if check:
# Apply user checks.
Expand Down

0 comments on commit 15e799b

Please sign in to comment.