-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in common_time
with 'bin'
: are the bins closed or open on the right?
#340
Comments
Hi marco, currently the way bin edges are defined is all but the last bin are half open. It is a bit confusing and should be specified more clearly in the docstring. I'm not sure about the solution you propose in #341 though, wouldn't this result in data from outside of the range defined by start and stop being included in the binned series? I suppose I'm not totally clear on the advantage of this approach (which may very well be on me!). |
Hey
OK that's fine, maybe all that's needed is to document it then, thanks! |
sounds good, will do! |
closed by #347 |
Describe the bug
It's not clear what the bins are, nor how values are assigned to them.
To Reproduce
This gives
which I find quite odd. It looks like we have:
1.5
means[1, 2)
2.5
means[2, 3]
In the first case, the bin is closed on the left and open on the right. But in the second case, it is closed on both sides.
Expected behavior
I'd have expected:
1.5
to mean[1, 2)
2.5
to mean[2, 3)
3.5
to mean[3, 4)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: