-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Partial date indexing only works with single key #27180
Comments
I know ;-) But there is no reason why |
If we do change/fix this, i think DatetimeIndex._index_as_unique will just be always-False. |
it isn't obvious that this is a useful feature. we have been trying to remove this from |
closing as wont' fix |
Code Sample, a copy-pastable example if possible
Problem description
If an indexing mechanism works for individual key, it would be expected to also work for lists of keys, and this is more or less the status quo for other indexes that allow some partial/smart selection.
IntervalIndex
works just fine:MultiIndex
doesn't (will open a bug now)... but this is worked around in indexing code (which shouldn't happen):
Expected Output
The same as when passing a single key.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 7ceefb3
python : 3.7.3.candidate.1
python-bits : 64
OS : Linux
OS-release : 4.9.0-9-amd64
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : it_IT.UTF-8
LOCALE : it_IT.UTF-8
pandas : 0.25.0.dev0+861.g7ceefb3f2.dirty
numpy : 1.16.4
pytz : 2016.7
dateutil : 2.8.0
pip : 9.0.1
setuptools : 41.0.1
Cython : 0.29.2
pytest : 4.6.3
hypothesis : 3.71.11
sphinx : 1.4.9
blosc : None
feather : None
xlsxwriter : 0.9.6
lxml.etree : 4.3.2
html5lib : 0.999999999
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.5.0
pandas_datareader: 0.2.1
bs4 : 4.5.3
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.2
matplotlib : 3.0.2
numexpr : 2.6.9
openpyxl : 2.3.0
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.0.15
tables : 3.4.4
xarray : None
xlrd : 1.0.0
xlwt : 1.3.0
xlsxwriter : 0.9.6
The text was updated successfully, but these errors were encountered: