Skip to content

datetime comparison from pandas.core.seroes.Series to numpy.datetime64 fail for pandas 0.21 #18569

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

Closed
zippeurfou opened this issue Nov 29, 2017 · 4 comments
Labels
Datetime Datetime data dtype Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@zippeurfou
Copy link

zippeurfou commented Nov 29, 2017

Code Sample, a copy-pastable example if possible

pandas 0.20.3
image

import pandas as pd
rng = pd.DataFrame({ "A" : pd.date_range('1/1/2011', periods=720, freq='H')})
myvar = rng["A"] < rng["A"].values[3]

Works.
image

pandas 0.21
image
exact same code:
image

I am not sure why this would fail now?
Note: it might be fixed in #18188

@zippeurfou
Copy link
Author

zippeurfou commented Nov 30, 2017

Closing as it works with the master version
image
image

@jorisvandenbossche
Copy link
Member

We should still make sure this works with 0.21.1

@jreback
Copy link
Contributor

jreback commented Nov 30, 2017

this is all well tested in #18188 with almost exactly this example. I see no reason to have this issue open.

@jreback jreback added Indexing Related to indexing on series/frames, not to indexes themselves Datetime Datetime data dtype labels Nov 30, 2017
@jreback jreback added this to the 0.21.1 milestone Nov 30, 2017
@jreback jreback closed this as completed Nov 30, 2017
@jorisvandenbossche
Copy link
Member

Of course not, I was just reopening to ensure this was the case :-) (I didn't search yet where it could have been fixed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

3 participants