PGA_DFS_models / app.py

Commit History

Update player_roo_format to include Cut_Odds in app.py
c2ee88a
Running

James McCool commited on

Refactor Cut_Odds mapping in init_baselines function
13b2733

James McCool commited on

Enhance data integration in init_baselines function
cbef4f6

James McCool commited on

Update tab styling with refined color scheme and hover effects
16200b0

James McCool commited on

Remove unnecessary first column font size CSS rule
2bf059d

James McCool commited on

Simplify DataFrame styling and add custom CSS for column sizing
fc87580

James McCool commited on

Update DataFrame styling overwrite parameter
9f7a12e

James McCool commited on

Enhance DataFrame styling with advanced formatting and centered alignment
b68306e

James McCool commited on

Modify DataFrame styling alignment and remove precision formatting
42ceb38

James McCool commited on

Modify DataFrame styling with color and alignment properties
37aa874

James McCool commited on

Refine DataFrame styling with improved font size and readability
b31d7a5

James McCool commited on

Remove font size parameter from DataFrame styling
066bff1

James McCool commited on

Adjust DataFrame styling with custom font size parameter
7ee528b

James McCool commited on

Refine Streamlit DataFrame CSS targeting
361017e

James McCool commited on

Update Streamlit DataFrame styling for improved readability
b9ba217

James McCool commited on

Enhance DataTable styling with custom font size
0f81870

James McCool commited on

Simplify UI layout and remove unnecessary Streamlit containers
049e846

James McCool commited on

Refactor UI layout and add custom tab styling
7764903

James McCool commited on

Update FanDuel lineup initialization collections
5df1223

James McCool commited on

Simplify Showdown slate salary mapping for DraftKings and FanDuel
26879cf

James McCool commited on

Update raw_baselines selection logic for Regular and Showdown slates
d0b3283

James McCool commited on

Remove player salary dictionary initialization
8507227

James McCool commited on

Refactor player salary mapping for site and slate-specific data selection
3dca652

James McCool commited on

Optimize player frequency table generation in tab2
03d7065

James McCool commited on

Refactor player salary mapping for both Regular and Showdown slates
6bd6835

James McCool commited on

Add player salary mapping to optimize data display and analysis
3297127

James McCool commited on

Modify init_DK_lineups and init_FD_lineups to support Regular and Showdown slate types
237dfa0

James McCool commited on

Enhance app.py: Add view mode selector and improve data display options
2e150af

James McCool commited on

Refactor app.py: Reduce cache duration for init_baselines function from 600 seconds to 60 seconds. This change optimizes resource usage and ensures more frequent data updates, improving the responsiveness of the application.
2e3a8c0

James McCool commited on

Enhance app.py: Update player_roo_format to include additional ownership percentage formats ('5x%', '6x%', '7x%') for improved data representation. This change expands the formatting options available for player statistics, enhancing the clarity and detail of performance metrics.
fa300e7

James McCool commited on

Refactor app.py: Remove 'Timestamp' column from sd_roo_data in init_baselines function. This change simplifies the data structure returned, enhancing data management and processing efficiency.
59c5c99

James McCool commited on

Enhance app.py: Update init_baselines to return both roo_data and sd_roo_data. Adjusted data handling in the UI to support selection between "Full Slate" and "Showdown" types, improving user experience and data display functionality.
e2753d2

James McCool commited on

Update tab names in app.py for improved clarity. Changed the second tab label from "Not Ready Yet" to "Optimals and Exposures" to better reflect its functionality and enhance user experience.
a7afe56

James McCool commited on

Refactor app.py: Remove redundant logging statements in DK and FD lineup initialization functions. Cleaned up code by eliminating unnecessary "converting names" output, enhancing readability and reducing clutter in the application logs.
a8ceba8

James McCool commited on

Refactor app.py: Correct ownership index references for DraftKings and FanDuel. Updated ownership calculations from index 9 to 8 for both sites, ensuring accurate data processing and consistency in ownership value retrieval.
240c28d

James McCool commited on

Enhance app.py: Initialize DK and FD lineups. Added calls to init_DK_lineups and init_FD_lineups functions to fetch lineup data for DraftKings and FanDuel, improving data preparation for subsequent processing.
cf5e7cf

James McCool commited on

Refactor app.py: Correct column references for ownership calculations and site filtering. Updated DataFrame column names from 'site' to 'Site' for consistency and adjusted ownership index references from 12 to 9 for both DraftKings and FanDuel, ensuring accurate data processing.
a245a96

James McCool commited on

Enhance app.py: Introduce DK and FD lineup initialization functions. Added init_DK_lineups and init_FD_lineups to fetch and process data for DraftKings and FanDuel, respectively. Updated data reset logic to clear session state and initialize lineups upon user action. Improved data export functionality and added player frequency analysis for better insights.
71230df

James McCool commited on

Refactor app.py: Enhance data initialization and timestamp handling. Updated init_baselines to return both processed data and timestamp, ensuring better data management. Adjusted references to the updated function throughout the code, including site selection logic and display updates.
e54a8b1

James McCool commited on

Refactor app.py: Optimize data filtering for site selection. Updated the display logic to directly filter the hold_display DataFrame based on the selected site, improving performance and readability.
792293e

James McCool commited on

Refactor app.py: Simplify data processing and enhance site selection UI. Removed unnecessary data type conversion for player frame and improved select box label for site selection. Streamlined data filtering for display based on selected site.
8ae810a

James McCool commited on

Enhance app.py UI with site selection and dynamic data display. Added a select box for choosing between DraftKings and FanDuel, and updated the data display to filter based on the selected site. Improved layout with empty containers for better organization.
24e9e65

James McCool commited on

Refactor app.py to replace Google Sheets integration with MongoDB. Removed gspread and related credentials, added pymongo for database connection. Updated data retrieval methods to fetch data from MongoDB collections. Adjusted UI elements and cleaned up unused code.
3d00450

James McCool commited on

Update app.py
6493759

Multichem commited on

Update app.py
abe3e2a

Multichem commited on

Update app.py
21dca8d

Multichem commited on

Update app.py
7045aa3

Multichem commited on

Update app.py
514ecdb

Multichem commited on

Update app.py
0f02649

Multichem commited on

Update app.py
d117a25

Multichem commited on