Skip to content

Commit

Permalink
add ordering by match_date
Browse files Browse the repository at this point in the history
  • Loading branch information
UnravelSports [JB] committed Nov 12, 2024
1 parent 0edb471 commit 57a4881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kloppy/infra/serializers/event/statsbomb/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __flatten_team_managers(df, team_type):
inplace=True,
errors="ignore",
)
return df
return df.sort_values(by="match_date", ascending=False)
else:
return df[
[
Expand All @@ -219,7 +219,7 @@ def __flatten_team_managers(df, team_type):
"away_team_name",
"away_team_id",
]
]
].sort_values(by="match_date", ascending=False)


def parse_open_competitions(detailed: bool):
Expand Down

0 comments on commit 57a4881

Please sign in to comment.