1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
import numpy as np
import numpy.typing as npt
AR_U: npt.NDArray[np.str_]
AR_S: npt.NDArray[np.bytes_]
np.strings.equal(AR_U, AR_S) # type: ignore[arg-type]
np.strings.not_equal(AR_U, AR_S) # type: ignore[arg-type]
np.strings.greater_equal(AR_U, AR_S) # type: ignore[arg-type]
np.strings.less_equal(AR_U, AR_S) # type: ignore[arg-type]
np.strings.greater(AR_U, AR_S) # type: ignore[arg-type]
np.strings.less(AR_U, AR_S) # type: ignore[arg-type]
np.strings.encode(AR_S) # type: ignore[arg-type]
np.strings.decode(AR_U) # type: ignore[arg-type]
np.strings.lstrip(AR_U, b"a") # type: ignore[arg-type]
np.strings.lstrip(AR_S, "a") # type: ignore[arg-type]
np.strings.strip(AR_U, b"a") # type: ignore[arg-type]
np.strings.strip(AR_S, "a") # type: ignore[arg-type]
np.strings.rstrip(AR_U, b"a") # type: ignore[arg-type]
np.strings.rstrip(AR_S, "a") # type: ignore[arg-type]
np.strings.partition(AR_U, b"a") # type: ignore[arg-type]
np.strings.partition(AR_S, "a") # type: ignore[arg-type]
np.strings.rpartition(AR_U, b"a") # type: ignore[arg-type]
np.strings.rpartition(AR_S, "a") # type: ignore[arg-type]
np.strings.count(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # type: ignore[arg-type]
np.strings.count(AR_S, "a", 0, 9) # type: ignore[arg-type]
np.strings.endswith(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # type: ignore[arg-type]
np.strings.endswith(AR_S, "a", 0, 9) # type: ignore[arg-type]
np.strings.startswith(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # type: ignore[arg-type]
np.strings.startswith(AR_S, "a", 0, 9) # type: ignore[arg-type]
np.strings.find(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # type: ignore[arg-type]
np.strings.find(AR_S, "a", 0, 9) # type: ignore[arg-type]
np.strings.rfind(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # type: ignore[arg-type]
np.strings.rfind(AR_S, "a", 0, 9) # type: ignore[arg-type]
np.strings.index(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
np.strings.index(AR_S, "a", end=9) # type: ignore[arg-type]
np.strings.rindex(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
np.strings.rindex(AR_S, "a", end=9) # type: ignore[arg-type]
np.strings.isdecimal(AR_S) # type: ignore[arg-type]
np.strings.isnumeric(AR_S) # type: ignore[arg-type]
np.strings.replace(AR_U, b"_", b"-", 10) # type: ignore[arg-type]
np.strings.replace(AR_S, "_", "-", 1) # type: ignore[arg-type]
|