make ods backend the default
This commit is contained in:
parent
6ed1140e11
commit
b7113b3011
|
|
@ -29,9 +29,7 @@ def read_ods(file_or_path, sheet=1, headers=True, columns=None):
|
||||||
pandas.DataFrame
|
pandas.DataFrame
|
||||||
The content of the specified sheet as a DataFrame.
|
The content of the specified sheet as a DataFrame.
|
||||||
"""
|
"""
|
||||||
backend = EXT_MAP.get(Path(file_or_path).suffix)
|
backend = EXT_MAP.get(Path(file_or_path).suffix, ods)
|
||||||
if not backend:
|
|
||||||
raise ValueError("Unknown filetype.")
|
|
||||||
return algo.read_data(
|
return algo.read_data(
|
||||||
backend, file_or_path, sheet, headers=headers, columns=columns
|
backend, file_or_path, sheet, headers=headers, columns=columns
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue