Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -783,7 +783,7 @@ def server(input, output, session):
|
|
783 |
|
784 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
785 |
|
786 |
-
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.
|
787 |
if(len(team_top)) < 5:
|
788 |
team_top = test_df.Team.values[:5]
|
789 |
|
@@ -921,7 +921,7 @@ def server(input, output, session):
|
|
921 |
|
922 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
923 |
|
924 |
-
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.
|
925 |
if(len(team_top)) < 5:
|
926 |
team_top = test_df.Team.values[:5]
|
927 |
|
@@ -1059,7 +1059,7 @@ def server(input, output, session):
|
|
1059 |
|
1060 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
1061 |
|
1062 |
-
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.
|
1063 |
if(len(team_top)) < 5:
|
1064 |
team_top = test_df.Team.values[:5]
|
1065 |
|
@@ -1199,7 +1199,7 @@ def server(input, output, session):
|
|
1199 |
|
1200 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
1201 |
|
1202 |
-
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.
|
1203 |
if(len(team_top)) < 5:
|
1204 |
team_top = test_df.Team.values[:5]
|
1205 |
|
|
|
783 |
|
784 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
785 |
|
786 |
+
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.75]['Team'].values
|
787 |
if(len(team_top)) < 5:
|
788 |
team_top = test_df.Team.values[:5]
|
789 |
|
|
|
921 |
|
922 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
923 |
|
924 |
+
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.75]['Team'].values
|
925 |
if(len(team_top)) < 5:
|
926 |
team_top = test_df.Team.values[:5]
|
927 |
|
|
|
1059 |
|
1060 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
1061 |
|
1062 |
+
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.75]['Team'].values
|
1063 |
if(len(team_top)) < 5:
|
1064 |
team_top = test_df.Team.values[:5]
|
1065 |
|
|
|
1199 |
|
1200 |
df_dated = player_games[(pd.to_datetime(player_games.date) >= pd.to_datetime(start_date))&(pd.to_datetime(player_games.date) <= pd.to_datetime(end_date))]
|
1201 |
|
1202 |
+
team_top = test_df[test_df.Score!=''][np.array(test_df[test_df.Score!=''].Score) >= np.array(test_df[test_df.Score!='']['Score']).max()*0.75]['Team'].values
|
1203 |
if(len(team_top)) < 5:
|
1204 |
team_top = test_df.Team.values[:5]
|
1205 |
|