NBA_DFS_ROO / app.py

Commit History

Enhance app.py with salary input fields: add minimum and maximum salary inputs for Draftkings and Fanduel, improving user control over data filtering and enhancing the overall functionality of the app.
e04cb99

James McCool commited on

Refactor display logic in app.py: streamline the conditional rendering of the project display by removing unnecessary container usage, enhancing code clarity and maintaining functionality for filtering based on position selection.
40212a7

James McCool commited on

Refactor data export logic in app.py: update export data sources to use raw_baselines instead of display_proj, ensuring accurate player data retrieval for both Regular and Portfolio Manager views, and correct column renaming for improved clarity.
d3a2a85

James McCool commited on

Enhance app.py with new download functionality: add export options for both Regular and Portfolio Manager views, allowing users to download player data in CSV format, improving data accessibility and user experience.
e48ec28

James McCool commited on

Refactor app.py layout for improved user experience: reorganize UI components into a container for better structure, enhance data loading functionality with a reset button, and streamline league and site selection processes, ensuring a more intuitive interface for managing NBA and WNBA lineups.
0ad72bc

James McCool commited on

Refactor app.py layout and logic for improved user interaction: reorganize UI components for league and site selection, enhance data loading functionality, and streamline slate type handling, ensuring a more intuitive experience for users managing NBA and WNBA lineups.
9c3aa05

James McCool commited on

Refactor summary statistics calculations in app.py: streamline the computation of minimum, average, maximum, and standard deviation for salary, project, and own metrics by correcting column indices, enhancing data accuracy and clarity in the displayed results.
02d2bcd

James McCool commited on

Refactor league variable in app.py: rename 'league_var' to 'league_var2' for clarity and consistency in league selection logic, ensuring proper functionality across data retrieval and display for both NBA and WNBA leagues.
004ee91

James McCool commited on

Enhance app.py to support both NBA and WNBA leagues: refactor lineup initialization functions to accept league as an argument, update column definitions for WNBA, and implement conditional logic for data retrieval and display, improving overall functionality and user experience.
55016b9

James McCool commited on

Update 'Median' column handling in app.py: replace empty strings with zero before converting to float, ensuring robust data processing and preventing type-related issues during overall stats retrieval.
6317102

James McCool commited on

Convert 'Median' column to float type in app.py: ensure consistent data handling and prevent type-related issues during overall stats retrieval.
9fa0745

James McCool commited on

Improve player ID handling in app.py: add error handling for player_ID column selection to ensure consistent data frame structure, renaming player_id to player_ID when necessary, enhancing data integrity during processing.
9f6bb94

James McCool commited on

Update player ID processing in app.py: convert player_ID column to string type in Fanduel data frame to ensure consistent data handling and prevent type-related issues during processing.
34a05eb

James McCool commited on

Enhance overall stats retrieval in app.py: implement conditional logic for NBA and WNBA leagues to customize data frame structure and column renaming, improving data handling and clarity for player statistics.
6e328e4

James McCool commited on

Refactor league variable usage in app.py: replace hardcoded 'NBA' string with direct argument in load_overall_stats function calls, improving code clarity and maintainability.
82b17d9

James McCool commited on

Add WNBA database support in app.py: modify connection initialization and update overall stats retrieval to handle both NBA and WNBA data, enhancing functionality for player statistics management.
a47b0a6

James McCool commited on

Update player ID processing in app.py: modify Fanduel data frame to split player IDs at the last hyphen, ensuring accurate mapping and enhancing data integrity during export.
9128800

James McCool commited on

Refine player ID processing in app.py: update Fanduel data frame to split player IDs at the last hyphen, ensuring accurate mapping and improving data integrity during export.
25af322

James McCool commited on

Refine player ID processing in app.py: update Fanduel data frame to remove the last four characters from player IDs, ensuring accurate mapping and improving data integrity during export.
16cee53

James McCool commited on

Update player ID mapping in app.py: modify Fanduel data frame to remove '-mvp' suffix from player IDs and ensure accurate mapping for Showdown slate types, enhancing data integrity during export.
93bcf76

James McCool commited on

Enhance overall stats retrieval in app.py: add separate data frames for Draftkings and Fanduel to improve player ID mapping and streamline data handling during lineup processing.
e559e56

James McCool commited on

Refine lineup data retrieval in app.py: update database queries to filter teams with less than 6 players for both Draftkings and Fanduel, enhancing data accuracy and lineup generation.
1086fd6

James McCool commited on

Enhance data export functionality in app.py: add separate download buttons for optimal lineups by player names and IDs, improving user experience and data accessibility.
29e7d2d

James McCool commited on

Update data export column handling in app.py: increase the number of columns processed for Showdown slate types in both Draftkings and Fanduel, ensuring accurate player ID mapping and enhancing data export functionality.
16a2718

James McCool commited on

Implement conditional data export logic in app.py: enhance the data export functionality by incorporating slate type (Regular or Showdown) for both Draftkings and Fanduel, ensuring accurate player ID mapping and improving data handling during export.
38762a9

James McCool commited on

Remove 'working_seed' from session state in app.py: implement logic to delete 'working_seed' when switching between sites, ensuring accurate data handling and preventing stale data issues during lineup processing.
735eb51

James McCool commited on

Refactor working seed initialization in app.py: update logic for setting working seed based on slate type (Regular or Showdown) for both Draftkings and Fanduel, ensuring accurate lineup data handling and improving code clarity.
0ed806a

James McCool commited on

Enhance summary statistics generation in app.py: implement conditional logic for slate type (Regular or Showdown) to accurately compute metrics for Draftkings and Fanduel, improving data representation and user experience.
fc8cc73

James McCool commited on

Refactor lineup initialization in app.py: remove try-except blocks for lineup creation, ensuring consistent DataFrame initialization for both Draftkings and Fanduel across Regular and Showdown slate types, enhancing code clarity and reliability.
72c894a

James McCool commited on

Update salary input fields in app.py: adjust minimum salary values for both lowest and highest salary inputs to enhance user experience and ensure valid input range.
095a174

James McCool commited on

Update slate selection logic in app.py: enhance raw baseline retrieval by incorporating slate type (Regular or Showdown) for both Main and Secondary slates, improving data accuracy based on user input.
851917a

James McCool commited on

Add debug output in load_overall_stats function of app.py: print top 10 sorted player statistics for improved visibility during data processing.
621bd03

James McCool commited on

Enhance app.py: add support for selecting slate type (Regular or Showdown) in the UI, update site selection logic to accommodate new slate types, and adjust column layout for improved user experience.
f799298

James McCool commited on

Fix player ID column naming in load_overall_stats function of app.py: update column name from 'player_ID' to 'player_id' for consistency and rename it back to 'player_ID' for display purposes.
4d8dc24

James McCool commited on

Enhance app.py: add support for secondary slate data retrieval and processing, update overall stats function to include new data, and improve data export functionality for both Draftkings and Fanduel
b5abcc5

James McCool commited on

Refactor app.py: streamline connection initialization by removing unused Google Sheets credentials and enhance lineup functions to support multiple slate designations for improved flexibility
2675c26

James McCool commited on

Refactor load_overall_stats function in app.py: remove backlog data retrieval and associated UI elements to streamline data handling and improve performance
ef6c0f1

James McCool commited on

Update display_proj assignment in tab1: set index to "Player" with drop option for improved data handling
f47294a

James McCool commited on

Refine "Player" column configuration in tab1: set fixed width properties to enhance layout consistency and maintain sticky header functionality
94d3b9d

James McCool commited on

Enhance dataframe display in tab1: add column configuration for "Player" to improve readability and maintain sticky header functionality
e5ce320

James McCool commited on

Update tab styling: change background colors for active and hover states to enhance UI consistency
3dbcf03

James McCool commited on

Update display_proj handling in tab1: comment out index setting and add hide_index option to dataframe display
83d45be

James McCool commited on

Reorganize tab2 data loading and expander layout
dc913ed

James McCool commited on

Refactor tab1 display options layout and improve UI organization
20f53c3

James McCool commited on

Minor UI refinement: Rename "Display Options" to "Data Options" expander
3d97c49

James McCool commited on

Refactor tab2 layout with expanded display options and improved data management
66b0ac2

James McCool commited on

Enhance tab styling and move display options into an expander
96799c9

James McCool commited on

Add salary range filter to projection display
3f36e0d

James McCool commited on

Fine-tune dataframe styling in simple view projection display
293c9b3

James McCool commited on

Adjust font size in simple view projection display
1694faf

James McCool commited on