-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: Series.get with Float64Index and numpy nan returns empty Series #8569
Comments
indexing with maybe |
Well, it's being called like this:
|
and why would you do that? again simply use |
The code (I ran across the difference while regression testing, I'm not the original author) is basically trying to merge a Series into a DataFrame so the actual code was something like:
I just noticed the behavior was inconsistent between versions (I'm going from 0.9 to 14.1). |
well, that is quite inefficient, and not what you want to do anyhow, is their a reason you are not using |
I'm going to end up replacing it with the second option. I work with a lot of people who write code as a part of their job, but who aren't programmers, and they don't always make the best choices. Anyways, I thought that the result of series.get(np.nan) was unusual, but feel free to close if this isn't worth it. Thanks. |
I do appreciate the report (esp since it's an apparent change from a long ago version) I may link this to another issue let me see |
…dev#16619) (cherry picked from commit 2b44868)
I tried to use series.get(x) (where x is np.nan in some instance) and the result was an empty series. It seems like it should just return None if it can't be found.
The text was updated successfully, but these errors were encountered: