-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
TST: new test for incorrect series assignment #29378
Conversation
de39ac0
to
2f0fa1e
Compare
@@ -391,6 +391,22 @@ def test_setslice(datetime_series): | |||
assert sl.index.is_unique is True | |||
|
|||
|
|||
def test_incorrect_assigment(): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
.
b7c2ab3
to
76cd061
Compare
There was a problem hiding this 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]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ganevgv! |
* 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]>
* 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]>
* 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]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff