From b7113b3011e2fa9ecb4f0bfeea9e736c538e0ea6 Mon Sep 17 00:00:00 2001 From: iuvbio Date: Mon, 4 Oct 2021 14:34:14 +0200 Subject: [PATCH] make ods backend the default --- pandas_ods_reader/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandas_ods_reader/main.py b/pandas_ods_reader/main.py index 702f505..ff48f29 100644 --- a/pandas_ods_reader/main.py +++ b/pandas_ods_reader/main.py @@ -29,9 +29,7 @@ def read_ods(file_or_path, sheet=1, headers=True, columns=None): pandas.DataFrame The content of the specified sheet as a DataFrame. """ - backend = EXT_MAP.get(Path(file_or_path).suffix) - if not backend: - raise ValueError("Unknown filetype.") + backend = EXT_MAP.get(Path(file_or_path).suffix, ods) return algo.read_data( backend, file_or_path, sheet, headers=headers, columns=columns )