-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: default for pd.Interval of closed/inclusive changed on main from right to both #47365
Comments
on the PR changing to use inclusive this must have been accid changed |
One additional thing: The class attributes were also renamend, e.g.
raises now. Are these considered public or private? |
hmm let's add that back (and add a depreciation warning for it) thanks! |
is it ok for the repr change in a minor release or should this be changed back too? |
no this is for 1.5 only (as keyword change / deprecation) |
We will change the attribute back too. One other thing: The argument order changed, but I think we can live with that? |
not sure, it's only the third argument, so maybe a few users will be using positional here. looking through #46522, i'm wondering whether to revert for now and redo it in smaller parts. |
I would like to give it a try on Friday, if this does not work out, reverting is probably the best option |
if the default is changed then this may not be an issue. The ideally There is also if closed is None:
inclusive = "both" in |
Should we maybe reconsider the actual deprecation of I understand the strive for consistency in keyword arguments (and that certainly makes sense for things like
|
+1 for closed for Interval etc. (i.e. +1 to revert all of #46522) |
I don't have any preference there. I just saw that the default changed, hence this pr. There where some cleanup prs after the initial one we would also have to revert |
i don't think we should revert inclusive is a much better and more consistent keyword and it's already been used in a bunch of issues so +1 in this change |
it seems weird to me that the docs state
i.e. we explain inclusive in terms of closed. strange. |
I agree with Joris here. |
xref #40245 with @attack68's issue with standardizing the keyword argument Personally, I think Generally I would be +0 to standardize to inclusive. |
Taking stock, appears we have:
If we are aiming to release the 1.5rc next week (#45223 (comment)), it appears we should revert this deprecation unless there are any other considerations |
ok to revert and discuss later |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
This isn't mentioned in the release notes. We should decide on how to proceed.
Expected Behavior
cc @simonjayhawkins
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: