Changelog#
v2.5.2 2023-07-04
support for Python 3.11
v2.5.1 2023-04-25
compatible with Pandas 2.0
added type hints (#GH36)
mypy added to development environment
Contributors: @PabloRuizCuevas
v2.5.0 2022-10-19
dropped support for Python 3.6
bugfix for
staircase.make_test_data()
which failed with numpy < 1.17 (#GH80)bugfix for staircase Series accessor causing errors during inspection of Series instances (#GH158)
v2.4.2 2022-05-13
bugfix for using
staircase.Stairs.from_values()
with timezone aware DatetimeIndex on values argument (#GH145)
v2.4.1 2022-05-09
bugfix for empty Series warning generated by pandas when start or end arguments for
staircase.Stairs.layer()
are None or empty list (#GH143)
v2.4.0 2022-05-02
warnings generated if using
staircase.Stairs.layer()
with non-standard argument types (#GH132)staircase.Stairs.fillna()
can be used withstaircase.Stairs
argument (#GH82)string representations of timestamps can be used as arguments to
staircase.Stairs.clip()
,staircase.Stairs.mask()
andstaircase.Stairs.where()
(#GH49)
v2.3.0 2021-12-21
added
staircase.StairsArray.add()
andstaircase.StairsArray.radd()
added
staircase.StairsArray.subtract()
andstaircase.StairsArray.rsubtract()
added
staircase.StairsArray.multiply()
andstaircase.StairsArray.rmultiply()
added
staircase.StairsArray.divide()
andstaircase.StairsArray.rdivide()
v2.2.0 2021-11-27
added
staircase.StairsArray
(pandas Extension Array forstaircase.Stairs
objects)added StairsDtype (pandas ExtensionDtype)
added
StairsAccessor
(pandas Series custom accessor)added
staircase.logical_or()
added
staircase.logical_and()
added
staircase.plot()
v2.1.1 2021-11-02
bugfix for
staircase.Stairs.plot()
when style=”hlines” and package numexpr installed (from pandas issue #GH34251) (#GH124)
v2.1.0 2021-10-29
added support for
pandas.Timedelta
,datetime.timedelta
andnumpy.timedelta64
added
staircase.Stairs.from_values()
(#GH88)
Contributors: @mesejo (Daniel Mesejo-León)
v2.0.4 2021-10-12
bugfix for array aggregation where array contains a constant value step function over non-float domain (#GH119)
v2.0.3 2021-10-07
bugfix for closed attribute not preserved by addition or subtraction of Stairs when closed==”right” (#GH115)
bugfix for staircase.core.arrays.aggregation incorrect when collection of Stairs have closed==”right” (#GH117)
v2.0.2 2021-10-03
bugfix for layer function when using pandas Series with different index (#GH112)
v2.0.1 2021-09-13
bugfix for incorrect closed parameter not being produced by operations with right-closed step functions (#GH95)
bugfix for slicing with non-fixed frequency period index (#GH108)
bugfix for Stairs binary operations with np.nan reporting incorrect number of step changes (#GH109)
throw ClosedMismatchError on binary operations with different closed values (#GH96)
Contributors: @amagee (Andrew Magee)
v2.0.0 2021-08-25
v1.6.6 2021-07-06
workaround for groupby bug in pandas 1.3.0 (GH42395)
v1.6.5 2021-06-14
bugfix for
staircase.Stairs.mode()
v1.6.4 2021-03-16
bugfix for broken functionality for multiplication, or division, of staircase.Stairs with a number
v1.6.3 2021-02-26
bugfix for missing lower_how and upper_how parameters in
staircase.Stairs.resample()
renamed Stairs._values to avoid error when performing Series.groupby.sum in pandas>=1.2
v1.6.2 2020-01-13
efficiency improvement for
staircase.Stairs.multiply()
v1.6.1 2020-12-30
bugfix for
staircase.Stairs.plot()
when using datetimes and step function has no step changes
v1.6.0 2020-11-10
support for timezones added
bugfix for
staircase.sample()
when points == None (-inf is no longer included)bugfix for
staircase.aggregate()
where Stairs objects have non-zero value at -inf
v1.5.2 2020-10-20
bugfix for
staircase.Stairs.layer()
when None appears in vector parameters start and end
v1.5.1 2020-10-15
removed dependency on ‘private’ methods in sortedcontainers
increased upper limit for version dependency on sortedcontainers
v1.5.0 2020-10-12
fixed typo in diff docstring
extended
staircase.Stairs.values_in_range()
to allow specification of how endpoints of domain should be evaluatedextended
staircase.Stairs.min()
to allow specification of how endpoints of domain should be evaluatedextended
staircase.Stairs.max()
to allow specification of how endpoints of domain should be evaluatedextended
staircase.Stairs.sample()
to allow specification of how endpoints of domain should be evaluatedextended
staircase.Stairs.resample()
to allow specification of how endpoints of domain should be evaluatedadded example usage of rolling_mean to Queue Analysis tutorial
v1.4.0 2020-10-05
extended
staircase.Stairs.corr()
to facilitate cross-correlation and autocorrelationextended
staircase.Stairs.cov()
to facilitate cross-covariance and autocovariance
v1.3.0 2020-10-01
added
staircase.Stairs.var()
(variance)added
staircase.Stairs.std()
(standard deviation)added
staircase.Stairs.corr()
(correlation)added
staircase.Stairs.cov()
(covariance)added
staircase.cov()
(pairwise covariance matrix)added
staircase.corr()
(pairwise correlation matrix)
v1.2.0 2020-09-23
added
staircase.Stairs.hist()
added
staircase.Stairs.ecdf_stairs()
added
staircase.hist_from_ecdf()
staircase.Stairs.percentile_Stairs()
pending deprecation in favour ofstaircase.Stairs.percentile_stairs()
v1.1.1 2020-09-22
bugfix for
staircase.Stairs.sample()
when parameter x = float(“-inf”)
v1.1.0 2020-09-15
added
staircase.Stairs.shift()
added
staircase.Stairs.diff()
v1.0.3 2020-09-08
deep parameter added to
staircase.Stairs.copy()
method for pandas compatability
v1.0.[1|2] 2020-09-02
bugfix with Pandas 1.1.x where SortedSet cannot be used as basis for Series or DataFrame
v1.0.0 2020-09-01
updated documentation to include A note on interval endpoints
parameter start in
staircase.Stairs.layer()
made optional to make method symmetric with respect to timeremoved staircase.Stairs.evaluate method (superseded by
staircase.Stairs.sample()
)