mirror of
https://github.com/karl0ss/football-manager-squad-and-recruitment.git
synced 2025-05-12 17:58:11 +01:00
tidied scores when under 10, due to html table sorting
This commit is contained in:
parent
574cb795d8
commit
e83c463d89
@ -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)
|
except Exception as e: # Used to Nat being used twice (Nationality and Natural Fitness)
|
||||||
print(e)
|
print(e)
|
||||||
continue
|
continue
|
||||||
|
player_df.loc[player_df[role] < 10, role] = 0
|
||||||
return player_df
|
return player_df
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user