PGA_DFS_models / app.py

Commit History

Refactor app.py: Remove 'Timestamp' column from sd_roo_data in init_baselines function. This change simplifies the data structure returned, enhancing data management and processing efficiency.
59c5c99

James McCool commited on

Enhance app.py: Update init_baselines to return both roo_data and sd_roo_data. Adjusted data handling in the UI to support selection between "Full Slate" and "Showdown" types, improving user experience and data display functionality.
e2753d2

James McCool commited on

Update tab names in app.py for improved clarity. Changed the second tab label from "Not Ready Yet" to "Optimals and Exposures" to better reflect its functionality and enhance user experience.
a7afe56

James McCool commited on

Refactor app.py: Remove redundant logging statements in DK and FD lineup initialization functions. Cleaned up code by eliminating unnecessary "converting names" output, enhancing readability and reducing clutter in the application logs.
a8ceba8

James McCool commited on

Refactor app.py: Correct ownership index references for DraftKings and FanDuel. Updated ownership calculations from index 9 to 8 for both sites, ensuring accurate data processing and consistency in ownership value retrieval.
240c28d

James McCool commited on

Enhance app.py: Initialize DK and FD lineups. Added calls to init_DK_lineups and init_FD_lineups functions to fetch lineup data for DraftKings and FanDuel, improving data preparation for subsequent processing.
cf5e7cf

James McCool commited on

Refactor app.py: Correct column references for ownership calculations and site filtering. Updated DataFrame column names from 'site' to 'Site' for consistency and adjusted ownership index references from 12 to 9 for both DraftKings and FanDuel, ensuring accurate data processing.
a245a96

James McCool commited on

Enhance app.py: Introduce DK and FD lineup initialization functions. Added init_DK_lineups and init_FD_lineups to fetch and process data for DraftKings and FanDuel, respectively. Updated data reset logic to clear session state and initialize lineups upon user action. Improved data export functionality and added player frequency analysis for better insights.
71230df

James McCool commited on

Refactor app.py: Enhance data initialization and timestamp handling. Updated init_baselines to return both processed data and timestamp, ensuring better data management. Adjusted references to the updated function throughout the code, including site selection logic and display updates.
e54a8b1

James McCool commited on

Refactor app.py: Optimize data filtering for site selection. Updated the display logic to directly filter the hold_display DataFrame based on the selected site, improving performance and readability.
792293e

James McCool commited on

Refactor app.py: Simplify data processing and enhance site selection UI. Removed unnecessary data type conversion for player frame and improved select box label for site selection. Streamlined data filtering for display based on selected site.
8ae810a

James McCool commited on

Enhance app.py UI with site selection and dynamic data display. Added a select box for choosing between DraftKings and FanDuel, and updated the data display to filter based on the selected site. Improved layout with empty containers for better organization.
24e9e65

James McCool commited on

Refactor app.py to replace Google Sheets integration with MongoDB. Removed gspread and related credentials, added pymongo for database connection. Updated data retrieval methods to fetch data from MongoDB collections. Adjusted UI elements and cleaned up unused code.
3d00450

James McCool commited on

Update app.py
6493759

Multichem commited on

Update app.py
abe3e2a

Multichem commited on

Update app.py
21dca8d

Multichem commited on

Update app.py
7045aa3

Multichem commited on

Update app.py
514ecdb

Multichem commited on

Update app.py
0f02649

Multichem commited on

Update app.py
d117a25

Multichem commited on

Update app.py
feb94fc

Multichem commited on

Update app.py
57c489b

Multichem commited on

Update app.py
5faa553

Multichem commited on

Update app.py
a8b116c

Multichem commited on

Update app.py
a010f92

Multichem commited on

Update app.py
ec7f097

Multichem commited on

Update app.py
c1d6516

Multichem commited on

Create app.py
0917471

Multichem commited on