Commit History

Update export logic in app.py: introduce a new session state variable to store a copy of the portfolio for export, ensuring accurate data handling when adding to the export base and improving display options for paginated data.
ab4dc7d

James McCool commited on

Fix export logic in app.py: update the export base to concatenate the current portfolio instead of the export file, ensuring accurate data representation when adding to the export.
95b2e04

James McCool commited on

Refactor portfolio calculation logic in app.py: streamline salary, median, and ownership computations for Classic and Showdown types, ensuring accurate data handling and improved clarity in the code structure.
e16cb76

James McCool commited on

Enhance portfolio calculations in app.py: implement conditional logic for salary, median, and ownership calculations based on portfolio type and sport, ensuring accurate data handling for both Classic and Showdown formats.
2a79e13

James McCool commited on

Refactor export button logic in app.py: streamline the addition of portfolios to the export base by replacing the button context with a conditional check, enhancing user interaction and code clarity.
5a791bd

James McCool commited on

Refactor export functionality in app.py: streamline portfolio download and merging processes, introduce export base for consolidated data management, and enhance display options for portfolio and export data.
5647915

James McCool commited on

ping
352ec5e

James McCool commited on

Enhance player summary generation in app.py: refactor logic to handle Captain and FLEX positions separately for improved accuracy in lineup statistics, and ensure consistent display of player performance metrics in the summary table.
76c1d87

James McCool commited on

Update app.py to utilize session state for trimming dictionary max values: enhance state management by ensuring consistent access to ownership type thresholds during portfolio updates.
5404e76

James McCool commited on

Update trimming dictionary initialization in app.py: ensure consistent handling of maximum values for ownership types during portfolio updates, improving state management and preventing data conflicts.
371a9aa

James McCool commited on

Remove trimming_dict_maxes from session state before reinitializing in app.py: ensure clean state management during portfolio updates and prevent potential data conflicts.
302d0d9

James McCool commited on

Refactor trimming dictionary handling in app.py: initialize trimming dictionary max values in session state for improved state management and ensure accurate threshold inputs during portfolio updates.
0da9464

James McCool commited on

Update trimming dictionary max values in app.py: adjust ownership type thresholds to improve filtering accuracy and maintain consistency in portfolio management.
437b6cc

James McCool commited on

Add trimming dictionary max values in app.py: define maximum thresholds for ownership types to enhance filtering options and maintain consistency in portfolio management.
bb24797

James McCool commited on

Reintroduce trimming dictionary in app.py: move the calculation of maximum values for ownership types back into the submission logic, ensuring accurate threshold inputs during portfolio updates and maintaining consistency in the trimming process.
bbb7092

James McCool commited on

Enhance trimming functionality in app.py: introduce a trimming dictionary to streamline the retrieval of maximum values for performance and ownership types, improving the accuracy of threshold inputs in the portfolio management process.
857d91c

James McCool commited on

Refactor filter options in app.py: streamline the organization of macro and micro filter inputs into expandable sections, enhance player locking and removal functionalities, and ensure consistent handling of trimming parameters for improved user experience during portfolio management.
74f9c17

James McCool commited on

Refactor filter options in app.py: reorganize macro and micro filter inputs into expandable sections for improved user experience, and ensure consistent handling of player locking and removal functionalities during portfolio management.
a7ad1b5

James McCool commited on

Update input fields in app.py: add unique keys to selectboxes and number inputs for sorting and trimming variables, enhancing state management and user experience in the portfolio trimming process.
866355a

James McCool commited on

Refactor trimming options in app.py: enhance user interface by organizing input fields into columns for better clarity and usability, and update threshold inputs to allow for minimum and maximum values, improving the portfolio trimming process.
c7464dc

James McCool commited on

Fix calculation of current ownership type maximum in trim_portfolio.py to use the correct row's own type value, improving accuracy in portfolio trimming logic.
8e96a8e

James McCool commited on

Add trim slack parameter to portfolio trimming functionality in app.py and trim_portfolio.py, allowing for more flexible threshold adjustments during portfolio management.
4d1ad75

James McCool commited on

Update app.py and trim_portfolio.py to change threshold parameters from integers to floats, enhancing precision in portfolio trimming functionality and ensuring consistent data handling.
232eb2a

James McCool commited on

Enhance portfolio trimming functionality in app.py and trim_portfolio.py: add performance and own thresholds for trimming criteria, improving data filtering capabilities and allowing for more precise portfolio management.
607dd10

James McCool commited on

Refactor salary processing in app.py: update salary conversion to drop NaN values before converting to integers, ensuring cleaner data handling and enhancing the robustness of projections.
6ba45c0

James McCool commited on

Refactor salary processing in app.py: streamline salary conversion by removing unwanted characters before converting to integers, enhancing clarity and ensuring consistent data handling during projections file loading.
4af194e

James McCool commited on

Enhance salary processing in app.py: add error handling during salary conversion to integers, ensuring robustness in data processing while maintaining clarity in projections file loading.
901bbc5

James McCool commited on

Refactor salary processing in app.py: improve clarity by separating character replacements for salary values into distinct operations, ensuring consistent formatting during projections file loading.
19bd3e1

James McCool commited on

Refactor salary processing in app.py: move salary character replacement to app.py for improved clarity and maintainability, ensuring consistent handling of salary values during projections file loading.
b9fc1be

James McCool commited on

Refactor salary data processing in load_file.py: remove try-except block for salary conversion, ensuring consistent handling of salary values while maintaining data integrity during file uploads.
0926bbb

James McCool commited on

Update app.py and load_file.py: add regex import in app.py for future enhancements and replace print with write in load_file.py for improved output handling.
9a3a501

James McCool commited on

Enhance salary data processing in load_file.py: add a try-except block to convert salary values to integers after removing unwanted characters, improving data integrity during file handling.
a31c2f9

James McCool commited on

Refactor file type checks in load_file.py and load_ss_file.py: streamline file extension validation using endswith method for improved readability. Update app.py to handle salary conversion more robustly by removing unnecessary exception handling.
9d66c9c

James McCool commited on

Refactor salary data processing in app.py: streamline salary conversion by consolidating character removal into a single regex operation, enhancing data integrity and consistency during projections file handling.
6af53eb

James McCool commited on

Enhance salary data processing in app.py: add a try-except block to convert salary values to integers after removing unwanted characters, improving data integrity during projections file handling.
108ace7

James McCool commited on

Add debug print statements in load_dk_fd_file.py: include additional print statements for clean_name and lineups.name to assist in debugging and data verification during file processing.
90a4822

James McCool commited on

Refactor lineups file handling in load_dk_fd_file.py: clean up line name by removing numeric suffixes using regex, and streamline CSV file loading by removing UTF-8 encoding specification for improved compatibility.
ba217a9

James McCool commited on

Enhance CSV file loading in load_dk_fd_file.py: update the read_csv function to include UTF-8 encoding for better compatibility with file objects provided by Streamlit.
d9d478e

James McCool commited on

Refactor file type checks in loading functions: update conditions in load_dk_fd_file.py, load_file.py, and load_ss_file.py to use substring checks for file extensions, improving readability and maintainability. Remove debug print statements from load_dk_fd_file.py and app.py to clean up the code.
dbc3f23

James McCool commited on

Add debug print statements in load_dk_fd_file.py: include print statements for name_dict and lineups_df to assist in debugging and data verification during file processing.
cb4a863

James McCool commited on

Add debug print statements in load_dk_fd_file.py: include print statements for lineups_df and export_df to assist in debugging and data verification during file processing.
6136ed6

James McCool commited on

Enhance error handling in lineups DataFrame processing in load_dk_fd_file.py: add a try-except block around the column drop operation to prevent failures when attempting to remove specified columns, ensuring smoother data processing.
cee1912

James McCool commited on

Add debug print statement for export portfolio in app.py: include a print statement to output the export portfolio for debugging purposes during file uploads, aiding in troubleshooting and data verification.
661cc5a

James McCool commited on

Update score cutoff in portfolio matching logic in app.py: increase the score cutoff from 85 to 90 to enhance the accuracy of portfolio name matches.
f61df1b

James McCool commited on

Update salary input limits in app.py: increase the maximum acceptable salary from 60,000 to 100,000 to accommodate a wider range of salary options for users. Adjust conditional checks in predict_dupes.py to use 'elif' for improved clarity in type_var evaluations.
9a6e753

James McCool commited on

Improve error handling in projections_df processing in app.py: add try-except blocks for ownership percentage conversion and salary formatting to maintain data integrity during potential conversion failures.
fd54d3c

James McCool commited on

Update projections_df processing in app.py: add ownership percentage conversion and ensure salary formatting for improved data integrity and analysis accuracy.
766d3b9

James McCool commited on

Remove unnecessary columns from lineups DataFrame in load_dk_fd_file.py: drop 'Entry ID', 'Contest Name', 'Contest ID', and 'Entry Fee' to streamline data processing and enhance analysis efficiency.
cda266d

James McCool commited on

Add support for DraftKings/Fanduel file uploads in app.py: implement a new upload option for processing lineups, integrating a dedicated loading function for enhanced compatibility with different data sources.
7852820

James McCool commited on

Comment out duplicate removal in app.py: temporarily disable the line that drops duplicate entries based on 'Name' in the session state CSV file, preserving original data for further analysis.
bf8ac3e

James McCool commited on