James McCool commited on
Commit
a4352cc
·
1 Parent(s): 6947c31

fucking stupid object differences

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -375,8 +375,6 @@ with tab5:
375
  col1, col2 = st.columns([1, 5])
376
 
377
  with col2:
378
- with st.container():
379
- st.dataframe(pick_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
380
  df_hold_container = st.empty()
381
  info_hold_container = st.empty()
382
  plot_hold_container = st.empty()
@@ -393,7 +391,6 @@ with tab5:
393
  prop_df = prop_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
394
  elif game_select_var == 'Pick6':
395
  prop_df = pick_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
396
- prop_df.rename(columns={"Full_name": "Player"}, inplace = True)
397
  book_selections = ['Pick6']
398
  st.download_button(
399
  label="Download Prop Source",
@@ -416,15 +413,12 @@ with tab5:
416
  prop_df_raw = prop_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
417
  sim_vars = ['NBA_GAME_PLAYER_POINTS', 'NBA_GAME_PLAYER_REBOUNDS', 'NBA_GAME_PLAYER_ASSISTS', 'NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS', 'NBA_GAME_PLAYER_POINTS_REBOUNDS', 'NBA_GAME_PLAYER_POINTS_ASSISTS', 'NBA_GAME_PLAYER_REBOUNDS_ASSISTS']
418
  elif game_select_var == 'Pick6':
419
- prop_df_raw = pick_frame[['Full_name', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
420
- prop_df_raw.rename(columns={"Full_name": "Player"}, inplace = True)
421
  sim_vars = ['Points', 'Rebounds', 'Assists', 'Points + Assists + Rebounds', 'Points + Assists', 'Points + Rebounds', 'Assists + Rebounds']
422
 
423
  player_df = player_stats.copy()
424
 
425
  for prop in sim_vars:
426
- st.write(prop)
427
- st.table(prop_df_raw)
428
  prop_df = prop_df_raw[prop_df_raw['prop_type'] == prop]
429
 
430
  for books in book_selections:
@@ -533,8 +527,7 @@ with tab5:
533
  if game_select_var == 'Aggregate':
534
  prop_df_raw = prop_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
535
  elif game_select_var == 'Pick6':
536
- prop_df_raw = pick_frame[['Full_name', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
537
- prop_df_raw = prop_df_raw.rename(columns={"Full_name": "Player"})
538
 
539
  for books in book_selections:
540
  prop_df = prop_df_raw[prop_df_raw['book'] == books]
 
375
  col1, col2 = st.columns([1, 5])
376
 
377
  with col2:
 
 
378
  df_hold_container = st.empty()
379
  info_hold_container = st.empty()
380
  plot_hold_container = st.empty()
 
391
  prop_df = prop_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
392
  elif game_select_var == 'Pick6':
393
  prop_df = pick_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
 
394
  book_selections = ['Pick6']
395
  st.download_button(
396
  label="Download Prop Source",
 
413
  prop_df_raw = prop_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
414
  sim_vars = ['NBA_GAME_PLAYER_POINTS', 'NBA_GAME_PLAYER_REBOUNDS', 'NBA_GAME_PLAYER_ASSISTS', 'NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS', 'NBA_GAME_PLAYER_POINTS_REBOUNDS', 'NBA_GAME_PLAYER_POINTS_ASSISTS', 'NBA_GAME_PLAYER_REBOUNDS_ASSISTS']
415
  elif game_select_var == 'Pick6':
416
+ prop_df_raw = pick_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
 
417
  sim_vars = ['Points', 'Rebounds', 'Assists', 'Points + Assists + Rebounds', 'Points + Assists', 'Points + Rebounds', 'Assists + Rebounds']
418
 
419
  player_df = player_stats.copy()
420
 
421
  for prop in sim_vars:
 
 
422
  prop_df = prop_df_raw[prop_df_raw['prop_type'] == prop]
423
 
424
  for books in book_selections:
 
527
  if game_select_var == 'Aggregate':
528
  prop_df_raw = prop_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
529
  elif game_select_var == 'Pick6':
530
+ prop_df_raw = pick_frame[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
 
531
 
532
  for books in book_selections:
533
  prop_df = prop_df_raw[prop_df_raw['book'] == books]