Skip to content

Commit 0bdbdde

Browse files
committed
Review (jreback)
1 parent aa117bc commit 0bdbdde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
237237
if ndim == 2:
238238
other_axis = 1 if axis == 0 else 0 # switches between 0 & 1
239239
res = res.reindex(join_axes[0], axis=other_axis)
240-
else: # 3 for Panel; Panel4D already deprecated
240+
elif ndim == 3: # Panel
241241
other_axes = list(range(res.ndim))
242242
other_axes.pop(axis)
243243
for i in range(ndim - 1):

0 commit comments

Comments
 (0)