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

ERR: need a better error message when trying to compare incompat types on merge #15800

Closed
jreback opened this Issue Mar 24, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@jreback
Contributor

jreback commented Mar 24, 2017

xref #11410 (comment)

These are both datetimes, but not compatible.

In [8]: df = DataFrame({'A':pd.date_range('20130101',periods=3),'B':pd.date_range('20130101',periods=3,tz='US/Eastern')})

In [9]: pd.merge(df, df, left_on='A', right_on='B')
TypeError: Argument 'values' has incorrect type (expected numpy.ndarray, got Index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment