xarray.DataArray.str.get

DataArray.str.get(i, default='')

Extract character number i from each string in the array.

Parameters
  • i (int) – Position of element to extract.

  • default (optional) – Value for out-of-range index. If not specified (None) defaults to an empty string.

Returns

items

Return type

array of object