Replies: 2 comments 1 reply
-
Intuitively I would have said yes but there might be differences in the way we define bin boundaries. It would be worth looking into more details in the code of each implementation to see if the difference is intended or not. |
Beta Was this translation helpful? Give feedback.
-
Apologies for bumping the old thread, but I confirmed that it is a bin edge issue:
whereas
Another source of instability can be with floating point precision errors (yes even at the 0.1 level in fp64). I had to explicitly do a |
Beta Was this translation helpful? Give feedback.
-
Shouldn't the output be same for both of these examples done with
KBins
vspandas cut
Output:
Output:
Beta Was this translation helpful? Give feedback.
All reactions