-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: HDFStore.select_as_multiple doesn't respect start/stop kwargs #16209
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
Comments
yep, looks like https://github.com/pandas-dev/pandas/blob/master/pandas/io/pytables.py#L829 needs to pass pull-requests welcome! |
Hmm, so I'm attempting to submit a PR. I've added a new test that mirrors the example from above, but when I insert start/stop into line 829, I get the following test failure. I've spent some time digging around to see why this isn't working, but I can't quite figure out why. It looks like this exception is raised here, which means the 'where' variable (an int64index) is passed to self.generate. I don't know enough about the code to know if that's expected or not.
|
you have to step thru. This is an evaluation tree which can go pretty deep. However I think that all you need to do is make the change I suggested above. |
Ahh, I think I figured it out. I also needed to pass self.start/stop to this function call here: https://github.com/pandas-dev/pandas/blob/master/pandas/io/pytables.py#L1423 I'll submit a PR soon! |
Currently select_as_multiple returns the entire table. I would expect, if start=0 and stop=1, for just one row to be returned
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 32.3.1.post20170108
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: 0.8.0
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.5.3
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.4.0
numexpr: 2.6.1
matplotlib: None
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: 0.9.6
lxml: None
bs4: 4.5.3
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.1.5
pymysql: 0.7.9.None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: