Series.str.wrap()
pandas.Series.str.wrap
-
Series.str.wrap(width, **kwargs)
-
Wrap long strings in the Series/Index to be formatted in paragraphs with length less than a given width.
This method has the same keyword parameters and defaults as
textwrap.TextWrapper
.Parameters: width : int
Maximum line-width
expand_tabs : bool, optional
If true, tab characters will be expanded to spaces (default