Skip to content

TST: new test for incorrect series assignment #29378

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

Merged

Conversation

ganevgv
Copy link
Contributor

@ganevgv ganevgv commented Nov 3, 2019

@alimcmaster1 alimcmaster1 added Testing pandas testing functions or related to the test suite Indexing Related to indexing on series/frames, not to indexes themselves labels Nov 3, 2019
@ganevgv ganevgv force-pushed the tests/series_incorrect_assignment_test branch from de39ac0 to 2f0fa1e Compare November 3, 2019 19:23
@@ -391,6 +391,22 @@ def test_setslice(datetime_series):
assert sl.index.is_unique is True


def test_incorrect_assigment():
Copy link
Contributor

Choose a reason for hiding this comment

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

can you change this test name to be more informative, something like

test_error_raised_on_2d_to_1d

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback @jreback! Changed the test name to test_2d_to_1d_assignment_error_raised.

@jreback jreback added this to the 1.0 milestone Nov 4, 2019
@ganevgv ganevgv force-pushed the tests/series_incorrect_assignment_test branch from b7c2ab3 to 76cd061 Compare November 6, 2019 20:30
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

@ganevgv minor nit. test name should end with _raises for consistency with other tests. otherwise lgtm.

Co-Authored-By: Simon Hawkins <[email protected]>
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

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

Thanks @ganevgv!

Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
* add incorrect series assignment

* add incorrect series assignment

* passes git diff upstream

* change test name

* change name test

Co-Authored-By: Simon Hawkins <[email protected]>
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* add incorrect series assignment

* add incorrect series assignment

* passes git diff upstream

* change test name

* change name test

Co-Authored-By: Simon Hawkins <[email protected]>
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* add incorrect series assignment

* add incorrect series assignment

* passes git diff upstream

* change test name

* change name test

Co-Authored-By: Simon Hawkins <[email protected]>
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.

Inconsistent error raising in indexing
5 participants