-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
categories in HDFStore don't filter correctly #13322
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
ok the issue is here:
We are searching for 'B' in the categories. And we get 0 when searched from the left, which actually means its not there (or IS the first element). So you need to check if it IS the first element
If not, then prob easiest to just return -1 (which is not a valid code, rather than 0 which IS) want to do a PR? |
Sorry, not this time, I'm teaching for the first time this month. |
np thanks for the report |
I don't understand the comments with "IS the first element". |
|
Code Sample, a copy-pastable example if possible
Actual Output:
Expected Output
Empty DataFrame for both cases.
output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.13.1+5155.g9baf452
nose: None
pip: 8.1.1
setuptools: 21.2.1
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: 0.7.2
IPython: 4.2.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: