From e83c463d899d285d4d6e2d1e7fa6013761d920a8 Mon Sep 17 00:00:00 2001 From: jake-fawcett Date: Mon, 4 Dec 2023 22:25:06 +0000 Subject: [PATCH] tidied scores when under 10, due to html table sorting --- position_score_calculator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/position_score_calculator.py b/position_score_calculator.py index 7c1213d..022abde 100644 --- a/position_score_calculator.py +++ b/position_score_calculator.py @@ -77,6 +77,7 @@ def calc_role_scores(player_df: pd.DataFrame, attribute_df: pd.DataFrame) -> pd. except Exception as e: # Used to Nat being used twice (Nationality and Natural Fitness) print(e) continue + player_df.loc[player_df[role] < 10, role] = 0 return player_df