James McCool commited on
Commit
44b9f1d
·
1 Parent(s): 1748ccd

Refactor imports in find_name_mismatches.py and load_contest_file.py

Browse files

- Removed unused imports for numpy, pandas, and time from both files, streamlining the code and improving readability.
- Simplified the import statements to focus on necessary libraries, enhancing maintainability.

global_func/find_name_mismatches.py CHANGED
@@ -1,7 +1,4 @@
1
  import streamlit as st
2
- import numpy as np
3
- import pandas as pd
4
- import time
5
  from fuzzywuzzy import process
6
 
7
  def find_name_mismatches(contest_df, projections_df, ownership_df, fpts_df, calc_toggle):
 
1
  import streamlit as st
 
 
 
2
  from fuzzywuzzy import process
3
 
4
  def find_name_mismatches(contest_df, projections_df, ownership_df, fpts_df, calc_toggle):
global_func/load_contest_file.py CHANGED
@@ -1,11 +1,5 @@
1
  import streamlit as st
2
- import numpy as np
3
  import pandas as pd
4
- import time
5
- from fuzzywuzzy import process
6
-
7
- ## import global functions
8
- from global_func.clean_player_name import clean_player_name
9
 
10
  def load_contest_file(upload, sport):
11
  pos_values = ['P', 'C', '1B', '2B', '3B', 'SS', 'OF']
 
1
  import streamlit as st
 
2
  import pandas as pd
 
 
 
 
 
3
 
4
  def load_contest_file(upload, sport):
5
  pos_values = ['P', 'C', '1B', '2B', '3B', 'SS', 'OF']