We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ed4c9 commit 434df7dCopy full SHA for 434df7d
pandas/tests/extension/json/array.py
@@ -111,7 +111,7 @@ def factorize(self, na_sentinel=-1):
111
112
# fixup NA
113
if self.isna().any():
114
- na_code = self.isna().argmax()
+ na_code = labels[self.isna()][0]
115
116
labels[labels == na_code] = na_sentinel
117
labels[labels > na_code] -= 1
pandas/tests/extension/json/test_json.py
@@ -75,10 +75,8 @@ class TestMissing(base.BaseMissingTests):
75
76
77
class TestMethods(base.BaseMethodsTests):
78
- unhashable = pytest.mark.skip(reason="Unhashable")
79
-
80
- @unhashable
81
- def test_factorize(self):
+ @pytest.mark.skip(reason="Unhashable")
+ def test_value_counts(self):
82
pass
83
84
0 commit comments