Skip to main content

isdigit

Function isdigit 

Source
pub fn isdigit<D: Dimension>(a: &StringArray<D>) -> FerrayResult<Array<bool, D>>
Expand description

Return true where every character is a digit and the string is non-empty. Matches numpy.strings.isdigit, which delegates per element to CPython’s str.isdigit() (Py_UNICODE_ISDIGIT): Unicode Numeric_Type of Decimal or Digit. This is broader than isdecimal (it accepts superscripts/subscripts like ²³, circled digits like , and parenthesized digits) and narrower than isnumeric (it rejects fractions like ½ and letter-numerals like ). See [is_digit_char]/[DIGIT_RANGES].