🍾 Xarray is now 10 years old! 🎉

xarray.DataArray.str.wrap

xarray.DataArray.str.wrap#

DataArray.str.wrap(width, **kwargs)[source]#

Wrap long strings in the array in paragraphs with length less than width.

This method has the same keyword parameters and defaults as textwrap.TextWrapper.

If width is array-like, it is broadcast against the array and applied elementwise.

Parameters:
Returns:

wrapped (same type as values)