Skip to content

Commit

Permalink
Use stable sort when sorting values in forecaster (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
natl authored May 18, 2024
1 parent e534f76 commit 50d0686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/prophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def setup_dataframe(self, df, initialize_scales=False):

if df.index.name == 'ds':
df.index.name = None
df = df.sort_values('ds')
df = df.sort_values('ds', kind='mergesort')
df = df.reset_index(drop=True)

self.initialize_scales(initialize_scales, df)
Expand Down

0 comments on commit 50d0686

Please sign in to comment.