make ods backend the default

This commit is contained in:
iuvbio 2021-10-04 14:34:14 +02:00
parent 6ed1140e11
commit b7113b3011
1 changed files with 1 additions and 3 deletions

View File

@ -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
)