🍾 Xarray is now 10 years old! 🎉

xarray.DataArray.str.decode

xarray.DataArray.str.decode#

DataArray.str.decode(encoding, errors='strict')[source]#

Decode character string in the array using indicated encoding.

Parameters:
  • encoding (str) – The encoding to use. Please see the Python documentation codecs standard encoders section for a list of encodings handlers.

  • errors (str, default: "strict") – The handler for encoding errors. Please see the Python documentation codecs error handlers for a list of error handlers.

Returns:

decoded (same type as values)