Closed Seddryck closed 2 years ago
It was a breaking change to make Stats.min
and Stats.max
to have similar outputs as other Stats functions. See #419. The old min
and max
functions were renamed to tryMin
and tryMax
.
This works in F#.
[DateTime(2010,1,1); DateTime(2016,1,1); DateTime(2019, 1, 1)]
|> Series.ofValues
|> Stats.tryMax
But I just realized that tryMin
and tryMax
is not exposed as extensions to be easily used in C#. I've just added TryMin
and TryMax
here https://github.com/fslaborg/Deedle/commit/09cf696c4578f9443aea3792c21089d38672f732 and released 2.4.3. Check it out.
Thx for the quick fix, working like a charm.
Before version 2.1.1, it was possible to use the Stats.Min and Stats.Max functions for the series containing elements of type DateTime. When releasing version 2.1.1, a breaking change has been introduced and the following exception is thrown when trying to calculate Min/Max for a series of DateTime:
Same behavior with version >=2.1.1
Steps to reproduce (c#)
The result of this test is successful with 2.1.0 and throws the previously mentioned exception with 2.1.1