Skip to content

Commit a86745e

Browse files
authored
Fix: removed unnecessary space
1 parent a682616 commit a86745e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/reshape/concat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ def _get_concat_axis_series(
710710
) -> Index:
711711
"""Return result concat axis when concatenating Series objects."""
712712
if ignore_index:
713-
return default_index(len(objs))
713+
total_length = sum(len(obj) for obj in objs)
714+
return default_index(total_length)
714715
elif bm_axis == 0:
715716
indexes = [x.index for x in objs]
716717
if keys is None:

0 commit comments

Comments
 (0)