We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a42cbe commit f7bf5abCopy full SHA for f7bf5ab
pandas/core/strings.py
@@ -48,6 +48,8 @@ def cat_core(list_of_columns, sep):
48
nd.array
49
The concatenation of list_of_columns with sep
50
"""
51
+ if sep == '':
52
+ return np.sum(list_of_columns, axis=0)
53
list_with_sep = [sep] * (2 * len(list_of_columns) - 1)
54
list_with_sep[::2] = list_of_columns
55
return np.sum(list_with_sep, axis=0)
0 commit comments