From fef6325759b157bac9b1008a0003c6f7a24b3d1c Mon Sep 17 00:00:00 2001 From: Nschanche Date: Mon, 5 Feb 2024 11:09:34 -0500 Subject: [PATCH] fixed repr for no results --- src/newlk_search/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newlk_search/search.py b/src/newlk_search/search.py index 214c756..8f28961 100644 --- a/src/newlk_search/search.py +++ b/src/newlk_search/search.py @@ -217,7 +217,7 @@ def _add_columns(self): def __repr__(self, html=False): len_str = f"SearchResult containing {len(self.table)} data products. \n\n" if len(self.table) == 0: - return (len_str + pd.DataFrame(columns = REPR_COLUMNS_BASE).to_string()) + return len_str columns = REPR_COLUMNS_BASE if self.display_extra_columns is not None: columns = REPR_COLUMNS_BASE + self.display_extra_columns