MLB_DFS_ROO / app.py

Commit History

Enhance player ROO DataFrame styling in app.py by expanding the background gradient subset to include 'Small Field Own%', 'Large Field Own%', and 'Cash Own%' for improved visual representation and clarity.
939415c

James McCool commited on

Refactor background gradient styling in app.py for scoring percentages and player ROO DataFrames to enhance visual clarity by including 'Salary' and 'Own%' in the gradient subset.
40ab0f4

James McCool commited on

Update scoring percentages DataFrame in app.py to include 'Order' in the background gradient styling for improved visual clarity and data representation.
2392e35

James McCool commited on

Update 'Order' and 'Hand' column handling in app.py to replace NaN with 0 for 'Order' and default 'Hand' to 'Pitcher' for improved data consistency and clarity in player data processing for hitters.
90d5e18

James McCool commited on

Update 'Order' column handling in app.py to replace empty strings with NaN for improved data integrity, and ensure proper type conversion for consistency in player data processing.
05e02d5

James McCool commited on

Update 'Order' column type to integer and add 'Runs/$' calculation in scoring percentages DataFrame in app.py for improved data accuracy and analysis capabilities.
899c130

James McCool commited on

Refactor data handling in app.py to create a separate hold_frame for 'Order' and 'Hand' attributes, improving clarity and organization in player data processing for hitters.
e840845

James McCool commited on

Refactor Hitter_Info integration in app.py to separate LHP and RHP data, ensuring accurate mapping of 'Order' and 'Hand' attributes for hitters, enhancing data processing and analysis capabilities.
96aabe9

James McCool commited on

Add Hitter_Info integration in app.py to enhance player data processing by including 'Order' and 'Hand' attributes for hitters, improving data analysis capabilities.
b2e59e8

James McCool commited on

Update scoring percentages DataFrame in app.py to include 'Opp_SP' for improved data analysis and clarity in player performance metrics.
dd4eb4f

James McCool commited on

Update Stack Priority options in app.py to use 'OF_Prio' and 'IF_Prio' for improved clarity in user selections, enhancing the data filtering experience.
d011b1f

James McCool commited on

Fix the order of options in Stack Priority isolation radio button in app.py to improve user experience and clarity in data filtering.
4d5a500

James McCool commited on

Add Stack Priority filtering option in app.py to enhance user control over scoring percentages display. Users can now isolate data based on specific Stack Priority selections, improving data analysis capabilities.
aa508ab

James McCool commited on

Remove 'Avg_Salary' from the background gradient in scoring percentages display in app.py, streamlining the visual presentation for the Simple view while maintaining clarity for the Advanced view.
741d267

James McCool commited on

Enhance scoring percentages display in app.py by adding a second background gradient for 'Avg_Salary' and 'Own%' columns, improving visual differentiation and data clarity in both Simple and Advanced views.
f7c0bfd

James McCool commited on

Update column names in scoring percentages DataFrame in app.py to include 'Avg_Salary' and 'Stack_Prio', enhancing data clarity and consistency in player information presentation.
1fa49a9

James McCool commited on

Reorder columns in player display within app.py to enhance data presentation, improving readability and consistency in the displayed player information.
de89206

James McCool commited on

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

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