-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API/DEPR: casting bool-indexer to slice in dt64/td64/period #36210
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
Comments
cc @jorisvandenbossche i havent thought of any nice ways to deprecate this (s.t. we can say "do X to get the future behavior, do Y to get the old behavior"). thoughts? |
Hmm, I also can't think of any way to deprecate this .. I am inclined to say that in this case it might be fine to simply change (because it's a behaviour that only comes up in rare value-dependent cases, and when it happens can lead to silent bugs). |
I checked what happened if I remove this behavior: 26 test failures, all about a freq mismatch. |
Because the slice keeps the freq per definition, and when doing a mask it always looses the freq? |
That was my thought too, but when i tried patching get_getitem_freq to account for that it didnt help |
update: got it working, was patching incorrectly in one place |
We use special logic for dt64/td64/period dtypes that makes view/copy behavior different from other dtypes:
cc @jorisvandenbossche IIRC you advocated not doing this special casing.
The text was updated successfully, but these errors were encountered: