Skip to content

Conversation

@ftrihardjo
Copy link
Contributor

@ftrihardjo ftrihardjo commented Jan 1, 2021

@pep8speaks
Copy link

pep8speaks commented Jan 1, 2021

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

@MarcoGorelli
Copy link
Member

Hi @ftrihardjo - could you please put a meaningful title and link to the issue you're closing in the pull request body?

@ftrihardjo ftrihardjo changed the title Contribution pandas-dev issue #25744 and #27338 Jan 1, 2021
@jreback jreback added Categorical Categorical Data Type Reshaping Concat, Merge/Join, Stack/Unstack, Explode Testing pandas testing functions or related to the test suite labels Jan 1, 2021
@jreback jreback changed the title pandas-dev issue #25744 and #27338 TST: Series.update with categorical Jan 1, 2021
@jreback jreback added this to the 1.3 milestone Jan 1, 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.

looks good, ping on green,

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):
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 add a blank line before the test.

tm.assert_series_equal(result, expected)
def test_update_with_categorical_type(self):
# GH 25744
t = CategoricalDtype(['a', 'b', 'c', 'd'])
Copy link
Contributor

Choose a reason for hiding this comment

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

call this dtype

@jreback
Copy link
Contributor

jreback commented Jan 1, 2021

see here: https://github.com/pandas-dev/pandas/pull/38873/checks?check_run_id=1634842619

make sure you have precommit installed it will fix anything when you commit

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Thanks @ftrihardjo !

@jreback jreback merged commit 4a1d3d7 into pandas-dev:master Jan 3, 2021
@jreback
Copy link
Contributor

jreback commented Jan 3, 2021

thanks @ftrihardjo

luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Categorical Categorical Data Type 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.

CategoricalDtype.update_dtype fails with Categorical Series.update fails with categorical types

4 participants