Spaces:
Running
Running
James McCool
commited on
Commit
·
60809b9
1
Parent(s):
10e5388
Standardize display text for LinkColumns in Advanced view to 'Paywalled!' for Player, Team, Salary, and ownership metrics
Browse files
app.py
CHANGED
@@ -364,12 +364,14 @@ with tab1:
|
|
364 |
"Names": st.column_config.LinkColumn(
|
365 |
"Teams",
|
366 |
max_chars=25,
|
367 |
-
help="The Team being projected"
|
|
|
368 |
),
|
369 |
"Own%": st.column_config.LinkColumn(
|
370 |
"Own%",
|
371 |
max_chars=25,
|
372 |
-
help="The projected sum ownership of hitters on the Team"
|
|
|
373 |
)
|
374 |
}, height=750, use_container_width = True, hide_index = True)
|
375 |
elif view_var == "Advanced":
|
@@ -380,12 +382,14 @@ with tab1:
|
|
380 |
"Names": st.column_config.LinkColumn(
|
381 |
"Teams",
|
382 |
max_chars=25,
|
383 |
-
help="The Team being projected"
|
|
|
384 |
),
|
385 |
"Own%": st.column_config.LinkColumn(
|
386 |
"Own%",
|
387 |
max_chars=25,
|
388 |
-
help="The projected sum ownership of hitters on the Team"
|
|
|
389 |
)
|
390 |
}, height=750, use_container_width = True, hide_index = True)
|
391 |
|
@@ -476,19 +480,25 @@ with tab2:
|
|
476 |
"Player",
|
477 |
max_chars=25,
|
478 |
help="The Player being projected",
|
479 |
-
display_text="
|
480 |
),
|
481 |
"Team": st.column_config.LinkColumn(
|
482 |
"Team",
|
483 |
max_chars=25,
|
484 |
help="The Team of the Player",
|
485 |
-
display_text="
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
),
|
487 |
"Own%": st.column_config.LinkColumn(
|
488 |
"Own%",
|
489 |
max_chars=25,
|
490 |
help="The projected ownership of the Player being projected",
|
491 |
-
display_text="
|
492 |
)
|
493 |
}, height=750, use_container_width = True, hide_index = True)
|
494 |
except:
|
@@ -498,19 +508,25 @@ with tab2:
|
|
498 |
"Player",
|
499 |
max_chars=25,
|
500 |
help="The Player being projected",
|
501 |
-
display_text="
|
502 |
),
|
503 |
"Team": st.column_config.LinkColumn(
|
504 |
"Team",
|
505 |
max_chars=25,
|
506 |
help="The Team of the Player",
|
507 |
-
display_text="
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
),
|
509 |
"Own%": st.column_config.LinkColumn(
|
510 |
"Own%",
|
511 |
max_chars=25,
|
512 |
help="The projected ownership of the Player being projected",
|
513 |
-
display_text="
|
514 |
)
|
515 |
}, height=750, use_container_width = True, hide_index = True)
|
516 |
|
@@ -524,43 +540,43 @@ with tab2:
|
|
524 |
"Player",
|
525 |
max_chars=25,
|
526 |
help="The Player being projected",
|
527 |
-
display_text="
|
528 |
),
|
529 |
"Team": st.column_config.LinkColumn(
|
530 |
"Team",
|
531 |
max_chars=25,
|
532 |
help="The Team of the Player",
|
533 |
-
display_text="
|
534 |
),
|
535 |
"Salary": st.column_config.LinkColumn(
|
536 |
"Salary",
|
537 |
max_chars=25,
|
538 |
help="The Salary of the Player",
|
539 |
-
display_text="
|
540 |
),
|
541 |
"Own%": st.column_config.LinkColumn(
|
542 |
"Own%",
|
543 |
max_chars=25,
|
544 |
help="The projected ownership of the Player being projected",
|
545 |
-
display_text="
|
546 |
),
|
547 |
"Small Field Own%": st.column_config.LinkColumn(
|
548 |
"Small Field Own%",
|
549 |
max_chars=25,
|
550 |
help="The projected ownership of the Player being projected in smaller/sharper fields",
|
551 |
-
display_text="
|
552 |
),
|
553 |
"Large Field Own%": st.column_config.LinkColumn(
|
554 |
"Large Field Own%",
|
555 |
max_chars=25,
|
556 |
help="The projected ownership of the Player being projected in larger/softer fields",
|
557 |
-
display_text="
|
558 |
),
|
559 |
"Cash Own%": st.column_config.LinkColumn(
|
560 |
"Cash Own%",
|
561 |
max_chars=25,
|
562 |
help="The projected ownership of the Player being projected for cash games",
|
563 |
-
display_text="
|
564 |
)
|
565 |
}, height=750, use_container_width = True, hide_index = True)
|
566 |
except:
|
@@ -570,43 +586,43 @@ with tab2:
|
|
570 |
"Player",
|
571 |
max_chars=25,
|
572 |
help="The Player being projected",
|
573 |
-
display_text="
|
574 |
),
|
575 |
"Team": st.column_config.LinkColumn(
|
576 |
"Team",
|
577 |
max_chars=25,
|
578 |
help="The Team of the Player",
|
579 |
-
display_text="
|
580 |
),
|
581 |
"Salary": st.column_config.LinkColumn(
|
582 |
"Salary",
|
583 |
max_chars=25,
|
584 |
help="The Salary of the Player",
|
585 |
-
display_text="
|
586 |
),
|
587 |
"Own%": st.column_config.LinkColumn(
|
588 |
"Own%",
|
589 |
max_chars=25,
|
590 |
help="The projected ownership of the Player being projected",
|
591 |
-
display_text="
|
592 |
),
|
593 |
"Small Field Own%": st.column_config.LinkColumn(
|
594 |
"Small Field Own%",
|
595 |
max_chars=25,
|
596 |
help="The projected ownership of the Player being projected in smaller/sharper fields",
|
597 |
-
display_text="
|
598 |
),
|
599 |
"Large Field Own%": st.column_config.LinkColumn(
|
600 |
"Large Field Own%",
|
601 |
max_chars=25,
|
602 |
help="The projected ownership of the Player being projected in larger/softer fields",
|
603 |
-
display_text="
|
604 |
),
|
605 |
"Cash Own%": st.column_config.LinkColumn(
|
606 |
"Cash Own%",
|
607 |
max_chars=25,
|
608 |
help="The projected ownership of the Player being projected for cash games",
|
609 |
-
display_text="
|
610 |
)
|
611 |
}, height=750, use_container_width = True, hide_index = True)
|
612 |
|
|
|
364 |
"Names": st.column_config.LinkColumn(
|
365 |
"Teams",
|
366 |
max_chars=25,
|
367 |
+
help="The Team being projected",
|
368 |
+
display_text="Paywalled!"
|
369 |
),
|
370 |
"Own%": st.column_config.LinkColumn(
|
371 |
"Own%",
|
372 |
max_chars=25,
|
373 |
+
help="The projected sum ownership of hitters on the Team",
|
374 |
+
display_text="Paywalled!"
|
375 |
)
|
376 |
}, height=750, use_container_width = True, hide_index = True)
|
377 |
elif view_var == "Advanced":
|
|
|
382 |
"Names": st.column_config.LinkColumn(
|
383 |
"Teams",
|
384 |
max_chars=25,
|
385 |
+
help="The Team being projected",
|
386 |
+
display_text="Paywalled!"
|
387 |
),
|
388 |
"Own%": st.column_config.LinkColumn(
|
389 |
"Own%",
|
390 |
max_chars=25,
|
391 |
+
help="The projected sum ownership of hitters on the Team",
|
392 |
+
display_text="Paywalled!"
|
393 |
)
|
394 |
}, height=750, use_container_width = True, hide_index = True)
|
395 |
|
|
|
480 |
"Player",
|
481 |
max_chars=25,
|
482 |
help="The Player being projected",
|
483 |
+
display_text="Paywalled!"
|
484 |
),
|
485 |
"Team": st.column_config.LinkColumn(
|
486 |
"Team",
|
487 |
max_chars=25,
|
488 |
help="The Team of the Player",
|
489 |
+
display_text="Paywalled!"
|
490 |
+
),
|
491 |
+
"Salary": st.column_config.LinkColumn(
|
492 |
+
"Salary",
|
493 |
+
max_chars=25,
|
494 |
+
help="The Salary of the Player",
|
495 |
+
display_text="Paywalled!"
|
496 |
),
|
497 |
"Own%": st.column_config.LinkColumn(
|
498 |
"Own%",
|
499 |
max_chars=25,
|
500 |
help="The projected ownership of the Player being projected",
|
501 |
+
display_text="Paywalled!"
|
502 |
)
|
503 |
}, height=750, use_container_width = True, hide_index = True)
|
504 |
except:
|
|
|
508 |
"Player",
|
509 |
max_chars=25,
|
510 |
help="The Player being projected",
|
511 |
+
display_text="Paywalled!"
|
512 |
),
|
513 |
"Team": st.column_config.LinkColumn(
|
514 |
"Team",
|
515 |
max_chars=25,
|
516 |
help="The Team of the Player",
|
517 |
+
display_text="Paywalled!"
|
518 |
+
),
|
519 |
+
"Salary": st.column_config.LinkColumn(
|
520 |
+
"Salary",
|
521 |
+
max_chars=25,
|
522 |
+
help="The Salary of the Player",
|
523 |
+
display_text="Paywalled!"
|
524 |
),
|
525 |
"Own%": st.column_config.LinkColumn(
|
526 |
"Own%",
|
527 |
max_chars=25,
|
528 |
help="The projected ownership of the Player being projected",
|
529 |
+
display_text="Paywalled!"
|
530 |
)
|
531 |
}, height=750, use_container_width = True, hide_index = True)
|
532 |
|
|
|
540 |
"Player",
|
541 |
max_chars=25,
|
542 |
help="The Player being projected",
|
543 |
+
display_text="Paywalled!"
|
544 |
),
|
545 |
"Team": st.column_config.LinkColumn(
|
546 |
"Team",
|
547 |
max_chars=25,
|
548 |
help="The Team of the Player",
|
549 |
+
display_text="Paywalled!"
|
550 |
),
|
551 |
"Salary": st.column_config.LinkColumn(
|
552 |
"Salary",
|
553 |
max_chars=25,
|
554 |
help="The Salary of the Player",
|
555 |
+
display_text="Paywalled!"
|
556 |
),
|
557 |
"Own%": st.column_config.LinkColumn(
|
558 |
"Own%",
|
559 |
max_chars=25,
|
560 |
help="The projected ownership of the Player being projected",
|
561 |
+
display_text="Paywalled!"
|
562 |
),
|
563 |
"Small Field Own%": st.column_config.LinkColumn(
|
564 |
"Small Field Own%",
|
565 |
max_chars=25,
|
566 |
help="The projected ownership of the Player being projected in smaller/sharper fields",
|
567 |
+
display_text="Paywalled!"
|
568 |
),
|
569 |
"Large Field Own%": st.column_config.LinkColumn(
|
570 |
"Large Field Own%",
|
571 |
max_chars=25,
|
572 |
help="The projected ownership of the Player being projected in larger/softer fields",
|
573 |
+
display_text="Paywalled!"
|
574 |
),
|
575 |
"Cash Own%": st.column_config.LinkColumn(
|
576 |
"Cash Own%",
|
577 |
max_chars=25,
|
578 |
help="The projected ownership of the Player being projected for cash games",
|
579 |
+
display_text="Paywalled!"
|
580 |
)
|
581 |
}, height=750, use_container_width = True, hide_index = True)
|
582 |
except:
|
|
|
586 |
"Player",
|
587 |
max_chars=25,
|
588 |
help="The Player being projected",
|
589 |
+
display_text="Paywalled!"
|
590 |
),
|
591 |
"Team": st.column_config.LinkColumn(
|
592 |
"Team",
|
593 |
max_chars=25,
|
594 |
help="The Team of the Player",
|
595 |
+
display_text="Paywalled!"
|
596 |
),
|
597 |
"Salary": st.column_config.LinkColumn(
|
598 |
"Salary",
|
599 |
max_chars=25,
|
600 |
help="The Salary of the Player",
|
601 |
+
display_text="Paywalled!"
|
602 |
),
|
603 |
"Own%": st.column_config.LinkColumn(
|
604 |
"Own%",
|
605 |
max_chars=25,
|
606 |
help="The projected ownership of the Player being projected",
|
607 |
+
display_text="Paywalled!"
|
608 |
),
|
609 |
"Small Field Own%": st.column_config.LinkColumn(
|
610 |
"Small Field Own%",
|
611 |
max_chars=25,
|
612 |
help="The projected ownership of the Player being projected in smaller/sharper fields",
|
613 |
+
display_text="Paywalled!"
|
614 |
),
|
615 |
"Large Field Own%": st.column_config.LinkColumn(
|
616 |
"Large Field Own%",
|
617 |
max_chars=25,
|
618 |
help="The projected ownership of the Player being projected in larger/softer fields",
|
619 |
+
display_text="Paywalled!"
|
620 |
),
|
621 |
"Cash Own%": st.column_config.LinkColumn(
|
622 |
"Cash Own%",
|
623 |
max_chars=25,
|
624 |
help="The projected ownership of the Player being projected for cash games",
|
625 |
+
display_text="Paywalled!"
|
626 |
)
|
627 |
}, height=750, use_container_width = True, hide_index = True)
|
628 |
|