Skip to main content

isdecimal

Function isdecimal 

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

Return true where every character is a Unicode decimal digit (Numeric_Type = Decimal) and the string is non-empty. Matches numpy.strings.isdecimal / CPython str.isdecimal() (Py_UNICODE_ISDECIMAL). Stricter than isdigit: superscripts (²), circled digits () and fractions (½) return false, while non-ASCII positional decimals such as fullwidth and Arabic-Indic ٣ return true. See [is_decimal_char]/[DECIMAL_RANGES].