Skip to content

Commit

Permalink
fix pandas futurewarning
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens committed Mar 8, 2024
1 parent 86217a5 commit 18ab689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydropandas/obs_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2117,14 +2117,14 @@ def to_excel(self, path, meta_sheet_name="metadata"):
oc["obs"] = [type(o).__name__ for o in obseries]

# write ObsCollection dataframe to first sheet
super(ObsCollection, oc).to_excel(writer, meta_sheet_name)
super(ObsCollection, oc).to_excel(writer, sheet_name=meta_sheet_name)

# write each observation time series to next sheets
for o in obseries:
sheetname = o.name
for ch in ["[", "]", ":", "*", "?", "/", "\\"]:
sheetname = sheetname.replace(ch, "_")
o.to_excel(writer, sheetname)
o.to_excel(writer, sheet_name=sheetname)

def to_pi_xml(self, fname, timezone="", version="1.24"):
from .io import fews
Expand Down

0 comments on commit 18ab689

Please sign in to comment.