xarray.DataArray.str.isdigit

DataArray.str.isdigit()

Check whether all characters in each string are digits.

Returns

isdigit – Array of boolean values with the same shape as the original array.

Return type

array of bool