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 b7d0ab8 commit 154496aCopy full SHA for 154496a
pandas/core/arrays/string_arrow.py
@@ -257,10 +257,7 @@ def __len__(self) -> int:
257
258
@doc(ExtensionArray.factorize)
259
def factorize(self, na_sentinel: int = -1) -> Tuple[np.ndarray, ExtensionArray]:
260
- if pa.types.is_dictionary(self._data.type):
261
- raise NotImplementedError()
262
- elif self._data.num_chunks == 1:
263
- # Dictionaryencode and do the same as above
+ if self._data.num_chunks == 1:
264
encoded = self._data.chunk(0).dictionary_encode()
265
indices = encoded.indices.to_pandas()
266
if indices.dtype.kind == "f":
0 commit comments