-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TypeError in Index.get_indexer_non_unique if Index.is_all_dates #19187
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
hmm, I think we could remove the check from |
this is pretty much a result of #19204 |
so will leave this open, but it is going to be tied to fixing that one. |
my point is we do not want to infer object type and simply use the inferred property (and include for period timedelta and timestamp) then this issue is moot |
This appears fixed on master, needs test. |
is_all_dates has been deprecated, so if this isnt closed by then, we can close it when is_all_dates is removed |
Since it looks like |
Code Sample, a copy-pastable example if possible
Problem description
Not a great example, but this can bite more reasonable code. It is due to the fact that
asi8
is used on a non-DatetimeIndex
. In fact,asi8
should really disappear in the non-datetime-specific parts of the code base.Expected Output
(array([0]), array([]))
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-5-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.22.0.dev0+448.gdbec3c92e
pytest: 3.0.6
pip: 9.0.1
setuptools: 33.1.1
Cython: 0.25.2
numpy: 1.12.1
scipy: 0.18.1
pyarrow: None
xarray: None
IPython: 5.2.2
sphinx: None
patsy: 0.4.1+dev
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.3.0
numexpr: 2.6.1
feather: 0.3.1
matplotlib: 2.0.0
openpyxl: 2.3.0
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: None
lxml: 3.7.1
bs4: 4.5.3
html5lib: 0.999999999
sqlalchemy: 1.0.15
pymysql: None
psycopg2: None
jinja2: 2.8
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: