Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -125,8 +125,8 @@ cmap_sum = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#FFFFFF","#
|
|
125 |
|
126 |
|
127 |
#if not os.path.isfile('standings/standings_'+str(date.today())+'.csv'):
|
128 |
-
|
129 |
-
standings_df_old = pd.read_csv('2024_standings_href.csv')
|
130 |
# standings_df_old.to_csv('standings/standings_'+str(date.today())+'.csv')
|
131 |
#standings_df_old = pd.read_csv('standings/standings_'+str(date.today())+'.csv',index_col=[0])
|
132 |
|
|
|
125 |
|
126 |
|
127 |
#if not os.path.isfile('standings/standings_'+str(date.today())+'.csv'):
|
128 |
+
standings_df_old = pd.read_html('https://www.hockey-reference.com/leagues/NHL_2024_standings.html')[0].append(pd.read_html('https://www.hockey-reference.com/leagues/NHL_2024_standings.html')[1])
|
129 |
+
# standings_df_old = pd.read_csv('2024_standings_href.csv')
|
130 |
# standings_df_old.to_csv('standings/standings_'+str(date.today())+'.csv')
|
131 |
#standings_df_old = pd.read_csv('standings/standings_'+str(date.today())+'.csv',index_col=[0])
|
132 |
|