pandas.Series.str.join

pandas 3.1.1 · Series and accessors · method

Combine the strings inside each list-like value with the specified separator.

Call syntax

Series.str.join(sep)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
sep Required
Positional or keyword
str

Specify the separator between fields or string pieces.

Returns

Series/Index: object