codekingpro/portable-devtools
115k
1import numpy as np
2import numpy.typing as npt
3
4AR_U: npt.NDArray[np.str_]
5AR_S: npt.NDArray[np.bytes_]
6
7np.char.equal(AR_U, AR_S) # type: ignore[arg-type]
8np.char.not_equal(AR_U, AR_S) # type: ignore[arg-type]
9
10np.char.greater_equal(AR_U, AR_S) # type: ignore[arg-type]
11np.char.less_equal(AR_U, AR_S) # type: ignore[arg-type]
12np.char.greater(AR_U, AR_S) # type: ignore[arg-type]
13np.char.less(AR_U, AR_S) # type: ignore[arg-type]
14
15np.char.encode(AR_S) # type: ignore[arg-type]
16np.char.decode(AR_U) # type: ignore[arg-type]
17
18np.char.join(AR_U, b"_") # type: ignore[arg-type]
19np.char.join(AR_S, "_") # type: ignore[arg-type]
20
21np.char.ljust(AR_U, 5, fillchar=b"a") # type: ignore[arg-type]
22np.char.rjust(AR_U, 5, fillchar=b"a") # type: ignore[arg-type]
23
24np.char.lstrip(AR_U, chars=b"a") # type: ignore[arg-type]
25np.char.lstrip(AR_S, chars="a") # type: ignore[arg-type]
26np.char.strip(AR_U, chars=b"a") # type: ignore[arg-type]
27np.char.strip(AR_S, chars="a") # type: ignore[arg-type]
28np.char.rstrip(AR_U, chars=b"a") # type: ignore[arg-type]
29np.char.rstrip(AR_S, chars="a") # type: ignore[arg-type]
30
31np.char.partition(AR_U, b"a") # type: ignore[arg-type]
32np.char.partition(AR_S, "a") # type: ignore[arg-type]
33np.char.rpartition(AR_U, b"a") # type: ignore[arg-type]
34np.char.rpartition(AR_S, "a") # type: ignore[arg-type]
35
36np.char.replace(AR_U, b"_", b"-") # type: ignore[arg-type]
37np.char.replace(AR_S, "_", "-") # type: ignore[arg-type]
38
39np.char.split(AR_U, b"_") # type: ignore[arg-type]
40np.char.split(AR_S, "_") # type: ignore[arg-type]
41np.char.rsplit(AR_U, b"_") # type: ignore[arg-type]
42np.char.rsplit(AR_S, "_") # type: ignore[arg-type]
43
44np.char.count(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
45np.char.count(AR_S, "a", end=9) # type: ignore[arg-type]
46
47np.char.endswith(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
48np.char.endswith(AR_S, "a", end=9) # type: ignore[arg-type]
49np.char.startswith(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
50np.char.startswith(AR_S, "a", end=9) # type: ignore[arg-type]
51
52np.char.find(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
53np.char.find(AR_S, "a", end=9) # type: ignore[arg-type]
54np.char.rfind(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
55np.char.rfind(AR_S, "a", end=9) # type: ignore[arg-type]
56
57np.char.index(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
58np.char.index(AR_S, "a", end=9) # type: ignore[arg-type]
59np.char.rindex(AR_U, b"a", start=[1, 2, 3]) # type: ignore[arg-type]
60np.char.rindex(AR_S, "a", end=9) # type: ignore[arg-type]
61
62np.char.isdecimal(AR_S) # type: ignore[arg-type]
63np.char.isnumeric(AR_S) # type: ignore[arg-type]
64 