Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
venaturum committed Nov 2, 2021
2 parents f6eeb50 + 000c74c commit 5e48753
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/release_notes/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Changelog
=========


**v2.1.1 2021-11-02**

- bugfix for func:`staircase.Stairs.plot` when `style="hlines"` and package numexpr installed (from pandas issue #GH34251) (#GH124)


**v2.1.0 2021-10-29**

- added support for :class:`pandas.Timedelta`, :class:`datetime.timedelta` and :class:`numpy.timedelta64`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "staircase"
version = "2.1.0"
version = "2.1.1"
description = "A data analysis package based on modelling and manipulation of mathematical step functions. Strongly aligned with pandas."
readme = "README.md"
authors = ["Riley Clement <venaturum@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion staircase/plotting/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _plot_matplotlib_steps(frame, ax, **kwargs):


def _plot_matplotlib_hlines(frame, ax, **kwargs):
plot_data = frame.iloc[1:-1].query("value.notnull()")
plot_data = frame.iloc[1:-1].loc[lambda df: df["value"].notnull()]

return ax.hlines(
plot_data["value"],
Expand Down

0 comments on commit 5e48753

Please sign in to comment.