Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
contrib: fix importing pandas datasets in excel format (#627)
Browse files Browse the repository at this point in the history
Fixes #617

Co-authored-by: ahari <[email protected]>
  • Loading branch information
aliahari and ahari authored May 11, 2023
1 parent 5e450b0 commit 5f3a480
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mlem/contrib/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ def get_writer(
ext = ext.lstrip(".")
if ext in PANDAS_SERIES_FORMATS:
fmt = ext
elif ext in ["xls", "xlsx"]:
fmt = "excel"
return PandasSeriesWriter(format=fmt)


Expand Down Expand Up @@ -367,6 +369,8 @@ def get_writer(
ext = ext.lstrip(".")
if ext in PANDAS_FORMATS:
fmt = ext
elif ext in ["xls", "xlsx"]:
fmt = "excel"
return PandasWriter(format=fmt)


Expand Down

0 comments on commit 5f3a480

Please sign in to comment.