Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ERR: better error message on invalid .query input #13139
Comments
|
I supppose this could be a better error message. That is invalid input. |
jreback
added Difficulty Novice Error Reporting Effort Low
labels
May 11, 2016
jreback
added this to the
Next Major Release
milestone
May 11, 2016
jreback
changed the title from
[BUG] DataFrame.query fails on empty input to ERR: better error message on invalid .query input
May 11, 2016
|
There is already a helper function for that: _check_expression(expr) Problem is, this function is only executed in the for loop: eval.py#L246-L247 A simple I could send a PR(first OS contribution, ever) |
|
yes u can move it |
tserafim
referenced
this issue
Oct 22, 2016
Closed
ERR: Fix GH13139: better error message on invalid pd.eval and df.query input #14473
jreback
modified the milestone: 0.19.1, Next Major Release
Oct 24, 2016
tserafim
added a commit
to tserafim/pandas
that referenced
this issue
Oct 24, 2016
|
|
tserafim |
77483dd
|
jreback
closed this
in 1308884
Oct 24, 2016
jorisvandenbossche
added a commit
to jorisvandenbossche/pandas
that referenced
this issue
Nov 2, 2016
|
|
tserafim + jorisvandenbossche |
6ff4108
|
amolkahat
added a commit
to amolkahat/pandas
that referenced
this issue
Nov 26, 2016
|
|
tserafim + amolkahat |
aad7ce3
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gaow commentedMay 11, 2016
Code Sample
Expected output
If I run query with an empty string I should expect no output, however:
The problem lies on the last line of https://github.com/pydata/pandas/blob/master/pandas/computation/eval.py
I'm not sure of a proper fix so I'm opening this issue instead of pull request.
output of
pd.show_versions()