MLB_DFS_ROO / app.py

Commit History

Standardize column names in app.py from 'Site' and 'Slate' to 'site' and 'slate' for consistency in player data filtering, improving code readability and maintainability.
b16a86d
Running

James McCool commited on

Add slate-specific filtering in app.py to refine player data based on selected slate type (Main, Secondary, Auxiliary), improving lineup generation accuracy.
f5130d3

James McCool commited on

Fix salary column reference in app.py to ensure accurate filtering of data export display based on minimum and maximum salary values, enhancing data integrity for lineup generation.
6c19bf2

James McCool commited on

Refactor app.py to enhance user input handling for slate types and player selection, improving layout with columns and ensuring accurate lineup generation based on selected parameters.
fb0e7f5

James McCool commited on

Refactor app.py to consistently set index for scoring percentages and player ROO displays, enhancing data presentation and ensuring uniformity across different view types.
252a303

James McCool commited on

Refactor app.py to set index for scoring percentages and player ROO displays, improving data presentation and consistency across views.
b8e8bdb

James McCool commited on

Refactor scoring percentage calculations in app.py to drop unnecessary columns for DraftKings and FanDuel, enhancing data clarity and consistency across slate types.
a0c9fd6

James McCool commited on

Refactor scoring percentage calculations in app.py to consistently drop unnecessary columns for all slate types in DraftKings and FanDuel, improving data clarity and reducing redundancy.
1244250

James McCool commited on

Remove unnecessary column drops for DraftKings and FanDuel in app.py, streamlining scoring percentage calculations and improving data clarity.
32cbf1d

James McCool commited on

Update app.py to handle empty values in scoring percentages for all slate types in DraftKings and FanDuel, ensuring accurate data representation and improving overall data integrity.
39ad0c4

James McCool commited on

Enhance scoring percentage calculations in app.py by implementing slate-specific logic for DraftKings and FanDuel, ensuring accurate ranking and representation of top scores across different slate types.
6c8b87b

James McCool commited on

Refactor game format keys in app.py to simplify naming conventions for scoring percentages, enhancing clarity and consistency in data representation.
b23fb9c

James McCool commited on

Update scoring percentage columns in app.py to include specific slate types for DraftKings and FanDuel, ensuring accurate data representation and enhancing user experience.
3c53f01

James McCool commited on

Refactor scoring percentage calculations in app.py to differentiate between DraftKings and FanDuel slate types, updating column names and improving data filtering logic for enhanced accuracy and user experience.
6f594e5

James McCool commited on

Update app.py to include additional slate options ('Secondary Slate' and 'Turbo Slate') in the data loading selection, improving user flexibility and enhancing the overall experience.
9c7ad76

James McCool commited on

Update scoring percentages and filtering logic in app.py to accommodate multiple slate types for DraftKings and FanDuel, enhancing data accuracy and user experience.
e27c475

James McCool commited on

Update player column selection in app.py to adjust indices for 'Showdown' slate types in DraftKings and FanDuel, ensuring accurate data representation and improving user experience.
f746fee

James McCool commited on

Refactor database connection in app.py to remove unused database reference and streamline data retrieval for DraftKings and FanDuel lineups, enhancing code clarity and maintainability.
54f0cae

James McCool commited on

Refactor player column selection in app.py to dynamically adjust based on slate type for DraftKings and FanDuel, ensuring accurate data representation and enhancing user experience.
ca50776

James McCool commited on

Refactor ownership value calculations in app.py to use updated column indices for DraftKings and FanDuel, and enhance summary statistics display based on slate type, improving data accuracy and user experience.
7f643e6

James McCool commited on

Update app.py to include new column mappings for DraftKings and FanDuel showdown formats, enhancing data display and ensuring accurate representation of team and player metrics in lineups.
70cfb96

James McCool commited on

Enhance team ownership calculations in app.py by filtering for 'main_slate' in DraftKings and FanDuel data, updating ownership metrics, and refining scoring percentages with new calculations for 'DK LevX' and 'FD LevX'.
44fbcd2

James McCool commited on

Add functionality to export player data in both ID and name formats in app.py, enhancing user options for data downloads and improving overall export capabilities.
d485820

James McCool commited on

Update data export in app.py to convert working seed into a DataFrame with specified column names, enhancing data structure for export functionality.
a835e4e

James McCool commited on

Fix player ID mapping in app.py by swapping keys and values in the dictionaries for DraftKings and FanDuel, ensuring accurate player identification in data processing.
b5ed48b

James McCool commited on

Refactor data export functionality in app.py by replacing hardcoded column indices with named column mappings for DraftKings and FanDuel, improving code readability and maintainability.
76ff10d

James McCool commited on

Add player ID mappings for DraftKings and FanDuel in app.py to enhance data export functionality, ensuring accurate player identification in exported files.
220e04f

James McCool commited on

Remove duplicate player entries in app.py by dropping duplicates based on the 'Player' column, enhancing data integrity for player analysis.
df80a5c

James McCool commited on

Update position group selection in app.py by including 'UTIL' in the dict_columns for player data mapping, ensuring comprehensive data representation across all slate types.
5cba8aa

James McCool commited on

Update position group selection variable in app.py for improved clarity and consistency, changing 'pos_var2' to 'group_var2' in user interface elements and related logic for player data filtering.
66c8e7d

James McCool commited on

Enhance user interface in app.py by updating team and position selection prompts for clarity, allowing users to select multiple teams and positions, thereby improving data filtering capabilities in player analysis.
b86749e

James McCool commited on

Enhance team ownership calculations in app.py by replacing 'CWS' with 'CHW' for both DraftKings and FanDuel data, and improve scoring percentages by sorting and dropping the 'Slate' column, refining player metrics analysis.
5042463

James McCool commited on

Update 'Top Score' handling in scoring percentages calculation in app.py to replace empty strings with NaN before casting to float, improving data integrity in player metrics analysis.
b326a45

James McCool commited on

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