Simplify Showdown slate salary mapping for DraftKings and FanDuel
26879cf
James McCoolcommited on
Update raw_baselines selection logic for Regular and Showdown slates
d0b3283
James McCoolcommited on
Remove player salary dictionary initialization
8507227
James McCoolcommited on
Refactor player salary mapping for site and slate-specific data selection
3dca652
James McCoolcommited on
Optimize player frequency table generation in tab2
03d7065
James McCoolcommited on
Refactor player salary mapping for both Regular and Showdown slates
6bd6835
James McCoolcommited on
Add player salary mapping to optimize data display and analysis
3297127
James McCoolcommited on
Modify init_DK_lineups and init_FD_lineups to support Regular and Showdown slate types
237dfa0
James McCoolcommited on
Enhance app.py: Add view mode selector and improve data display options
2e150af
James McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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.