We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b966657 commit 0e59178Copy full SHA for 0e59178
pandas/tests/arrays/categorical/test_constructors.py
@@ -682,3 +682,10 @@ def test_interval(self):
682
expected_codes = np.array([0, 1], dtype="int8")
683
tm.assert_numpy_array_equal(cat.codes, expected_codes)
684
tm.assert_index_equal(cat.categories, idx)
685
+
686
+ def test_categorical_extension_array_nullable(self, nulls_fixture):
687
+ # GH:
688
+ arr = pd.arrays.StringArray._from_sequence([nulls_fixture] * 2)
689
+ result = Categorical(arr)
690
+ expected = Categorical(Series([pd.NA, pd.NA], dtype="object"))
691
+ tm.assert_categorical_equal(result, expected)
0 commit comments