DFS_Portfolio_Manager / global_func /load_dk_fd_file.py

Commit History

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

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

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