Skip to content

DOC: Error msg using Python keyword in numexpr query #18221 #18248

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

Merged
merged 1 commit into from
Nov 13, 2017

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Nov 12, 2017

@jreback
Copy link
Contributor

jreback commented Nov 12, 2017

note if you are up for it, #6508 and this issue could be dealt with by allowing a string on the lhs, e.g.
df.query('"class" > 0') for spaces / non-keywords.

@jreback jreback modified the milestones: 0.21.1, 0.22.0 Nov 12, 2017
@jreback jreback added the Docs label Nov 12, 2017
@jreback
Copy link
Contributor

jreback commented Nov 12, 2017

cc @chris-b1

@codecov
Copy link

codecov bot commented Nov 13, 2017

Codecov Report

Merging #18248 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18248      +/-   ##
==========================================
- Coverage   91.43%   91.41%   -0.02%     
==========================================
  Files         164      164              
  Lines       50090    50096       +6     
==========================================
- Hits        45798    45796       -2     
- Misses       4292     4300       +8
Flag Coverage Δ
#multiple 89.22% <100%> (ø) ⬆️
#single 40.38% <85.71%> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.8% <ø> (-0.1%) ⬇️
pandas/core/computation/expr.py 88.65% <100%> (+0.17%) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/indexes/datetimes.py 95.48% <0%> (+0.09%) ⬆️

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 9e3ad63...0f477de. Read the comment docs.

@codecov
Copy link

codecov bot commented Nov 13, 2017

Codecov Report

Merging #18248 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18248      +/-   ##
==========================================
- Coverage   91.43%   91.41%   -0.02%     
==========================================
  Files         164      164              
  Lines       50090    50096       +6     
==========================================
- Hits        45798    45796       -2     
- Misses       4292     4300       +8
Flag Coverage Δ
#multiple 89.22% <100%> (ø) ⬆️
#single 40.38% <85.71%> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.8% <ø> (-0.1%) ⬇️
pandas/core/computation/expr.py 88.65% <100%> (+0.17%) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/indexes/datetimes.py 95.48% <0%> (+0.09%) ⬆️

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 9e3ad63...0f477de. Read the comment docs.

@jreback jreback merged commit feaa0d0 into pandas-dev:master Nov 13, 2017
@jreback
Copy link
Contributor

jreback commented Nov 13, 2017

thanks @WillAyd

@WillAyd WillAyd deleted the parse-error branch December 12, 2017 15:40
@Atcold
Copy link

Atcold commented Mar 9, 2018

Is this working? I get a '>' not supported between instances of 'str' and 'int' error.

@WillAyd
Copy link
Member Author

WillAyd commented Mar 9, 2018

If you think it’s not working I’d suggest opening a new issue with the required information and someone will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

df.query() does not support column name 'class'
3 participants