Commit History

Refactor filtering logic in distribute_preset function to improve handling of 'Finish_percentile' thresholds. Introduced a variable for finish threshold to enhance code readability and maintain accurate portfolio selection across all finishing ranges.
f0036dd

James McCool commited on

Fix variable reference in distribute_preset function to correctly use 'Weighted Own' for filtering logic, ensuring accurate portfolio selection based on ownership thresholds.
b529706

James McCool commited on

Refactor distribute_preset function to improve filtering logic for 'Finish_percentile' by handling edge cases for the first and last finishing ranges, ensuring accurate portfolio selection and maintaining sorting by 'median' in descending order.
746f258

James McCool commited on

Update sorting logic in distribute_preset function to sort 'median' in descending order for improved portfolio selection accuracy
b9ea55a

James McCool commited on

Update preset option in app.py to correct wording for 'Distributed' selection
b35b9b7

James McCool commited on

Add distribute_preset function and update app.py for preset selection
5a5c5db

James McCool commited on

Refactor large_field_preset function to streamline player removal logic by eliminating unnecessary iterations and simplifying the exposure tracking process. Ensure sufficient lineups are generated before finalizing selections, enhancing overall efficiency and accuracy.
d0e6684

James McCool commited on

Enhance large_field_preset function to improve player exposure tracking by implementing a mechanism to remove high-exposure players across iterations, ensuring lineup integrity and preventing excessive ownership. Adjust logic to check for sufficient lineups before finalizing selections.
73d2fb0

James McCool commited on

Refactor large_field_preset function to streamline the portfolio selection process by removing unnecessary iterations and simplifying the logic for team-based filtering, enhancing efficiency and lineup accuracy.
d38df13

James McCool commited on

Enhance small_field_preset and large_field_preset functions to accept an additional parameter for excluded columns, improving filtering capabilities and lineup accuracy. Update app.py to reflect these changes in preset selections.
1b1db4f

James McCool commited on

Refactor large_field_preset function to adjust filtering criteria, replacing 'Finish_percentile' with 'Own' for team-based selection, enhancing accuracy in lineup targeting and improving the logic for dropping rows based on ownership thresholds.
5830bfb

James McCool commited on

Refactor large_field_preset function to simplify ranking logic by removing median and finish percentile rankings, and adjust filtering criteria to focus on 'Finish_percentile' for team-based selection, enhancing accuracy in lineup targeting.
1107ea4

James McCool commited on

Remove filtering of working_portfolio by 'Lineup Edge' in large_field_preset function to allow for broader selection of portfolios, enhancing lineup options.
88b7968

James McCool commited on

Update ranking logic in large_field_preset function to sort 'median' in descending order and 'Finish_percentile' in ascending order, enhancing accuracy in team-based filtering and lineup targeting.
59d5fe8

James McCool commited on

Refactor large_field_preset function to improve team-based filtering by introducing median and finish percentile rankings for enhanced sorting accuracy. Clean up temporary columns after processing to maintain DataFrame integrity.
471e1a6

James McCool commited on

Refactor large_field_preset and small_field_preset functions to use 'Stack' instead of 'Team' for team-based filtering, ensuring consistency in portfolio adjustments and improving accuracy in lineup targeting.
3cc15e1

James McCool commited on

Refactor large_field_preset and small_field_preset functions to enhance lineup targeting: increase slack_var range, implement team-based filtering, and consolidate results into a single DataFrame for improved accuracy in portfolio adjustments.
5ef03d6

James McCool commited on

Add info message in Presets section of app.py to indicate ongoing testing status, enhancing user awareness of feature readiness.
f591d4e

James McCool commited on

Refactor large_field_preset function to improve sorting logic: change the final return statement to sort by 'Finish_percentile' instead of 'Own', ensuring more accurate lineup targeting based on performance metrics.
ba8ea34

James McCool commited on

Update preset options in app.py: modify the small field preset selection to include more descriptive labels, enhancing clarity for users when choosing lineup configurations.
c7d3c05

James McCool commited on

Add large field preset functionality in app.py and implement large_field_preset function for improved lineup targeting. Update small_field_preset function to sort by 'Own' for consistency in portfolio adjustments.
936a186

James McCool commited on

Comment out calculations for highest owned teams and pitchers in app.py to streamline functionality and focus on essential features, while maintaining the option for future use.
ab5ff8c

James McCool commited on

Enhance app functionality by adding calculations for the highest owned teams and pitchers based on projections, improving user insights into team ownership trends. Refactor small_field_preset function to ensure consistent DataFrame structure by sorting working portfolio by median before returning results.
4507308

James McCool commited on

Refactor small_field_preset function to ensure consistent DataFrame structure by resetting the index after filtering and sorting the working portfolio by Median before returning results, improving accuracy in lineup selection.
a6d3a93

James McCool commited on

Update small_field_preset function to reset index after filtering working portfolio by Finish_percentile, ensuring consistent DataFrame structure for subsequent calculations.
cd18aa9

James McCool commited on

Enhance preset selection in app.py: add a dropdown for choosing presets and update lineup target input label, improving user experience and interaction. Update small_field_preset function to filter working portfolio based on Finish_percentile, ensuring more accurate portfolio adjustments.
82d3e88

James McCool commited on

Refactor slack_var handling in small_field_preset function: change iteration from float to integer and adjust calculation for curr_own_type_max to improve accuracy in portfolio adjustments.
17c9148

James McCool commited on

Fix range definition in small_field_preset function: change slack_var initialization from integer to float for accurate iteration, ensuring proper functionality in portfolio adjustments.
6610c83

James McCool commited on

Implement form submission for small field preset in app.py: add a submit button to apply lineup target changes, enhancing user interaction and ensuring updates to the working frame are only processed upon user confirmation.
737b2a7

James McCool commited on

Add small field preset functionality in app.py: integrate new preset options for lineup targeting, enhancing user experience and providing better control over portfolio management.
43df572

James McCool commited on

Refine custom export row addition in app.py: update logic to use head for selecting rows, ensuring accurate concatenation of selected rows from the merge DataFrame and improving data integrity in the export process.
70d6b20

James McCool commited on

Refine row selection for custom export in app.py: replace selectbox with number input for selecting rows, enhancing user experience and ensuring accurate row addition from the merge DataFrame.
fc2be61

James McCool commited on

Update custom export selection in app.py: replace multiselect with selectbox for row selection, allowing users to select rows from the top of the DataFrame, and adjust concatenation logic to include selected rows more intuitively.
4c4a480

James McCool commited on

Refine custom export logic in app.py: update the condition to check for 'export_merge' in session state, enhancing error handling and ensuring smoother user interactions when selecting rows for custom export.
feaf945

James McCool commited on

Enhance custom export functionality in app.py: add a check for the presence of 'export_merge' before allowing row selection, improving robustness and preventing errors during user interaction.
75451a2

James McCool commited on

Update column layout for export options in app.py: adjust button column widths to improve UI spacing and enhance user experience when downloading portfolios.
34ee0c2

James McCool commited on

Refactor custom export options in app.py: reorganize layout to separate buttons for adding all and selected rows to the custom export, improving user interface clarity and functionality.
90fa87c

James McCool commited on

Add custom export functionality in app.py: introduce options to add all or selected rows from the merge DataFrame to the custom export, enhancing user control over data selection and improving export flexibility.
45bb52c

James McCool commited on

Remove unnamed columns from uploaded DataFrame in load_file.py: enhance data cleanliness by dropping columns with 'Unnamed' in their names before further processing.
cadc1d7

James McCool commited on

Update stack inclusion logic in app.py: modify condition to check for sport types (NFL, MLB, NHL) instead of 'Stack' column, enhancing stack selection functionality for specific sports.
488d713

James McCool commited on

Update size selection logic in app.py: conditionally include size options based on sport type, ensuring appropriate functionality for NFL, MLB, and NHL while defaulting to an empty selection for others.
69d924b

James McCool commited on

Update excluded columns in app.py: replace 'Dupes' with 'Size' in the list of excluded columns to reflect recent changes in player size selection functionality.
5581d98

James McCool commited on

Add size selection functionality in app.py: introduce options to include player sizes in lineups, enhancing user control over player configurations and improving data representation.
911d70e

James McCool commited on

Update team selection options in app.py: switch from using 'working_frame' to 'projections_df' for team inclusion and removal, ensuring accurate data representation in player configurations.
546a43f

James McCool commited on

Add team selection functionality in app.py: introduce options to include and remove teams from lineups for enhanced user control over player configurations.
646dbbe

James McCool commited on

Enhance stack selection functionality in app.py: update stack inclusion and removal options for improved user control over lineup configurations.
13857b8

James McCool commited on

Refactor exposure calculation in app.py: remove percentage formatting from 'Exposure' field to ensure consistent raw value representation across player statistics.
5ed7a1c

James McCool commited on

Refactor exposure calculation in app.py: update 'Exposure' field to store raw percentage values instead of formatted strings for improved data handling and consistency in player statistics.
0abd3e1

James McCool commited on

Refactor player statistics display in app.py: update 'Lineup Count' to show raw counts and add 'Exposure' percentage for enhanced clarity in player usage analysis.
92ae630

James McCool commited on

Update player and stack statistics display in app.py: modify 'Lineup Count' to include percentage of total lineups for improved clarity and insight into player usage.
d5190d7

James McCool commited on