We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee50197 commit bf270f6Copy full SHA for bf270f6
pandas/core/internals/array_manager.py
@@ -73,7 +73,10 @@
73
extract_array,
74
sanitize_array,
75
)
76
-from pandas.core.indexers import maybe_convert_indices
+from pandas.core.indexers import (
77
+ maybe_convert_indices,
78
+ validate_indices,
79
+)
80
from pandas.core.indexes.api import (
81
Index,
82
ensure_index,
@@ -965,8 +968,9 @@ def _reindex_indexer(
965
968
new_arrays.append(arr)
966
969
967
970
else:
971
+ validate_indices(indexer, len(self._axes[0]))
972
new_arrays = [
- algos.take(
973
+ take_nd(
974
arr,
975
indexer,
976
allow_fill=True,
0 commit comments