-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: fix HDFStore iterator to handle a where properly (GH8014) #8029
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
Conversation
cc @bboerner |
@jreback, the fix looks good, thanks! |
@bboerner ok this is fixed for a partial selection case. note when you put up a fix, it should be on top of the current PR and only show the changes. e.g. just create whatever the changes are; these are local to you and don't modify anything else (unless they are pulled in). |
@jreback, thanks I verified the fix. And for the explanation about submitting fixes. Several thoughts:
Regards. |
I don't think this can return a list of empty frames, but just a list of a single empty frame e.g. your selection is completely invalid, then you will get a single empty frame. (but should test this). |
updated |
actually I think its correct to yield empties if the query doesn't select anything (you have to remember the columns are returned correct). Otherwise this is odd I think. You should get back something for each iteration and empty is valid. |
Thanks.
never prints True so I suggest that for a where clause which selects no rows that:
should also not print True. Commit bboerner/pandas@7fedf5b contains the test cases illustrating. If you'd like me to open this as a seperate issue let me know. Regards. |
ok, updated. (changed 1 item in your test which seemed wrong, see my comment). |
Thanks, look good. Is there a performance preference for Regards. |
doesn't make any difference |
Thanks. |
BUG: fix HDFStore iterator to handle a where properly (GH8014)
closes #8014