From a75d57ae996296cc0b80176634de435be0ebc4fc Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Wed, 8 Aug 2018 13:43:16 +0200 Subject: [PATCH] CLN: remove redundant call to ensure_index --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8205d3df377f5..638129291b495 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7616,7 +7616,7 @@ def _arrays_to_mgr(arrays, arr_names, index, columns, dtype=None): arrays = _homogenize(arrays, index, dtype) # from BlockManager perspective - axes = [ensure_index(columns), ensure_index(index)] + axes = [ensure_index(columns), index] return create_block_manager_from_arrays(arrays, arr_names, axes)