Skip to content

Commit 2850933

Browse files
REF: simplify reindexing in _align_series()
Follow-up to #46058
1 parent 1c8199f commit 2850933

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/core/generic.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -9013,15 +9013,8 @@ def _align_series(
90139013
elif lidx is None:
90149014
left = self.copy() if copy else self
90159015
else:
9016-
data = algos.take_nd(
9017-
self.values,
9018-
lidx,
9019-
allow_fill=True,
9020-
fill_value=None,
9021-
)
9022-
90239016
left = self._constructor(
9024-
data=data, columns=self.columns, index=join_index
9017+
self._mgr.reindex_indexer(join_index, lidx, axis=1, copy=copy)
90259018
)
90269019

90279020
right = other._reindex_indexer(join_index, ridx, copy)

0 commit comments

Comments
 (0)