Commit History

Fix game number indexing in player summary generation in app.py. Updated the dictionary key format to correctly reference game numbers, ensuring accurate data retrieval for player statistics. This change improves the integrity of the player summary during simulations.
a6e2b8d

James McCool commited on

Refactor player summary generation in app.py to correctly iterate over results_dict using game number keys. Updated player summary aggregation logic to ensure team names and positions are accurately reflected. This change enhances data accuracy and improves the clarity of player statistics during simulations.
e67403e

James McCool commited on

Refactor variable naming in app.py for improved clarity. Changed 'game_num' to 'game_count' in the results dictionary iteration to better reflect its purpose. Minor formatting adjustment to remove unnecessary whitespace, enhancing code readability.
14d978b

James McCool commited on

Refactor app.py to enhance data presentation and organization. Introduced a new tabbed layout with three tabs: "Overall Data", "Individual Game Data", and "Opponent Data". Improved the display of overall simulations by adding subheaders and individual player tabs for better clarity. Updated the styling for dataframes to maintain a consistent visual theme using the 'RdYlGn' colormap. These changes enhance user experience and readability of simulation results.
dc7066d

James McCool commited on

Enhance data presentation in app.py by updating the background gradient styling for player statistics. The new gradient uses the 'RdYlGn' colormap for improved visual clarity, enhancing the user experience when viewing simulation results.
d2f16b0

James McCool commited on

Enhance overall simulation data presentation in app.py. Introduced tabbed layout for displaying player statistics (Kills, Deaths, Assists, CS) to improve user experience. Each tab presents a filtered view of the overall simulation DataFrame, enhancing clarity and readability of performance metrics.
7531a91

James McCool commited on

Refactor overall simulation DataFrame in app.py. Updated overall_sim_df to drop duplicates based on 'Player' and 'Stat', simplifying data structure and enhancing clarity. Adjusted data presentation by removing background gradient styling for improved readability of simulation results.
da2fe63

James McCool commited on

Refactor overall simulation data handling in app.py. Removed the setting of 'Player' as the index in overall_sim_df to simplify data structure. This change enhances the clarity and usability of the simulation results by maintaining a more straightforward DataFrame format.
9c02fea

James McCool commited on

Refactor overall simulation data handling in app.py. Updated overall_sim_df to drop duplicate entries based on 'Player', 'Position', and 'Stat', and set 'Player' as the index for improved data organization. Adjusted the placement of the "Individual Game Simulations" subheader for better clarity in the user interface. These changes enhance the readability and usability of simulation results.
7107abb

James McCool commited on

Refactor simulation data handling in app.py. Updated variable names for clarity, changing 'sim_results' to 'individual_sim_results' and added 'overall_sim_results' for aggregated player statistics. Enhanced data presentation by introducing subheaders for individual game simulations and overall simulations, improving user experience and data readability. This change streamlines the simulation process and enhances the clarity of displayed results.
11e981b

James McCool commited on

Refactor player data handling in init_team_data function of app.py. Updated results_dict assignment to drop NaN values, ensuring cleaner data output for each game iteration. Adjusted playername indexing to maintain clarity in player statistics during simulations. This change enhances the overall quality and usability of the player summary data.
026f31b

James McCool commited on

Refactor player summary generation in app.py to utilize results_dict for improved performance metrics aggregation. Updated the init_team_data function to return results_dict instead of player_summary, and added logic to clean player names for better clarity. This change enhances the overall organization of player statistics and streamlines the data handling process during simulations.
f29027b

James McCool commited on

Enhance player summary generation in init_team_data function of app.py. Introduced a results dictionary to aggregate player statistics across multiple games, allowing for a comprehensive summary of performance metrics. Updated the return statement to include the new player summary DataFrame, improving the clarity and usability of simulation results for users.
7e17f0f

James McCool commited on

Refactor player data handling in init_team_data function of app.py. Changed variable name from 'player_tables' to 'working_tables' for clarity, and updated the assignment of player statistics to improve readability. Enhanced the 'playername' formatting to include a space before the game iteration number, ensuring better presentation of player data during simulations.
9e23c76

James McCool commited on

Refactor caching mechanism in app.py by removing the TTL parameter from the @st .cache_data decorator. This change simplifies the caching behavior for simulated statistics, ensuring data is cached without a time limit, which may improve performance during repeated simulations.
b966d2c

James McCool commited on

Refactor overall_team_data structure in app.py by removing the 'Opponent' column and updating the 'playername' assignment to include game iteration. This change streamlines the data representation and enhances clarity in player statistics during simulations.
f35299f

James McCool commited on

Add game iteration display in init_team_data function of app.py. Introduced a new line to output the current game number and display the team data for each game iteration, enhancing user feedback and clarity during the prediction process.
9e8b179

James McCool commited on

Refactor overall_team_data structure in app.py by removing the 'game' column and renaming it to 'playername' for improved clarity. This change streamlines the data representation in the init_team_data function, enhancing the organization of player statistics and maintaining focus on key performance metrics.
e855530

James McCool commited on

Refactor game prediction settings in app.py to support multiple games. Introduced dynamic tab creation for each game, allowing users to input win/loss settings and kill/death predictions individually. This enhances the user experience by providing a more organized and intuitive interface for managing predictions across multiple games.
e568f6d

James McCool commited on

Add prediction settings to app.py for match format selection. Introduced a new subheader and selectbox for users to choose between BO1, BO3, or BO5 formats, enhancing the user interface and improving the prediction process.
f0e935b

James McCool commited on

Refactor UI layout in app.py to enhance user experience. Updated the selection interface for teams, opponents, win/loss options, and prediction settings by organizing them into two-column layouts. This change improves the visual structure and accessibility of input fields, facilitating a more intuitive interaction for users when making predictions.
94f8ddd

James McCool commited on

Enhance statistical projections in init_team_data function of app.py. Updated the calculation of Kill, Death, and Assist projections to incorporate kill and death predictions, improving the accuracy of player performance metrics during win and loss scenarios. This change enhances the depth of analysis available for team data, allowing for more informed decision-making based on projected statistics.
575b2cb

James McCool commited on

Refactor player data display in app.py by removing background gradient for improved clarity. This change simplifies the presentation of player statistics while maintaining precision formatting, enhancing the overall user experience in analyzing performance metrics.
65b3735

James McCool commited on

Refactor player data display in app.py by simplifying the presentation of statistics. Removed the pivot table and directly displayed player metrics, enhancing clarity and improving the visual representation with background gradients. This change streamlines the data display process while maintaining the integrity of the information presented.
6313632

James McCool commited on

Enhance player data display in app.py by pivoting statistics for improved clarity. Introduced a pivot table to reorganize player metrics, ensuring percentiles are displayed in the correct order. Updated the background gradient direction for better visual representation, enhancing user experience in analyzing player performance.
865e405

James McCool commited on

Fix background gradient direction in player data display in app.py. Changed the gradient axis from 0 to 1 to enhance the visual representation of player statistics, improving clarity and user experience.
e39b810

James McCool commited on

Refactor percentile keys in app.py for improved clarity. Changed percentile labels from 'P10', 'P25', 'P50', 'P75', 'P90' to '10%', '25%', '50%', '75%', '90%' to enhance readability and user understanding of statistical projections for player performance metrics.
e3cbf81

James McCool commited on

Update app.py to convert unique player list to a list format for improved tab creation. This change enhances the functionality of player-specific tabs, ensuring compatibility with the Streamlit framework and improving user experience in navigating player statistics.
9a17dab

James McCool commited on

Enhance player data display in app.py by introducing individual player tabs. Each tab presents player-specific statistics, including percentiles for various metrics, improving the user experience and allowing for a more detailed analysis of player performance. This update builds on previous enhancements to statistical projections and opponent performance metrics.
cf9d108

James McCool commited on

Add simulation of statistical projections in app.py. Introduced a new function to simulate player statistics using a normal distribution, generating percentiles for kills, deaths, assists, and CS projections. This enhancement allows for a more comprehensive analysis of player performance by incorporating simulated data, improving the overall depth of statistical insights available in the application.
6244ceb

James McCool commited on

Enhance opponent performance data display in init_team_data function of app.py. Added a DataFrame to output opponent-specific metrics for kills, deaths, assists, and CS projections during both win and loss scenarios. Updated the return statement to include this new DataFrame, allowing for a more comprehensive analysis of opponent performance alongside team data. This change improves the visibility and usability of performance metrics for informed decision-making.
46e893a

James McCool commited on

Refactor init_team_data function in app.py to improve data handling and output format. Removed unnecessary display of opponent performance metrics and changed the return format to set the playername as the index. This update enhances the clarity of the returned data structure while maintaining the integrity of team performance evaluations.
cd69a95

James McCool commited on

Refactor init_team_data function in app.py to streamline statistical calculations and enhance clarity. Removed redundant statistics calculations and reorganized the logic for player and team performance metrics, focusing on win/loss scenarios. This update improves the readability and efficiency of the code while maintaining the accuracy of performance evaluations based on opponent statistics.
45307d2

James McCool commited on

Refactor opponent data retrieval in init_team_data function of app.py. Updated the query to exclude the opponent filter, allowing for a broader analysis of performance metrics over the specified date range. This change enhances the flexibility of data retrieval for team performance evaluations.
30408c9

James McCool commited on

Add display of opponent performance boosts in init_team_data function of app.py. Enhanced the function by including output for opponent-specific metrics related to kills, deaths, assists, and CS projections during win scenarios. This update improves the visibility of opponent performance data, aiding in more informed team performance evaluations.
d45b209

James McCool commited on

Refactor statistical calculations in init_team_data function of app.py. Replaced direct calculations for kill, death, assist, and CS projections with apply method for improved readability and performance. This change enhances the clarity of the code and maintains the accuracy of team performance evaluations based on opponent statistics.
f268eb0

James McCool commited on

Enhance opponent performance metrics in init_team_data function of app.py. Added calculations for kills, deaths, assists, and CS projections based on opponent statistics for both win and loss scenarios. This update improves the accuracy of team performance evaluations by incorporating opponent-specific boosts, enhancing the overall depth of statistical analysis.
55ed614

James McCool commited on

Refactor init_team_data function in app.py to enhance clarity and streamline table handling. Replaced count_var with a loop to iterate through data tables, improving readability and organization of statistical calculations for team performance metrics. This change contributes to better structure and understanding of kills, deaths, assists, and total CS analysis.
46a3d32

James McCool commited on

Refactor init_team_data function in app.py to improve variable handling and clarity. Introduced a count_var to streamline the distinction between raw_display and raw_opponent data tables, enhancing the readability of statistical calculations for kills, deaths, assists, and total CS. This change contributes to better organization and understanding of team performance metrics.
64f88b0

James McCool commited on

Enhance team data analysis in app.py by adding opponent selection and refining statistical calculations. Introduced a select box for choosing opponents, updated the init_team_data function to include opponent data in performance metrics, and streamlined calculations for kills, deaths, assists, and total CS. This improves the depth and usability of team performance evaluations.
4b70cc2

James McCool commited on

Refactor player statistics handling in init_team_data function of app.py. Updated column names and adjusted data selection for win/loss metrics to improve clarity and consistency in performance analysis. This change enhances the overall data structure for better usability in team performance evaluations.
71875ff

James McCool commited on

Refactor kill and death prediction inputs in app.py. Introduced a selection box for users to choose between predicting kills/deaths or using averages, enhancing user experience. Updated input validation to ensure minimum values are set correctly, improving data integrity in team performance projections.
cb5655c

James McCool commited on

Refactor date handling in init_conn function of app.py. Updated date range logic to use the current date for filtering, setting min_date to one year ago and max_date to one day ago. This change enhances the accuracy and relevance of game log retrieval for analysis.
24a1053

James McCool commited on

Add advanced statistical calculations to init_team_data in app.py. Implemented new metrics for league, opponent, player, and team performance, including averages and boost calculations for kills, deaths, assists, and total CS. This enhancement improves the depth of analysis available for team performance evaluation.
a769f8a

James McCool commited on

Update date input defaults in app.py to enhance user experience. Changed the start date to 30 days prior to the maximum date and ensured proper date formatting for both start and end date inputs. This improves the clarity and usability of date selection for users.
a88c238

James McCool commited on

Enhance date filtering in init_team_data function of app.py. Updated date range queries to convert date objects to formatted datetime strings, ensuring accurate filtering of game logs. This change improves data consistency and reliability in analysis.
0f5bf62

James McCool commited on

Update cache duration in init_team_data function in app.py from 100 to 60 seconds to optimize data retrieval efficiency. This change aims to balance performance and resource usage during data analysis.
53059ec

James McCool commited on

Refactor date input handling in app.py to improve date selection logic. Updated date filtering to ensure proper date formatting and consistency, allowing for seamless selection of date ranges including a "Last Year" option. This enhances user experience and data analysis capabilities.
b9e7e41

James McCool commited on

Fix date parsing in init_conn function of app.py to include time component. Updated date format from "%Y-%m-%d" to "%Y-%m-%d %H:%M:%S" for accurate datetime object creation, enhancing data consistency in game logs retrieval.
ba685f6

James McCool commited on

Refactor date handling in init_conn function of app.py. Updated date retrieval to parse dates into datetime objects for improved consistency and accuracy in data analysis. This change enhances the reliability of date-related operations in the application.
6401015

James McCool commited on