mars.dataframe.Series.str.center#

Series.str.center(width, fillchar=' ')#

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

Equivalent to str.center().

参数
  • width (int) – Minimum width of resulting string; additional characters will be filled with fillchar.

  • fillchar (str) – Additional character for filling, default is whitespace.

返回

filled

返回类型

Series/Index of objects.