Skip to content
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

COMPAT: avoid invalid buffer comparisions #18252

Merged
merged 1 commit into from
Nov 13, 2017
Merged

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Nov 12, 2017

closes #18064

@jreback jreback added the Compat pandas objects compatability with Numpy or Python functions label Nov 12, 2017
@jreback jreback added this to the 0.22.0 milestone Nov 12, 2017
@jreback jreback merged commit cff2842 into pandas-dev:master Nov 13, 2017
@codecov
Copy link

codecov bot commented Nov 13, 2017

Codecov Report

Merging #18252 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18252      +/-   ##
==========================================
+ Coverage    91.4%   91.41%   +<.01%     
==========================================
  Files         164      164              
  Lines       50100    50100              
==========================================
+ Hits        45796    45799       +3     
+ Misses       4304     4301       -3
Flag Coverage Δ
#multiple 89.23% <ø> (+0.02%) ⬆️
#single 39.52% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.8% <0%> (-0.1%) ⬇️
pandas/plotting/_converter.py 65.2% <0%> (+1.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b8474a...b5ca2e1. Read the comment docs.

@codecov
Copy link

codecov bot commented Nov 13, 2017

Codecov Report

Merging #18252 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18252      +/-   ##
==========================================
+ Coverage    91.4%   91.41%   +<.01%     
==========================================
  Files         164      164              
  Lines       50100    50100              
==========================================
+ Hits        45796    45799       +3     
+ Misses       4304     4301       -3
Flag Coverage Δ
#multiple 89.23% <ø> (+0.02%) ⬆️
#single 39.52% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.8% <0%> (-0.1%) ⬇️
pandas/plotting/_converter.py 65.2% <0%> (+1.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b8474a...b5ca2e1. Read the comment docs.

@martinholmer
Copy link

I don't see merged pull request #18252 in the 0.22.0 milestone even though @jreback said he added it to that milestone. Did I miss this pull request in the 0.22.0 milestone? The Tax-Calculator project is having difficulties with this and is looking forward to a fix in the 0.22.0 release of Pandas.

@hdoupe

@jorisvandenbossche
Copy link
Member

If you scroll up you will see that this PR is tagged with the 0.22 milestone. Or do you mean something else?
But, as far as I know this is a rather internal fix-up PR, without reported user facing problems. If that is the case, can you specify the issues you have with this? (because if that is the case, we could consider tagging this for 0.21.1)

@martinholmer
Copy link

@jorisvandenbossche, Thanks for you quick response in which you said:

If you scroll up you will see that this PR is tagged with the 0.22 milestone. Or do you mean something else?

Yes, I see the mention of 0.22 in the pull request, but I didn't see it listed in the 0.22 milestone list here.
Maybe I missed it or I'm confused.

@martinholmer
Copy link

@jorisvandenbossche, Sorry for my confusion, but I now see #18252 on the fifth page of the merged pull requests in the 0.22 milestone. Guess 0.22 is scheduled for early January 2018 distribution.

@hdoupe

@jorisvandenbossche
Copy link
Member

But still, how is this affecting your code?
That would be interesting to know, so we can actually test for that

@martinholmer
Copy link

@jorisvandenbossche asked:

But still, how is this affecting your code?
That would be interesting to know, so we can actually test for that.

We are having what I hope are just cosmetic problems: we are getting the following kind of ignored error message:

ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long'
Exception ValueError: "Buffer dtype mismatch, expected 'Python object' but got 'long'" in 'pandas._libs.lib.is_bool_array' ignored

@jorisvandenbossche
Copy link
Member

OK, then it is the same issue, but there is no problem in the actual behaviour.

@martinholmer
Copy link

@jorisvandenbossche said:

OK, then it is the same issue, but there is no problem in the actual behaviour.

Yes, that's what we hope. We'll see if the Pandas change in #18252 makes the ignored error messages go away when we move to Pandas 0.22. If they don't, then we'll have to look at our code more carefully.

Thanks for your quick and thorough responses to my questions.

cc @hdoupe

@bplant17
Copy link

I'm still getting the error. :(

@jorisvandenbossche
Copy link
Member

@bplant17 if you still have a problem, please open an new issue with more information

@romquentin romquentin mentioned this pull request Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERR: lib.is_xyz_array errors, some ignored
4 participants