James McCool commited on
Commit
c8ca533
·
1 Parent(s): 9aa41e4

Update Advanced view to include 'Salary' column and enhance LinkColumn configurations for Player, Team, and ownership metrics with consistent display text

Browse files
Files changed (1) hide show
  1. app.py +37 -13
app.py CHANGED
@@ -509,7 +509,7 @@ with tab2:
509
  }, height=750, use_container_width = True, hide_index = True)
510
 
511
  elif view_var == "Advanced":
512
- for col in ['Player', 'Team', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']:
513
  player_roo_disp[col] = 'https://paydirtdfs.com/subscriptions-choices/'
514
  try:
515
  st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2),
@@ -517,32 +517,44 @@ with tab2:
517
  "Player": st.column_config.LinkColumn(
518
  "Player",
519
  max_chars=25,
520
- help="The Player being projected"
 
521
  ),
522
  "Team": st.column_config.LinkColumn(
523
  "Team",
524
  max_chars=25,
525
- help="The Team of the Player"
 
 
 
 
 
 
 
526
  ),
527
  "Own%": st.column_config.LinkColumn(
528
  "Own%",
529
  max_chars=25,
530
- help="The projected ownership of the Player being projected"
 
531
  ),
532
  "Small Field Own%": st.column_config.LinkColumn(
533
  "Small Field Own%",
534
  max_chars=25,
535
- help="The projected ownership of the Player being projected in smaller/sharper fields"
 
536
  ),
537
  "Large Field Own%": st.column_config.LinkColumn(
538
  "Large Field Own%",
539
  max_chars=25,
540
- help="The projected ownership of the Player being projected in larger/softer fields"
 
541
  ),
542
  "Cash Own%": st.column_config.LinkColumn(
543
  "Cash Own%",
544
  max_chars=25,
545
- help="The projected ownership of the Player being projected for cash games"
 
546
  )
547
  }, height=750, use_container_width = True, hide_index = True)
548
  except:
@@ -551,32 +563,44 @@ with tab2:
551
  "Player": st.column_config.LinkColumn(
552
  "Player",
553
  max_chars=25,
554
- help="The Player being projected"
 
555
  ),
556
  "Team": st.column_config.LinkColumn(
557
  "Team",
558
  max_chars=25,
559
- help="The Team of the Player"
 
 
 
 
 
 
 
560
  ),
561
  "Own%": st.column_config.LinkColumn(
562
  "Own%",
563
  max_chars=25,
564
- help="The projected ownership of the Player being projected"
 
565
  ),
566
  "Small Field Own%": st.column_config.LinkColumn(
567
  "Small Field Own%",
568
  max_chars=25,
569
- help="The projected ownership of the Player being projected in smaller/sharper fields"
 
570
  ),
571
  "Large Field Own%": st.column_config.LinkColumn(
572
  "Large Field Own%",
573
  max_chars=25,
574
- help="The projected ownership of the Player being projected in larger/softer fields"
 
575
  ),
576
  "Cash Own%": st.column_config.LinkColumn(
577
  "Cash Own%",
578
  max_chars=25,
579
- help="The projected ownership of the Player being projected for cash games"
 
580
  )
581
  }, height=750, use_container_width = True, hide_index = True)
582
 
 
509
  }, height=750, use_container_width = True, hide_index = True)
510
 
511
  elif view_var == "Advanced":
512
+ for col in ['Player', 'Team', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']:
513
  player_roo_disp[col] = 'https://paydirtdfs.com/subscriptions-choices/'
514
  try:
515
  st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2),
 
517
  "Player": st.column_config.LinkColumn(
518
  "Player",
519
  max_chars=25,
520
+ help="The Player being projected",
521
+ display_text="($$)"
522
  ),
523
  "Team": st.column_config.LinkColumn(
524
  "Team",
525
  max_chars=25,
526
+ help="The Team of the Player",
527
+ display_text="($$)"
528
+ ),
529
+ "Salary": st.column_config.LinkColumn(
530
+ "Salary",
531
+ max_chars=25,
532
+ help="The Salary of the Player",
533
+ display_text="($$)"
534
  ),
535
  "Own%": st.column_config.LinkColumn(
536
  "Own%",
537
  max_chars=25,
538
+ help="The projected ownership of the Player being projected",
539
+ display_text="($$)"
540
  ),
541
  "Small Field Own%": st.column_config.LinkColumn(
542
  "Small Field Own%",
543
  max_chars=25,
544
+ help="The projected ownership of the Player being projected in smaller/sharper fields",
545
+ display_text="($$)"
546
  ),
547
  "Large Field Own%": st.column_config.LinkColumn(
548
  "Large Field Own%",
549
  max_chars=25,
550
+ help="The projected ownership of the Player being projected in larger/softer fields",
551
+ display_text="($$)"
552
  ),
553
  "Cash Own%": st.column_config.LinkColumn(
554
  "Cash Own%",
555
  max_chars=25,
556
+ help="The projected ownership of the Player being projected for cash games",
557
+ display_text="($$)"
558
  )
559
  }, height=750, use_container_width = True, hide_index = True)
560
  except:
 
563
  "Player": st.column_config.LinkColumn(
564
  "Player",
565
  max_chars=25,
566
+ help="The Player being projected",
567
+ display_text="($$)"
568
  ),
569
  "Team": st.column_config.LinkColumn(
570
  "Team",
571
  max_chars=25,
572
+ help="The Team of the Player",
573
+ display_text="($$)"
574
+ ),
575
+ "Salary": st.column_config.LinkColumn(
576
+ "Salary",
577
+ max_chars=25,
578
+ help="The Salary of the Player",
579
+ display_text="($$)"
580
  ),
581
  "Own%": st.column_config.LinkColumn(
582
  "Own%",
583
  max_chars=25,
584
+ help="The projected ownership of the Player being projected",
585
+ display_text="($$)"
586
  ),
587
  "Small Field Own%": st.column_config.LinkColumn(
588
  "Small Field Own%",
589
  max_chars=25,
590
+ help="The projected ownership of the Player being projected in smaller/sharper fields",
591
+ display_text="($$)"
592
  ),
593
  "Large Field Own%": st.column_config.LinkColumn(
594
  "Large Field Own%",
595
  max_chars=25,
596
+ help="The projected ownership of the Player being projected in larger/softer fields",
597
+ display_text="($$)"
598
  ),
599
  "Cash Own%": st.column_config.LinkColumn(
600
  "Cash Own%",
601
  max_chars=25,
602
+ help="The projected ownership of the Player being projected for cash games",
603
+ display_text="($$)"
604
  )
605
  }, height=750, use_container_width = True, hide_index = True)
606