Skip to content

Commit 91686e6

Browse files
toobazjreback
authored andcommitted
CLN: remove redundant call to ensure_index (#22245)
1 parent 8206c36 commit 91686e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7616,7 +7616,7 @@ def _arrays_to_mgr(arrays, arr_names, index, columns, dtype=None):
76167616
arrays = _homogenize(arrays, index, dtype)
76177617

76187618
# from BlockManager perspective
7619-
axes = [ensure_index(columns), ensure_index(index)]
7619+
axes = [ensure_index(columns), index]
76207620

76217621
return create_block_manager_from_arrays(arrays, arr_names, axes)
76227622

0 commit comments

Comments
 (0)