-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
ENH: consistency of input args for boundaries #40245
Comments
take |
Does anyone have the link for the Styler.highlight_between proposed method? |
Also, are there any other methods or functions that you have in mind? |
so you can see part of the discussion there, that PR is not yet approved, possibly this is a small part of the reason. There is mention of some other functions (non-exhaustive) list that have boundary treatment arguments. Do you know how well numpy handles this, and what style they adopt? |
one possible solution if it check outs might be to extend I also dont think anyone would object to a logical enhancement of the input argument to ^just a quick suggestion. |
Reopening this issue after observing more methods where standardising might be appropriate. (see OP) |
take |
working on pd.date_range() |
Hey @attack68, looks like no one is working on pd.cut and Series.resample yet? I notice that there are few open questions related to pd.cut as noted in some of the other issues (for example #23164 and #33912), I will work on it once some of these relevant issues are closed. So I am thinking of working on Series.resample first, any comments? |
take |
pandas-dev/pandas#40245 gave up using Series.between() as we still cannot drop python2 support
…able test ### What changes were proposed in this pull request? This PR proposes to remove `closed` parameter from `ps.date_range` & enable test. See pandas-dev/pandas#40245 more detail. ### Why are the changes needed? To support pandas 2.0.0 and above. ### Does this PR introduce _any_ user-facing change? `closed` parameter will no longer available from `ps.date_range` API. ### How was this patch tested? Enabling the existing UT. Closes #42389 from itholic/closed_removing. Authored-by: itholic <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
…able test ### What changes were proposed in this pull request? This PR proposes to remove `closed` parameter from `ps.date_range` & enable test. See pandas-dev/pandas#40245 more detail. ### Why are the changes needed? To support pandas 2.0.0 and above. ### Does this PR introduce _any_ user-facing change? `closed` parameter will no longer available from `ps.date_range` API. ### How was this patch tested? Enabling the existing UT. Closes apache#42389 from itholic/closed_removing. Authored-by: itholic <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
…able test ### What changes were proposed in this pull request? This PR proposes to remove `closed` parameter from `ps.date_range` & enable test. See pandas-dev/pandas#40245 more detail. ### Why are the changes needed? To support pandas 2.0.0 and above. ### Does this PR introduce _any_ user-facing change? `closed` parameter will no longer available from `ps.date_range` API. ### How was this patch tested? Enabling the existing UT. Closes apache#42389 from itholic/closed_removing. Authored-by: itholic <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
…able test ### What changes were proposed in this pull request? This PR proposes to remove `closed` parameter from `ps.date_range` & enable test. See pandas-dev/pandas#40245 more detail. ### Why are the changes needed? To support pandas 2.0.0 and above. ### Does this PR introduce _any_ user-facing change? `closed` parameter will no longer available from `ps.date_range` API. ### How was this patch tested? Enabling the existing UT. Closes apache#42389 from itholic/closed_removing. Authored-by: itholic <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
The pd.date_range() argument "closed" was deprecated in Pandas 1.4 with "inclusive" as the preferred replacement. See pandas-dev/pandas#40245. The expanding() argument "center" was deprecated in Pandas 1.1 as "non-sensical" with no replacement. See pandas-dev/pandas#20647. As discussed in that issue, I believe the use of center=True is a bug in the Crespo implementation, and removing it is the right thing to do. Both of these deprecated arguments were removed in Pandas 2.0, so this change is needed to make Crespo work with recent Pandas versions. To ensure no breakage because of this change, I'm adding a pandas>=1.4.0 dependency version constraint to ensure the presence of the "inclusive" argument to pd.date_range().
There are some methods where boundary inputs are required.
This issue proposes standardising to the keyword arg:
inclusive
and using values{"both", "neither", "left", "right"}
.'inclusive' in {"both", "neither", "left", "right"}
'inclusive' in {"both", "neither", "left", "right"}
More methods yet to be identified.
The text was updated successfully, but these errors were encountered: