Skip to content

TST: Adding merge test for non-string columns [Ref 17962] #29370

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

Conversation

sofiane87
Copy link
Contributor

@simonjayhawkins simonjayhawkins added the Testing pandas testing functions or related to the test suite label Nov 2, 2019
right = left.astype(float)
expected = left

tm.assert_frame_equal(expected, pd.merge(left, right))
Copy link
Member

@mroeschke mroeschke Nov 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you assign result = pd.merge(left, right) before this statement so this line can be tm.assert_frame_equal(expected, result)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is now done

@jreback jreback added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Nov 3, 2019
@jreback jreback added this to the 1.0 milestone Nov 3, 2019
@jreback
Copy link
Contributor

jreback commented Nov 3, 2019

lgtm, pending @mroeschke comment

@mroeschke mroeschke merged commit 9918158 into pandas-dev:master Nov 3, 2019
@mroeschke
Copy link
Member

Thanks @sofiane87!

Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
…#29370)

* TST: Adding merge test for non-string columns [Ref 17962]

* assign result before assert
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
…#29370)

* TST: Adding merge test for non-string columns [Ref 17962]

* assign result before assert
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
…#29370)

* TST: Adding merge test for non-string columns [Ref 17962]

* assign result before assert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: merging with non-stringlike columns can raise
4 participants