Spaces:
Runtime error
Runtime error
Update app.py
Browse files112 unmodified lines113114115116117118119120112 unmodified linesInput("led-table", "data"))def update_plot(data):df_orig.columns = df_orig.columns.str.strip()df_orig["LED Number"] = pd.to_numeric(df_orig["LED Number"], errors="coerce").astype("Int64") # Ensure LED Number is intdf_orig["X Position"] = pd.to_numeric(df_orig["X Position"], errors="coerce")df_orig["Y Position"] = pd.to_numeric(df_orig["Y Position"], errors="coerce")df_orig["Wavelength"] = pd.to_numeric(df_orig["Wavelength"], errors="coerce")112 unmodified lines113114115116117118119120121122123112 unmodified linesInput("led-table", "data"))def update_plot(data):df = pd.DataFrame(data)df_orig_raw = pd.read_excel(FILE, engine="openpyxl")df_orig = df_orig_raw.copy()df_orig.columns = df_orig.columns.str.strip()df_orig["LED Number"] = pd.to_numeric(df_orig["LED Number"], errors="coerce").astype("Int64") # Ensure LED Number is intdf_orig["X Position"] = pd.to_numeric(df_orig["X Position"], errors="coerce")df_orig["Y Position"] = pd.to_numeric(df_orig["Y Position"], errors="coerce")df_orig["Wavelength"] = pd.to_numeric(df_orig["Wavelength"], errors="coerce")
app.py+4-1