-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: .drop() doesn't parse strings for DatetimeIndex. #5355
Comments
related #6599 |
Updated example with frame:
|
@jorisvandenbossche why do you think this should work? this is partial string indexing. I mean it could, but I think drop being strict is a good thing. |
I am not necessarily saying that this should work. I was going through old issues and closing/updating some, so updated the title / added a better example of the original issue here. I agree partial strings interpretation should not work with drop, but in the example above, it is not a partial string that embodies multiple rows. It is just a single label represented by a string instead of |
Looks to work on main now. Could use a test |
Tests the drop function when parsing a string into DateTimeIndex
* Adds test for #5355 Tests the drop function when parsing a string into DateTimeIndex * Fix linting --------- Co-authored-by: D067751 <fabrizio.primerano@sap.com>
@MarcoGorelli Can this issue be closed given that it is both fixed and tested by now? |
thanks, not sure why it didn't close automatically |
Needs to coerce:
e.g.
The text was updated successfully, but these errors were encountered: