Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -290,7 +290,7 @@ with tab2:
|
|
| 290 |
gamelog_table = gamelog_table[gamelog_table['Min'] <= min_var1_t2[1]]
|
| 291 |
gamelog_table = gamelog_table[gamelog_table['Team'].isin(corr_var1_t2)]
|
| 292 |
corr_display = run_corr(gamelog_table)
|
| 293 |
-
display.dataframe(corr_display.style.format(precision=2), use_container_width = True)
|
| 294 |
|
| 295 |
elif split_var1_t2 == 'Specific Players':
|
| 296 |
display = st.container()
|
|
@@ -300,4 +300,4 @@ with tab2:
|
|
| 300 |
gamelog_table = gamelog_table[gamelog_table['Min'] <= min_var1_t2[1]]
|
| 301 |
gamelog_table = gamelog_table[gamelog_table['Player'].isin(corr_var1_t2)]
|
| 302 |
corr_display = run_corr(gamelog_table)
|
| 303 |
-
display.dataframe(corr_display.style.format(precision=2), use_container_width = True)
|
|
|
|
| 290 |
gamelog_table = gamelog_table[gamelog_table['Min'] <= min_var1_t2[1]]
|
| 291 |
gamelog_table = gamelog_table[gamelog_table['Team'].isin(corr_var1_t2)]
|
| 292 |
corr_display = run_corr(gamelog_table)
|
| 293 |
+
display.dataframe(corr_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
| 294 |
|
| 295 |
elif split_var1_t2 == 'Specific Players':
|
| 296 |
display = st.container()
|
|
|
|
| 300 |
gamelog_table = gamelog_table[gamelog_table['Min'] <= min_var1_t2[1]]
|
| 301 |
gamelog_table = gamelog_table[gamelog_table['Player'].isin(corr_var1_t2)]
|
| 302 |
corr_display = run_corr(gamelog_table)
|
| 303 |
+
display.dataframe(corr_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|