Commit History

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

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

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

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 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

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

Refactor showdown mapping logic in app.py: consolidate NFL and non-NFL mapping into a single dictionary assignment, improving code readability and reducing redundancy in player data handling.
e91c761

James McCool commited on

Update excluded columns in app.py: add 'Weighted Own' and 'Geomean' to the list of excluded columns in projections, enhancing data filtering for improved analysis.
4353f4f

James McCool commited on

Enhance match output in app.py: update the display of matched portfolio names to include matching scores, improving user feedback and providing more detailed insights into the matching process.
0dc28ee

James McCool commited on

Add match confirmation output in app.py: include a statement to display matched portfolio names, enhancing user feedback and improving traceability of the matching process.
ae44282

James McCool commited on

Add unmatched names warning in app.py: implement logic to identify and display portfolio names without matches in projections, enhancing user feedback and improving data validation during the matching process.
85f2b5f

James McCool commited on

Add portfolio name extraction and matching in app.py: implement a new function to retrieve unique player names from the portfolio, enhance name matching logic, and update session state with matched names for improved data consistency and analysis.
8e0da46

James McCool commited on

Remove redundant update of projections_df in app.py: eliminate unnecessary reassignment of projections_df with name mismatches, streamlining the session state management and improving code efficiency.
cc5b9dd

James McCool commited on

Enhance name matching process in app.py: streamline the handling of player names by implementing a more efficient matching algorithm, updating session state management, and improving debug output for better traceability of matches.
730a147

James McCool commited on

Refactor name standardization and mapping logic in app.py: introduce functions for creating site mappings and standardizing player names, improving code organization and efficiency in handling name variations across dataframes.
3deb246

James McCool commited on

Refactor name matching logic in app.py: streamline the process of creating the name ID mapping and matching player names, improving efficiency and clarity in data handling.
d209a5b

James McCool commited on

Refactor debug output in app.py: adjust the placement of the export dictionary display statement to ensure it appears after applying matches, improving clarity in data processing verification.
51d04e4

James McCool commited on

Add debug output in app.py: include a statement to display the export dictionary after applying matches, aiding in the verification of data processing.
92753be

James McCool commited on

Refactor filter form keys in app.py: rename filter form keys to 'macro_filter_form' and 'micro_filter_form' for improved clarity and organization in the filtering options.
5244b28

James McCool commited on

Refactor filter options in app.py: rename 'Filter Options' to 'Macro Filter Options' and streamline the filter form by consolidating stack selection logic, enhancing user experience and clarity in filtering functionalities.
d318223

James McCool commited on

Enhance portfolio calculations in app.py: implement sport-specific logic for CS2 to differentiate salary, median, and ownership calculations for Captain and FLEX positions, improving accuracy in player statistics and overall portfolio analysis.
87e0fcb

James McCool commited on

Update sport selection in app.py: add 'CS2' to the sport selection dropdown, expanding user options for game type selection.
46cffe3

James McCool commited on

Update portfolio duplication prediction in app.py: modify predict_dupes call to include sport_var, enhancing the accuracy of duplication metrics based on sport-specific logic.
c8b2207

James McCool commited on

Refactor portfolio duplication prediction in predict_dupes.py: enhance the function to accommodate sport-specific logic for CS2, improving ownership calculations and ensuring accurate duplication metrics based on player ownership and salary. Update app.py to pass sport_var to predict_dupes for better context in calculations.
bd90e32

James McCool commited on

Remove export dictionary display in app.py: eliminate the output of the export dictionary contents to streamline the user interface and focus on essential information during portfolio processing.
d619fee

James McCool commited on

Enhance export file processing in app.py: implement mapping for non-excluded columns in the export file using the export dictionary, ensuring improved data accuracy during portfolio downloads.
ecf059f

James McCool commited on

Enhance export file processing in app.py: add mapping for non-excluded columns in the export file using the export dictionary, improving data accuracy during portfolio downloads.
83df1df

James McCool commited on

Refactor name matching process in app.py: optimize the matching logic by processing names individually with extractOne for improved efficiency, while maintaining the handling of name-to-ID mapping and ensuring consistent debug output for better user feedback.
be8e70e

James McCool commited on

Refactor name matching process in app.py: streamline the handling of name-to-ID mapping and matching logic, ensuring consistent debug output while maintaining clarity in the export dictionary assignment, enhancing overall efficiency and user feedback.
507fe5f

James McCool commited on

Add detailed debug output for name matching process in app.py: include additional print statements to provide insights into the name-to-ID mapping, number of names to match, and results of the matching process, enhancing visibility for debugging and user feedback.
6c65277

James McCool commited on

Refactor name matching and export dictionary handling in app.py: streamline the name-to-ID mapping process by ensuring it only occurs when necessary, and enhance match handling by fixing the conversion to match_dict, improving overall efficiency and user experience during exports.
ce6c2b2

James McCool commited on

Refactor export dictionary handling in app.py: simplify the export dictionary assignment by using match_dict directly and enhance user feedback by displaying the export dictionary in the app interface.
405e093

James McCool commited on

Improve name matching logic in app.py: enhance the match validation by adding a threshold check and retain original names for unmatched entries, along with debug output for better visibility into the matching process.
ee0824a

James McCool commited on

Add debug output for export dictionary in app.py: include a display of the generated export dictionary to enhance user feedback and facilitate debugging during the export process.
9b0d8bc

James McCool commited on

Refactor name-to-ID mapping and matching logic in app.py: streamline the process by consolidating the mapping and matching steps, improving efficiency and maintaining user experience during exports.
d61cf96

James McCool commited on

Enhance export matching functionality in app.py: replace fuzzywuzzy with rapidfuzz for improved performance, and streamline the name-to-ID mapping process by processing all names in a batch, enhancing efficiency and user experience during exports.
1a21253

James McCool commited on