dask.dataframe.Series.str.center

dask.dataframe.Series.str.center

dataframe.Series.str.center(width, fillchar: str = ' ')

Pad left and right side of strings in the Series/Index.

This docstring was copied from pandas.core.strings.accessor.StringMethods.center.

Some inconsistencies with the Dask version may exist.

Equivalent to str.center().

Parameters
widthint

Minimum width of resulting string; additional characters will be filled with fillchar.

fillcharstr

Additional character for filling, default is whitespace.

Returns
Series/Index of objects.