From 2ce0a43be2effcf29b77a31c7481da3fa5de1252 Mon Sep 17 00:00:00 2001 From: c-bata Date: Thu, 1 Aug 2024 14:35:41 +0900 Subject: [PATCH] Skip empty lines on CSV --- optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx b/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx index a9a2414c..644dbff2 100644 --- a/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx +++ b/optuna_dashboard/ts/components/Artifact/TableArtifactViewer.tsx @@ -143,6 +143,7 @@ const loadCSV = (props: TableArtifactViewerProps): Promise => { Papa.parse(props.src, { header: true, download: true, + skipEmptyLines: true, complete: (results: Papa.ParseResult) => { resolve(results?.data) },