BUG/TST: PeriodArray.__setitem__ with slice and list-like value fails #23978
Labels
ExtensionArray
Extending pandas with custom dtypes or arrays.
good first issue
Indexing
Related to indexing on series/frames, not to indexes themselves
Period
Period data type
Testing
pandas testing functions or related to the test suite
Milestone
We should be checking that the if
key
is a sliceThen, if they slice length doesn't match with value, NumPy will complain at the end when we do
self._data[key] = value
.I've fixed this on my all-in-one branch. To close this issue, we should also add a base extension tests to BaseSetitemTests like
and a successful one like
(those are untested)
The text was updated successfully, but these errors were encountered: