Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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.
|
| 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
|