MLB_DFS_ROO / app.py

Commit History

Cast 'Top Score' to float in scoring percentages calculation in app.py, ensuring consistency and accuracy in player metrics analysis.
3173651

James McCool commited on

Refactor DK and FD LevX calculations in app.py to ensure rank calculations are explicitly cast to float, improving accuracy in scoring percentage metrics.
cb63196

James McCool commited on

Add 'Top Score' to scoring percentages in app.py and calculate DK and FD LevX metrics based on this new column, enhancing player analysis capabilities.
9b875c4

James McCool commited on

Update scoring percentages in app.py to include 'Slate' column for filtering data based on selected slate type, enhancing user experience and data relevance in the display.
89bf41c

James McCool commited on

Update ownership column names in app.py for clarity by renaming 'Own%' to 'DK Own%' and 'FD Own%' after aggregating team ownership data, ensuring consistency in scoring percentages for DraftKings and FanDuel.
2565d6d

James McCool commited on

Refactor team ownership calculations in app.py to separate DraftKings and FanDuel data processing, enhancing clarity and accuracy in scoring percentages while removing unnecessary columns.
1e6c2b8

James McCool commited on

Add team ownership calculations to scoring percentages in app.py by filtering out pitchers and aggregating ownership data, enhancing player metrics for analysis.
1a7cb58

James McCool commited on

Refactor scoring percentage calculations in app.py by removing division by 100 for '8+ runs' and 'Win Percentage', improving data accuracy and simplifying the conversion process.
2d5b5b0

James McCool commited on

Update app.py to include additional columns 'Team', 'Team_count', 'Secondary', and 'Secondary_count' in player data display, enhancing the detail and usability of player metrics for both DraftKings and FanDuel lineups.
dcc25f6

James McCool commited on

Enhance player ROO data handling in app.py by introducing separate dataframes for DraftKings and FanDuel, improving clarity and organization in the data processing flow while maintaining existing functionality.
1e1b470

James McCool commited on

Update column name for player ownership in app.py by renaming 'Own' to 'Own%', enhancing clarity in data presentation for player ROO display.
64fdc53

James McCool commited on

Refactor player ROO display logic in app.py by eliminating try-except blocks and directly dropping unnecessary columns based on slate type, improving code clarity and maintaining functionality.
f374e83

James McCool commited on

Refactor player ROO data handling in app.py to streamline the display logic by using a local variable for processed data, enhancing readability and maintaining functionality across different view types.
f6ecd24

James McCool commited on

Refactor data loading section in app.py by replacing the form with a container for improved layout flexibility, while maintaining the functionality of view and site selection dropdowns.
5b393f0

James McCool commited on

Enhance player ROO data handling in app.py by implementing conditional column dropping based on slate type, ensuring accurate data processing for both Regular and Showdown formats, while maintaining fallback to original data in case of errors.
a2e8e4e

James McCool commited on

Update app.py to correct column indices for player metrics in DraftKings and FanDuel sections, ensuring accurate calculations for 'Proj' and 'Own' metrics, thereby improving data integrity and application functionality.
de73c93

James McCool commited on

Update app.py to adjust column indices for player metrics in DraftKings and FanDuel sections, ensuring accurate data retrieval and enhancing the overall functionality of the application.
c2420ef

James McCool commited on

Update app.py to modify column names for DraftKings and FanDuel lineups, enhancing data structure for player positions and improving data retrieval in init_DK_lineups and init_FD_lineups functions.
311d2c7

James McCool commited on

Refactor database collection references in init_DK_lineups and init_FD_lineups functions of app.py to use the main database instance, ensuring consistency in data retrieval across different slate types.
3d56cc9

James McCool commited on

Remove title "Scoring Percentages" from app.py to streamline the user interface and improve layout consistency.
7c0677b

James McCool commited on

Change text color of select dropdown in app.py from black to white for improved readability and visual contrast.
8f07a93

James McCool commited on

Update background color of select dropdown in app.py to enhance visual appeal and user experience.
7c39179

James McCool commited on

Add color styling to select dropdown in app.py for improved visibility and user experience.
9c1b966

James McCool commited on

Implement error handling for dataframe display in Player ROO section of app.py, ensuring fallback to original data in case of column selection failure, thereby enhancing stability and user experience.
8dcbd5a

James McCool commited on

Add error handling for player ROO data assignment in app.py to ensure robustness. If dropping columns fails, fallback to the original data, enhancing stability in data processing.
f5c8a2c

James McCool commited on

Refactor init_DK_lineups and init_FD_lineups functions in app.py to accept type_var and slate_var parameters, enhancing lineup initialization flexibility. Update related function calls throughout the code for consistency and improved user experience.
ebf50e6

James McCool commited on

Update app.py to correct the key for the team selection multiselect in the Player ROO section, ensuring proper state management and enhancing user experience.
3ae795f

James McCool commited on

Enhance app.py by adding a team selection dropdown and multiselect for viewing specific teams in the Player ROO section, improving data filtering options for users.
db1e9fe

James McCool commited on

Update app.py to change the order of options in the slate type radio button for Player ROO, improving user experience by prioritizing 'Showdown' over 'Regular'.
423ffa1

James McCool commited on

Enhance app.py by adding unique keys to radio button selections in Scoring Percentages, Player ROO, and Optimals sections, improving state management and ensuring consistent user interactions across tabs.
69b11f3

James McCool commited on

Remove redundant submit buttons from radio selection forms in app.py, streamlining user interactions and enhancing the overall UI experience.
08d71e4

James McCool commited on

Refactor app.py to adjust column layout for the "Load/Reset Data" button and replace forms with containers for Scoring Percentages, Player ROO, and Optimals sections, improving UI structure and simplifying user interactions.
b206444

James McCool commited on

Refactor app.py to reorganize the layout of the "Load/Reset Data" button and the view selection form, enhancing user interface structure and improving data loading functionality. Introduce a form for site selection to streamline user interactions.
ae5a3d1

James McCool commited on

Update app.py to change the background color of the select dropdown and adjust the column index for the "Load/Reset Data" button, improving UI consistency and layout.
a2b1e06

James McCool commited on

Update app.py to modify the init_DK_lineups and init_FD_lineups functions by adding a slate_var parameter, enhancing flexibility in lineup initialization. Refactor the "Load/Reset Data" button implementation to improve code organization and maintainability within the main container.
e40b70b

James McCool commited on

Enhance app.py by adding a new "Load/Reset Data" button in the main container and forms for Scoring Percentages, Player ROO, and Optimals sections, improving data management and user interaction. Streamline data loading process and session state management across tabs.
041e021

James McCool commited on

Refactor app.py to reintroduce tab definitions for Scoring Percentages, Player ROO, and Optimals, ensuring proper organization and functionality within the container. Update caching for data conversion to enhance performance.
5369656

James McCool commited on

Refactor app.py to remove duplicate tab definitions for Scoring Percentages, Player ROO, and Optimals, ensuring cleaner code organization and preventing potential conflicts in tab functionality.
636dd7e

James McCool commited on

Add initial rerun check in app.py to ensure session state is properly initialized, enhancing app stability and user experience.
5898d60

James McCool commited on

Refactor app.py to reposition tab definitions for Scoring Percentages, Player ROO, and Optimals sections, improving code organization and ensuring proper tab functionality within the container.
1b92d06

James McCool commited on

Refactor app.py to implement tabbed navigation for Scoring Percentages, Player ROO, and Optimals sections, enhancing user experience and organization. Remove unnecessary session state keys for radio button selections, streamlining input handling.
2c53a1d

James McCool commited on

Enhance app.py by adding a debug statement to display current session state keys, aiding in troubleshooting and improving visibility of session management.
a7bb74a

James McCool commited on

Enhance app.py by adding unique keys to radio buttons for slate and position group selections across all tabs, improving state management and ensuring consistent user input handling.
b9e2709

James McCool commited on

Refactor app.py to implement a unified selection interface for view, site, and model across all tabs, enhancing user experience and maintaining consistent data handling. Introduce caching for data conversion function to optimize performance.
1e8363d

James McCool commited on

Refactor app.py to streamline the initialization process by moving the page configuration to the top and removing unnecessary global variable deletions, enhancing code clarity and organization.
d077a00

James McCool commited on

Enhance app.py by adding unique keys to selectboxes for view and site selections across all tabs, improving state management and ensuring consistent user input handling.
d386e8e

James McCool commited on

Refactor app.py to standardize variable names for site and view selections across all tabs, ensuring consistent data handling and improving user experience with clearer input options.
c2689e4

James McCool commited on

Refactor app.py to replace radio buttons with selectboxes for view selection and streamline site and slate type inputs across all tabs, enhancing user experience and maintaining consistent data management.
a33b237

James McCool commited on

Refactor app.py to replace session state usage with local variables for site, slate type, and position group selections, improving code clarity and maintaining user input functionality across different views.
efa96d9

James McCool commited on

Update app.py to replace radio buttons with selectboxes for model selection and ensure consistent use of session state for site, slate type, and position group selections, enhancing user experience and data management.
7751c90

James McCool commited on