-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Add tests for categorical with null ea as input #37611
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
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.
yes this is what i was looking
@@ -682,3 +682,11 @@ def test_interval(self): | |||
expected_codes = np.array([0, 1], dtype="int8") | |||
tm.assert_numpy_array_equal(cat.codes, expected_codes) | |||
tm.assert_index_equal(cat.categories, idx) | |||
|
|||
@pytest.mark.parametrize("nullable", [pd.NA, NaT]) |
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.
actually you can use the null_fixture here
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.
Thx, done.
@phofl can you merge master and ping on green. |
…into tst_ea_categorical
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
cc @jreback Is this what you had in mind for ExtensionArrays and Categoricals?