DataWizard9742 commited on
Commit
04a63fa
·
verified ·
1 Parent(s): 3f6cf04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from st_aggrid import AgGrid, GridOptionsBuilder
10
  # --- 1) Data Loading & Cleaning ---
11
  def load_data(uploaded_file):
12
  # Read & skip top‑3 metadata rows; drop the extra header row
13
- df_raw = pd.read_excel(uploaded_file, sheet_name=0, skiprows=3)
14
  df = df_raw.iloc[1:].reset_index(drop=True)
15
 
16
  # Rename columns
@@ -52,7 +52,7 @@ def main():
52
  )
53
 
54
  # Sidebar: upload
55
- uploaded = pd.read_excel('Dataset.xlsx')
56
  if not uploaded:
57
  st.sidebar.info("Awaiting your Excel file…")
58
  return
 
10
  # --- 1) Data Loading & Cleaning ---
11
  def load_data(uploaded_file):
12
  # Read & skip top‑3 metadata rows; drop the extra header row
13
+ df_raw = pd.ExcelFile(uploaded_file, sheet_name=0, skiprows=3)
14
  df = df_raw.iloc[1:].reset_index(drop=True)
15
 
16
  # Rename columns
 
52
  )
53
 
54
  # Sidebar: upload
55
+ uploaded = pd.ExcelFile('Dataset.xlsx')
56
  if not uploaded:
57
  st.sidebar.info("Awaiting your Excel file…")
58
  return