Skip to content

Conversation

@debnathshoham
Copy link
Contributor


assert df.iloc[0, 0] == df[0][0]

def test_insert_frame(self):
Copy link
Member

Choose a reason for hiding this comment

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

Your test is broken

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very confused. I am getting a seperate error message on my local.

Copy link
Member

Choose a reason for hiding this comment

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

The ci error is correct, you will have to debug locally why it is not raised for you

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed the error msg, but this is also failing. Would need some help, how same error raises multiple error msgs

@pep8speaks
Copy link

pep8speaks commented Aug 4, 2021

Hello @debnathshoham! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-08-04 17:14:31 UTC

@debnathshoham debnathshoham requested a review from phofl August 4, 2021 18:19
@jreback jreback added this to the 1.4 milestone Aug 4, 2021
@jreback jreback added Indexing Related to indexing on series/frames, not to indexes themselves Testing pandas testing functions or related to the test suite labels Aug 4, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. @phofl over to you

@phofl phofl merged commit e045034 into pandas-dev:master Aug 5, 2021
@phofl
Copy link
Member

phofl commented Aug 5, 2021

Thanks @debnathshoham

@debnathshoham debnathshoham deleted the gh42403 branch August 5, 2021 05:54
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
…as-dev#42831)

* TST: raising ValueError when inserting one dataframe in another

* added GH issue reference

* rev msg

* included both msgs

* updated

* Update test_insert.py

* Update test_insert.py

* Update test_insert.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Indexing Related to indexing on series/frames, not to indexes themselves Testing pandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: DafaFrame.insert doesn't raise an exception when inserting another DataFrame

4 participants