Skip to content

Commit

Permalink
fix: Sort playoff odds on simulation page
Browse files Browse the repository at this point in the history
  • Loading branch information
DesiPilla committed Oct 2, 2024
1 parent 760ab96 commit 6bdcc1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "doritostats"
version = "3.4.15"
version = "3.4.16"
description = "This project aims to make ESPN Fantasy Football statistics easily available. With the introduction of version 3 of the ESPN's API, this structure creates leagues, teams, and player classes that allow for advanced data analytics and the potential for many new features to be added."
authors = ["Desi Pilla <[email protected]>"]
license = "https://github.com/DesiPilla/espn-api-v3/blob/master/LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion src/doritostats/simulation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def get_playoff_odds_df(final_standings: pd.DataFrame) -> pd.DataFrame:
playoff_odds["ties"] = playoff_odds["ties"].round(decimals=1)
playoff_odds["losses"] = playoff_odds["losses"].round(decimals=1)
playoff_odds["points_for"] = playoff_odds["points_for"].round(decimals=2)
return playoff_odds
return playoff_odds.sort_values(by="playoff_odds", ascending=False)


def get_rank_distribution_df(final_standings: pd.DataFrame) -> pd.DataFrame:
Expand Down

0 comments on commit 6bdcc1a

Please sign in to comment.