James McCool commited on
Commit
3f10760
·
1 Parent(s): e7bbe09

Update map_mask_parse function to print the correct DataFrame slice, ensuring accurate preview of data before processing.

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -518,7 +518,7 @@ def normalize_special_characters(text):
518
 
519
  @st.cache_data
520
  def map_mask_parse(df: pd.DataFrame, map: dict, threshold: float, site_var: str):
521
- print(proj_df.head(10))
522
  if site_var == 'Draftkings':
523
  proj_df = df.iloc[:, :-7].replace(map).astype(float)
524
  elif site_var == 'Fanduel':
 
518
 
519
  @st.cache_data
520
  def map_mask_parse(df: pd.DataFrame, map: dict, threshold: float, site_var: str):
521
+ print(df.iloc[:, :-7].head(10))
522
  if site_var == 'Draftkings':
523
  proj_df = df.iloc[:, :-7].replace(map).astype(float)
524
  elif site_var == 'Fanduel':