xarray.DataArray.str.get¶
-
DataArray.str.
get
(i, default='')[source]¶ Extract character number i from each string in the array.
If i is array-like, they are broadcast against the array and applied elementwise.
- Parameters
i (
int
or array-like ofint
) – Position of element to extract. If array-like, it is broadcast.default (optional) – Value for out-of-range index. If not specified (None) defaults to an empty string.
- Returns