We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a86745e commit 4942bacCopy full SHA for 4942bac
pandas/core/reshape/concat.py
@@ -710,8 +710,12 @@ def _get_concat_axis_series(
710
) -> Index:
711
"""Return result concat axis when concatenating Series objects."""
712
if ignore_index:
713
- total_length = sum(len(obj) for obj in objs)
714
- return default_index(total_length)
+- total_length = sum(len(obj) for obj in objs)
++ if bm_axis:
715
++ total_length = len(objs)
716
++ else:
717
++ total_length = sum(len(obj) for obj in objs)
718
+ return default_index(total_length)
719
elif bm_axis == 0:
720
indexes = [x.index for x in objs]
721
if keys is None:
0 commit comments