From fd496fa00d680f6b9ab57b4c26c2f5e8b8145e3f Mon Sep 17 00:00:00 2001 From: Valentina Vecchio Date: Thu, 26 Feb 2026 20:20:08 +0000 Subject: [PATCH] remove axis --- randomfpl/fantasy_random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randomfpl/fantasy_random.py b/randomfpl/fantasy_random.py index 26dd903..e8af6e3 100644 --- a/randomfpl/fantasy_random.py +++ b/randomfpl/fantasy_random.py @@ -269,7 +269,7 @@ def get_random_team(df, isFirstAttempt, random_team, av_g_f, av_a_m, av_g_c): random_team, df, av_g_f, av_a_m, av_g_c ) player_loc = removed_player.head().index.values - random_team = random_team.drop(index=player_loc, axis=1) + random_team = random_team.drop(index=player_loc) random_team = pd.concat([random_team, new_member]) return random_team