Skip to content

Commit

Permalink
add index_col to df kwargs return
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Jul 27, 2023
1 parent 6602634 commit 815a33e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydromt/data_adapter/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def to_file(
driver = "csv"
fn_out = join(data_root, f"{data_name}.csv")
obj.to_csv(fn_out, **kwargs)
kwargs["index_col"] = obj.index.name
elif driver == "excel":
fn_out = join(data_root, f"{data_name}.xlsx")
obj.to_excel(fn_out, **kwargs)
Expand Down

0 comments on commit 815a33e

Please sign in to comment.