Skip to content

Commit

Permalink
Remove deprecated Series.append
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleschutz committed May 22, 2024
1 parent fd872f1 commit b9e0ee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elmada/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def add_row_for_steps(ser: pd.Series) -> pd.Series:
"""Adds an initial row in the Series for plotting steps. This way the first step does not
disappear when choosing option `pre`.
"""
return ser.append(pd.Series({-1: 0})).sort_index()
ser = pd.concat([ser, pd.Series({-1: 0})])
return ser.sort_index()


def sizeof_fmt(num: float, suffix: str = "B") -> str:
Expand Down

0 comments on commit b9e0ee5

Please sign in to comment.