-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
merge_asof with one tz-aware datetime "by" parameter and another parameter raises #26649
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
Thanks for the report. Here's the traceback I get on master. Investigations and PRs welcome!
|
Good day, when debug I found this. There seems to be an error in the second column type. There's got to be, pandas/pandas/core/reshape/merge.py Lines 1510 to 1515 in ea06f8d
|
|
pandas/pandas/core/reshape/merge.py Lines 1510 to 1515 in ea06f8d
Rewrote the conversion in type 'i8' thus:
Error:
And here is what prints out on one of the stages, if you go deep into using pdb.
It seems to me that there should be a type of float. Looks like a bug or normal?
|
I don't really understand what |
Code Sample, a copy-pastable example if possible
Problem description
This is very similar to: #21184
The only difference is that the
merge_asof
by
is made of 2 columns (instead of one):When running this, I get:
Expected Output
I expect the merge_asof to work, and pick up the by column accordingly
Output of
0.24.2
INSTALLED VERSIONS
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-862.3.3.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 4.5.0
pip: 19.1.1
setuptools: 40.8.0
Cython: 0.28.5
numpy: 1.16.4
scipy: 1.1.0
pyarrow: 0.12.1
xarray: None
IPython: 7.3.0
sphinx: 1.4.6
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.3
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.1
bs4: None
html5lib: None
sqlalchemy: 1.2.18
pymysql: None
psycopg2: 2.7.1 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 0.7.0
gcsfs: None
The text was updated successfully, but these errors were encountered: