We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3334832 commit 5c7abcaCopy full SHA for 5c7abca
pandas/core/internals/managers.py
@@ -969,6 +969,10 @@ def fast_xs(self, loc: int) -> SingleBlockManager:
969
n = len(self)
970
971
if isinstance(dtype, ExtensionDtype):
972
+ # TODO: use object dtype as workaround for non-performant
973
+ # EA.__setitem__ methods. (primarily ArrowExtensionArray.__setitem__
974
+ # when iteratively setting individual values)
975
+ # https://github.com/pandas-dev/pandas/pull/54508#issuecomment-1675827918
976
result = np.empty(n, dtype=object)
977
else:
978
result = np.empty(n, dtype=dtype)
0 commit comments