-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Series.update with categorical #38873
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
Hello @ftrihardjo! 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-01-03 02:14:22 UTC |
Hi @ftrihardjo - could you please put a meaningful title and link to the issue you're closing in the pull request body? |
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.
looks good, ping on green,
@@ -108,3 +108,11 @@ def test_update_from_non_series(self, series, other, expected): | |||
def test_update_extension_array_series(self, result, target, expected): | |||
result.update(target) | |||
tm.assert_series_equal(result, expected) | |||
def test_update_with_categorical_type(self): |
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 add a blank line before the test.
@@ -108,3 +108,11 @@ def test_update_from_non_series(self, series, other, expected): | |||
def test_update_extension_array_series(self, result, target, expected): | |||
result.update(target) | |||
tm.assert_series_equal(result, expected) | |||
def test_update_with_categorical_type(self): | |||
# GH 25744 | |||
t = CategoricalDtype(['a', 'b', 'c', 'd']) |
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.
call this dtype
see here: https://github.com/pandas-dev/pandas/pull/38873/checks?check_run_id=1634842619 make sure you have |
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 @ftrihardjo !
thanks @ftrihardjo |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff