-
Notifications
You must be signed in to change notification settings - Fork 2
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
pandas df.query() #72
Comments
However this method is prone to (A) For some reason the
(B) Unfortunately if the field that is used in the query is not present, pandas crashes instead of returning an empty dataframe. To deal with this we have three options:
Opinions? |
It seems it works for cross sections. See last commit in windows_refactoring branch. Must be tested on different objects that are not included in standard test projects. |
It looks like it works fine for wells too |
Dataframe queries can be implemented as:
This is very effective since it is possible to compare two fields:
a field and a string:
a field and a value:
and to get the whole dataframe it is possible to define a string that will be true for all rows:
(somebody says
'ilevel_0 in ilevel_0'
is more robust).The text was updated successfully, but these errors were encountered: