copilot test
This commit is contained in:
@@ -92,6 +92,11 @@ def read_excel(file_content):
|
||||
error_rows.append({"index": index, "row": row, "error": str(e)})
|
||||
|
||||
valid_data = pd.DataFrame(valid_data)
|
||||
# Pokud nejsou žádné validní řádky, vrať prázdný DataFrame a chyby.
|
||||
if valid_data.empty:
|
||||
if show_debug:
|
||||
print("<pre>No valid rows after parsing</pre>")
|
||||
return valid_data.drop(columns='index', errors='ignore'), error_rows
|
||||
|
||||
if show_debug:
|
||||
print("<pre>Cleaned data:\n")
|
||||
|
||||
Reference in New Issue
Block a user