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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
Ë
Kñúh
šãó€—dZddlZddlZddlmZddlmZddlm    Z
ddlm Z ddlm ZddlmZdd    lmZdd
l­dd lmZdd lmZdd lmZddlmZddlmZddlmZddl m!Z!m"Z"m#Z#gd¢Z$ejJejLd¬«Z&d„Z'e&e'«d„«Z(e&e'«d„«Z)e&e'«d„«Z*e&e'«d„«Z+e&e'«d„«Z,e&e'«d„«Z-ed«d„«Zed«d„«Zed«d„«Zed«Gd „d!e««Z.ed«d$d"„«Zed«d%d#„«Zy)&an
This module contains a set of functions for vectorized string
operations and methods.
 
.. note::
   The `chararray` class exists for backwards compatibility with
   Numarray, it is not recommended for new development. Starting from numpy
   1.4, if one needs arrays of strings, it is recommended to use arrays of
   `dtype` `object_`, `bytes_` or `str_`, and use the free functions
   in the `numpy.char` module for fast vectorized string operations.
 
Some methods will only be available if the corresponding string method is
available in your version of Python.
 
The preferred alias for `defchararray` is `numpy.char`.
 
éN)Ú    overrides©Úcompare_chararrays)Ú_join)Ú_rsplit)Ú_split)Ú _splitlines)Ú
set_module)Ú*)Úmultiply)Ú    partition)Ú
rpartitioné©Úarray)Úasarray)Úndarray)Úbytes_Ú    characterÚstr_)5ÚequalÚ    not_equalÚ greater_equalÚ
less_equalÚgreaterÚlessÚstr_lenÚaddr ÚmodÚ
capitalizeÚcenterÚcountÚdecodeÚencodeÚendswithÚ
expandtabsÚfindÚindexÚisalnumÚisalphaÚisdigitÚislowerÚisspaceÚistitleÚisupperÚjoinÚljustÚlowerÚlstripr ÚreplaceÚrfindÚrindexÚrjustrÚrsplitÚrstripÚsplitÚ
splitlinesÚ
startswithÚstripÚswapcaseÚtitleÚ    translateÚupperÚzfillÚ    isnumericÚ    isdecimalrrrÚ    chararrayz
numpy.char)Úmodulecó
—||fS©N©©Úx1Úx2s  úKH:\Change_password\venv_build\Lib\site-packages\numpy/_core/defchararray.pyÚ_binary_op_dispatcherrNEs €Ø ˆ8€Oócó—t||dd«S)a†
    Return (x1 == x2) element-wise.
 
    Unlike `numpy.equal`, this comparison is performed by first
    stripping whitespace characters from the end of the string.  This
    behavior is provided for backward-compatibility with numarray.
 
    Parameters
    ----------
    x1, x2 : array_like of str or unicode
        Input arrays of the same shape.
 
    Returns
    -------
    out : ndarray
        Output array of bools.
 
    Examples
    --------
    >>> import numpy as np
    >>> y = "aa "
    >>> x = "aa"
    >>> np.char.equal(x, y)
    array(True)
 
    See Also
    --------
    not_equal, greater_equal, less_equal, greater, less
    z==TrrJs  rMrrIó€ô> ˜b " d¨DÓ 1Ð1rOcó—t||dd«S)a£
    Return (x1 != x2) element-wise.
 
    Unlike `numpy.not_equal`, this comparison is performed by first
    stripping whitespace characters from the end of the string.  This
    behavior is provided for backward-compatibility with numarray.
 
    Parameters
    ----------
    x1, x2 : array_like of str or unicode
        Input arrays of the same shape.
 
    Returns
    -------
    out : ndarray
        Output array of bools.
 
    See Also
    --------
    equal, greater_equal, less_equal, greater, less
 
    Examples
    --------
    >>> import numpy as np
    >>> x1 = np.array(['a', 'b', 'c'])
    >>> np.char.not_equal(x1, 'b')
    array([ True, False,  True])
 
    z!=TrrJs  rMrrkrQrOcó—t||dd«S)aª
    Return (x1 >= x2) element-wise.
 
    Unlike `numpy.greater_equal`, this comparison is performed by
    first stripping whitespace characters from the end of the string.
    This behavior is provided for backward-compatibility with
    numarray.
 
    Parameters
    ----------
    x1, x2 : array_like of str or unicode
        Input arrays of the same shape.
 
    Returns
    -------
    out : ndarray
        Output array of bools.
 
    See Also
    --------
    equal, not_equal, less_equal, greater, less
 
    Examples
    --------
    >>> import numpy as np
    >>> x1 = np.array(['a', 'b', 'c'])
    >>> np.char.greater_equal(x1, 'b')
    array([False,  True,  True])
 
    z>=TrrJs  rMrrs€ô@ ˜b " d¨DÓ 1Ð1rOcó—t||dd«S)a¤
    Return (x1 <= x2) element-wise.
 
    Unlike `numpy.less_equal`, this comparison is performed by first
    stripping whitespace characters from the end of the string.  This
    behavior is provided for backward-compatibility with numarray.
 
    Parameters
    ----------
    x1, x2 : array_like of str or unicode
        Input arrays of the same shape.
 
    Returns
    -------
    out : ndarray
        Output array of bools.
 
    See Also
    --------
    equal, not_equal, greater_equal, greater, less
 
    Examples
    --------
    >>> import numpy as np
    >>> x1 = np.array(['a', 'b', 'c'])
    >>> np.char.less_equal(x1, 'b')
    array([ True,  True, False])
 
    z<=TrrJs  rMrr°rQrOcó—t||dd«S)a 
    Return (x1 > x2) element-wise.
 
    Unlike `numpy.greater`, this comparison is performed by first
    stripping whitespace characters from the end of the string.  This
    behavior is provided for backward-compatibility with numarray.
 
    Parameters
    ----------
    x1, x2 : array_like of str or unicode
        Input arrays of the same shape.
 
    Returns
    -------
    out : ndarray
        Output array of bools.
 
    See Also
    --------
    equal, not_equal, greater_equal, less_equal, less
 
    Examples
    --------
    >>> import numpy as np
    >>> x1 = np.array(['a', 'b', 'c'])
    >>> np.char.greater(x1, 'b')
    array([False, False,  True])
 
    ú>TrrJs  rMrrÒó€ô> ˜b " c¨4Ó 0Ð0rOcó—t||dd«S)aŸ
    Return (x1 < x2) element-wise.
 
    Unlike `numpy.greater`, this comparison is performed by first
    stripping whitespace characters from the end of the string.  This
    behavior is provided for backward-compatibility with numarray.
 
    Parameters
    ----------
    x1, x2 : array_like of str or unicode
        Input arrays of the same shape.
 
    Returns
    -------
    out : ndarray
        Output array of bools.
 
    See Also
    --------
    equal, not_equal, greater_equal, less_equal, greater
 
    Examples
    --------
    >>> import numpy as np
    >>> x1 = np.array(['a', 'b', 'c'])
    >>> np.char.less(x1, 'b')
    array([True, False, False])
 
    ú<TrrJs  rMrrôrWrOcóL—    t||«S#t$r td«‚wxYw)aì
    Return (a * i), that is string multiple concatenation,
    element-wise.
 
    Values in ``i`` of less than 0 are treated as 0 (which yields an
    empty string).
 
    Parameters
    ----------
    a : array_like, with `np.bytes_` or `np.str_` dtype
 
    i : array_like, with any integer dtype
 
    Returns
    -------
    out : ndarray
        Output array of str or unicode, depending on input types
 
    Notes
    -----
    This is a thin wrapper around np.strings.multiply that raises
    `ValueError` when ``i`` is not an integer. It only
    exists for backwards-compatibility.
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.array(["a", "b", "c"])
    >>> np.strings.multiply(a, 3)
    array(['aaa', 'bbb', 'ccc'], dtype='<U3')
    >>> i = np.array([1, 2, 3])
    >>> np.strings.multiply(a, i)
    array(['a', 'bb', 'ccc'], dtype='<U3')
    >>> np.strings.multiply(np.array(['a']), i)
    array(['a', 'aa', 'aaa'], dtype='<U3')
    >>> a = np.array(['a', 'b', 'c', 'd', 'e', 'f']).reshape((2, 3))
    >>> np.strings.multiply(a, 3)
    array([['aaa', 'bbb', 'ccc'],
           ['ddd', 'eee', 'fff']], dtype='<U3')
    >>> np.strings.multiply(a, i)
    array([['a', 'bb', 'ccc'],
           ['d', 'ee', 'fff']], dtype='<U3')
 
    zCan only multiply by integers)Ústrings_multiplyÚ    TypeErrorÚ
ValueError)ÚaÚis  rMr r s0€ð\:Ü  1Ó%Ð%øÜ ò:ÜÐ8Ó9Ð9ð:ús‚ Ž#cóD—tjt||«d¬«S)aF
    Partition each element in `a` around `sep`.
 
    Calls :meth:`str.partition` element-wise.
 
    For each element in `a`, split the element as the first
    occurrence of `sep`, and return 3 strings containing the part
    before the separator, the separator itself, and the part after
    the separator. If the separator is not found, return 3 strings
    containing the string itself, followed by two empty strings.
 
    Parameters
    ----------
    a : array-like, with ``StringDType``, ``bytes_``, or ``str_`` dtype
        Input array
    sep : {str, unicode}
        Separator to split each string element in `a`.
 
    Returns
    -------
    out : ndarray
        Output array of ``StringDType``, ``bytes_`` or ``str_`` dtype,
        depending on input types. The output array will have an extra
        dimension with 3 elements per input element.
 
    Examples
    --------
    >>> import numpy as np
    >>> x = np.array(["Numpy is nice!"])
    >>> np.char.partition(x, " ")
    array([['Numpy', ' ', 'is nice!']], dtype='<U8')
 
    See Also
    --------
    str.partition
 
    éÿÿÿÿ©Úaxis)ÚnpÚstackÚstrings_partition©r^Úseps  rMr r Js€ôN 8‰8Ô% a¨Ó-°BÔ 7Ð7rOcóD—tjt||«d¬«S)až
    Partition (split) each element around the right-most separator.
 
    Calls :meth:`str.rpartition` element-wise.
 
    For each element in `a`, split the element as the last
    occurrence of `sep`, and return 3 strings containing the part
    before the separator, the separator itself, and the part after
    the separator. If the separator is not found, return 3 strings
    containing the string itself, followed by two empty strings.
 
    Parameters
    ----------
    a : array-like, with ``StringDType``, ``bytes_``, or ``str_`` dtype
        Input array
    sep : str or unicode
        Right-most separator to split each element in array.
 
    Returns
    -------
    out : ndarray
        Output array of ``StringDType``, ``bytes_`` or ``str_`` dtype,
        depending on input types. The output array will have an extra
        dimension with 3 elements per input element.
 
    See Also
    --------
    str.rpartition
 
    Examples
    --------
    >>> import numpy as np
    >>> a = np.array(['aAaAaA', '  aA  ', 'abBABba'])
    >>> np.char.rpartition(a, 'A')
    array([['aAaAa', 'A', ''],
       ['  a', 'A', '  '],
       ['abB', 'A', 'Bba']], dtype='<U5')
 
    rarb)rdreÚstrings_rpartitionrgs  rMrrts€ôR 8‰8Ô& q¨#Ó.°RÔ 8Ð8rOcóÊ—eZdZdZ        d;d„Zd<d„Zd„Zd„Zd„Zd„Z    d    „Z
d
„Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd=d„Zej(je_d„Zd>d„Zd?d„Zd@d„Zd@d„Zd?d„ZdAd„Zd?d„Zd?d„Zd„Zd„Z d„Z!d „Z"d!„Z#d"„Z$d#„Z%d$„Z&d>d%„Z'd&„Z(dBd'„Z)d(„Z*dBd)„Z+d?d*„Z,d?d+„Z-d>d,„Z.d-„Z/d@d.„Z0dBd/„Z1d@d0„Z2dBd1„Z3d?d2„Z4dBd3„Z5d4„Z6d5„Z7dBd6„Z8d7„Z9d8„Z:d9„Z;d:„Z<y)CrEaX
    chararray(shape, itemsize=1, unicode=False, buffer=None, offset=0,
              strides=None, order=None)
 
    Provides a convenient view on arrays of string and unicode values.
 
    .. note::
       The `chararray` class exists for backwards compatibility with
       Numarray, it is not recommended for new development. Starting from numpy
       1.4, if one needs arrays of strings, it is recommended to use arrays of
       `dtype` `~numpy.object_`, `~numpy.bytes_` or `~numpy.str_`, and use
       the free functions in the `numpy.char` module for fast vectorized
       string operations.
 
    Versus a NumPy array of dtype `~numpy.bytes_` or `~numpy.str_`, this
    class adds the following functionality:
 
    1) values automatically have whitespace removed from the end
       when indexed
 
    2) comparison operators automatically remove whitespace from the
       end when comparing values
 
    3) vectorized string operations are provided as methods
       (e.g. `.endswith`) and infix operators (e.g. ``"+", "*", "%"``)
 
    chararrays should be created using `numpy.char.array` or
    `numpy.char.asarray`, rather than this constructor directly.
 
    This constructor creates the array, using `buffer` (with `offset`
    and `strides`) if it is not ``None``. If `buffer` is ``None``, then
    constructs a new array with `strides` in "C order", unless both
    ``len(shape) >= 2`` and ``order='F'``, in which case `strides`
    is in "Fortran order".
 
    Methods
    -------
    astype
    argsort
    copy
    count
    decode
    dump
    dumps
    encode
    endswith
    expandtabs
    fill
    find
    flatten
    getfield
    index
    isalnum
    isalpha
    isdecimal
    isdigit
    islower
    isnumeric
    isspace
    istitle
    isupper
    item
    join
    ljust
    lower
    lstrip
    nonzero
    put
    ravel
    repeat
    replace
    reshape
    resize
    rfind
    rindex
    rjust
    rsplit
    rstrip
    searchsorted
    setfield
    setflags
    sort
    split
    splitlines
    squeeze
    startswith
    strip
    swapaxes
    swapcase
    take
    title
    tofile
    tolist
    tostring
    translate
    transpose
    upper
    view
    zfill
 
    Parameters
    ----------
    shape : tuple
        Shape of the array.
    itemsize : int, optional
        Length of each array element, in number of characters. Default is 1.
    unicode : bool, optional
        Are the array elements of type unicode (True) or string (False).
        Default is False.
    buffer : object exposing the buffer interface or str, optional
        Memory address of the start of the array data.  Default is None,
        in which case a new array is created.
    offset : int, optional
        Fixed stride displacement from the beginning of an axis?
        Default is 0. Needs to be >=0.
    strides : array_like of ints, optional
        Strides for the array (see `~numpy.ndarray.strides` for
        full description). Default is None.
    order : {'C', 'F'}, optional
        The order in which the array data is stored in memory: 'C' ->
        "row major" order (the default), 'F' -> "column major"
        (Fortran) order.
 
    Examples
    --------
    >>> import numpy as np
    >>> charar = np.char.chararray((3, 3))
    >>> charar[:] = 'a'
    >>> charar
    chararray([[b'a', b'a', b'a'],
               [b'a', b'a', b'a'],
               [b'a', b'a', b'a']], dtype='|S1')
 
    >>> charar = np.char.chararray(charar.shape, itemsize=5)
    >>> charar[:] = 'abc'
    >>> charar
    chararray([[b'abc', b'abc', b'abc'],
               [b'abc', b'abc', b'abc'],
               [b'abc', b'abc', b'abc']], dtype='|S5')
 
    Nc    óî—|rt}nt}t|«}t|t«r|}    d}nd}    |€t j ||||f|¬«}
nt j ||||f||||¬«}
|    |    |
d<|
S)N©Úorder)ÚbufferÚoffsetÚstridesrn.)rrÚintÚ
isinstanceÚstrrÚ__new__) ÚsubtypeÚshapeÚitemsizeÚunicoderorprqrnÚdtypeÚfillerÚselfs            rMruzchararray.__new__/s€á ܉EäˆEô
x“=ˆä fœcÔ "àˆF؉FàˆFà ˆ>Ü—?‘? 7¨E°E¸8Ð3DØ).ô0‰Dô—?‘? 7¨E°E¸8Ð3DØ*0Ø*0¸'Ø).ô0ˆDð Р؈D‰Iàˆ rOcój—|jjdvr|jt|««S|S)NÚSUbc)rzÚcharÚviewÚtype)r|ÚarrÚcontextÚ return_scalars    rMÚ__array_wrap__zchararray.__array_wrap__Os,€ð 9‰9>‰>˜VÑ #Ø—8‘8œD ›JÓ'Ð '؈
rOcóJ—|jjdvr td«‚y)NÚVSUbcz-Can only create a chararray from string data.)rzrr])r|Úobjs  rMÚ__array_finalize__zchararray.__array_finalize__Ws#€à :‰:?‰? 'Ñ )ÜÐLÓMÐ Mð *rOcór—tj||«}t|t«r|j    «S|SrH)rÚ __getitem__rsrr9)r|rˆÚvals   rMr‹zchararray.__getitem__\s/€Ü×!Ñ! $¨Ó,ˆÜ cœ9Ô %Ø—:‘:“<Р؈
rOcó—t||«S)zg
        Return (self == other) element-wise.
 
        See Also
        --------
        equal
        )r©r|Úothers  rMÚ__eq__zchararray.__eq__gs€ôT˜5Ó!Ð!rOcó—t||«S)zk
        Return (self != other) element-wise.
 
        See Also
        --------
        not_equal
        )rrŽs  rMÚ__ne__zchararray.__ne__qs€ô˜˜uÓ%Ð%rOcó—t||«S)zo
        Return (self >= other) element-wise.
 
        See Also
        --------
        greater_equal
        )rrŽs  rMÚ__ge__zchararray.__ge__{s€ô˜T 5Ó)Ð)rOcó—t||«S)zl
        Return (self <= other) element-wise.
 
        See Also
        --------
        less_equal
        )rrŽs  rMÚ__le__zchararray.__le__…s€ô˜$ Ó&Ð&rOcó—t||«S)zh
        Return (self > other) element-wise.
 
        See Also
        --------
        greater
        )rrŽs  rMÚ__gt__zchararray.__gt__s€ôt˜UÓ#Ð#rOcó—t||«S)ze
        Return (self < other) element-wise.
 
        See Also
        --------
        less
        )rrŽs  rMÚ__lt__zchararray.__lt__™s€ôD˜%ӠРrOcó—t||«S)z·
        Return (self + other), that is string concatenation,
        element-wise for a pair of array_likes of str or unicode.
 
        See Also
        --------
        add
        ©rrŽs  rMÚ__add__zchararray.__add__£s€ô4˜ÓÐrOcó—t||«S)z»
        Return (other + self), that is string concatenation,
        element-wise for a pair of array_likes of `bytes_` or `str_`.
 
        See Also
        --------
        add
        rœrŽs  rMÚ__radd__zchararray.__radd__®s€ô5˜$ÓÐrOcó,—tt||««S©z•
        Return (self * i), that is string multiple concatenation,
        element-wise.
 
        See Also
        --------
        multiply
        ©rr ©r|r_s  rMÚ__mul__zchararray.__mul__¹ó€ô”x  aÓ(Ó)Ð)rOcó,—tt||««Sr¡r¢r£s  rMÚ__rmul__zchararray.__rmul__Är¥rOcó,—tt||««S)zÛ
        Return (self % i), that is pre-Python 2.6 string formatting
        (interpolation), element-wise for a pair of array_likes of `bytes_`
        or `str_`.
 
        See Also
        --------
        mod
        )rrr£s  rMÚ__mod__zchararray.__mod__Ïs€ô”s˜4 “|Ó$Ð$rOcó—tSrH)ÚNotImplementedrŽs  rMÚ__rmod__zchararray.__rmod__Ûs€ÜÐrOcóD—|j«j|||«S)a
        Return the indices that sort the array lexicographically.
 
        For full documentation see `numpy.argsort`, for which this method is
        in fact merely a "thin wrapper."
 
        Examples
        --------
        >>> c = np.array(['a1b c', '1b ca', 'b ca1', 'Ca1b'], 'S5')
        >>> c = c.view(np.char.chararray); c
        chararray(['a1b c', '1b ca', 'b ca1', 'Ca1b'],
              dtype='|S5')
        >>> c[c.argsort()]
        chararray(['1b ca', 'Ca1b', 'a1b c', 'b ca1'],
              dtype='|S5')
 
        )Ú    __array__Úargsort)r|rcÚkindrns    rMr¯zchararray.argsortÞs €ð$~‰~Ó×'Ñ'¨¨d°EÓ:Ð:rOcó*—tt|««S)z¨
        Return a copy of `self` with only the first character of each element
        capitalized.
 
        See Also
        --------
        char.capitalize
 
        )rr ©r|s rMr zchararray.capitalizeós€ô”z $Ó'Ó(Ð(rOcó.—tt|||««S)z
        Return a copy of `self` with its elements centered in a
        string of length `width`.
 
        See Also
        --------
        center
        )rr!©r|ÚwidthÚfillchars   rMr!zchararray.centerÿs€ô”v˜d E¨8Ó4Ó5Ð5rOcó—t||||«S)zÂ
        Returns an array with the number of non-overlapping occurrences of
        substring `sub` in the range [`start`, `end`].
 
        See Also
        --------
        char.count
 
        )r"©r|ÚsubÚstartÚends    rMr"zchararray.count
ó€ôT˜3  sÓ+Ð+rOcó—t|||«S)zn
        Calls ``bytes.decode`` element-wise.
 
        See Also
        --------
        char.decode
 
        )r#©r|ÚencodingÚerrorss   rMr#zchararray.decodeó€ôd˜H fÓ-Ð-rOcó—t|||«S)zp
        Calls :meth:`str.encode` element-wise.
 
        See Also
        --------
        char.encode
 
        )r$r¾s   rMr$zchararray.encode!rÁrOcó—t||||«S)zÅ
        Returns a boolean array which is `True` where the string element
        in `self` ends with `suffix`, otherwise `False`.
 
        See Also
        --------
        char.endswith
 
        )r%)r|Úsuffixrºr»s    rMr%zchararray.endswith,s€ô˜˜f e¨SÓ1Ð1rOcó,—tt||««S)z·
        Return a copy of each string element where all tab characters are
        replaced by one or more spaces.
 
        See Also
        --------
        char.expandtabs
 
        )rr&)r|Útabsizes  rMr&zchararray.expandtabs8s€ô”z $¨Ó0Ó1Ð1rOcó—t||||«S)z§
        For each element, return the lowest index in the string where
        substring `sub` is found.
 
        See Also
        --------
        char.find
 
        )r'r¸s    rMr'zchararray.findDs€ôD˜#˜u cÓ*Ð*rOcó—t||||«S)z›
        Like `find`, but raises :exc:`ValueError` when the substring is not
        found.
 
        See Also
        --------
        char.index
 
        )r(r¸s    rMr(zchararray.indexPr¼rOcó—t|«S)zß
        Returns true for each element if all characters in the string
        are alphanumeric and there is at least one character, false
        otherwise.
 
        See Also
        --------
        char.isalnum
 
        )r)r²s rMr)zchararray.isalnum\ó€ôt‹}ÐrOcó—t|«S)zÝ
        Returns true for each element if all characters in the string
        are alphabetic and there is at least one character, false
        otherwise.
 
        See Also
        --------
        char.isalpha
 
        )r*r²s rMr*zchararray.isalphairÊrOcó—t|«S)zÑ
        Returns true for each element if all characters in the string are
        digits and there is at least one character, false otherwise.
 
        See Also
        --------
        char.isdigit
 
        )r+r²s rMr+zchararray.isdigitvó€ôt‹}ÐrOcó—t|«S)zè
        Returns true for each element if all cased characters in the
        string are lowercase and there is at least one cased character,
        false otherwise.
 
        See Also
        --------
        char.islower
 
        )r,r²s rMr,zchararray.islower‚rÊrOcó—t|«S)zä
        Returns true for each element if there are only whitespace
        characters in the string and there is at least one character,
        false otherwise.
 
        See Also
        --------
        char.isspace
 
        )r-r²s rMr-zchararray.isspacerÊrOcó—t|«S)zÌ
        Returns true for each element if the element is a titlecased
        string and there is at least one character, false otherwise.
 
        See Also
        --------
        char.istitle
 
        )r.r²s rMr.zchararray.istitleœrÍrOcó—t|«S)zâ
        Returns true for each element if all cased characters in the
        string are uppercase and there is at least one character, false
        otherwise.
 
        See Also
        --------
        char.isupper
 
        )r/r²s rMr/zchararray.isupper¨rÊrOcó—t||«S)z 
        Return a string which is the concatenation of the strings in the
        sequence `seq`.
 
        See Also
        --------
        char.join
 
        )r0)r|Úseqs  rMr0zchararray.joinµs€ôD˜#‹ÐrOcó.—tt|||««S)zª
        Return an array with the elements of `self` left-justified in a
        string of length `width`.
 
        See Also
        --------
        char.ljust
 
        )rr1r´s   rMr1zchararray.ljustÁó€ô”u˜T 5¨(Ó3Ó4Ð4rOcó*—tt|««S)z”
        Return an array with the elements of `self` converted to
        lowercase.
 
        See Also
        --------
        char.lower
 
        )rr2r²s rMr2zchararray.lowerÍó€ô”u˜T“{Ó#Ð#rOcó—t||«S)z 
        For each element in `self`, return a copy with the leading characters
        removed.
 
        See Also
        --------
        char.lstrip
 
        )r3©r|Úcharss  rMr3zchararray.lstripÙó€ôd˜EÓ"Ð"rOcó,—tt||««S)zu
        Partition each element in `self` around `sep`.
 
        See Also
        --------
        partition
        )rr ©r|rhs  rMr zchararray.partitionås€ô”y  sÓ+Ó,Ð,rOcó.—t|||||«Sd«S)zÅ
        For each element in `self`, return a copy of the string with all
        occurrences of substring `old` replaced by `new`.
 
        See Also
        --------
        char.replace
 
        ra)r4)r|ÚoldÚnewr"s    rMr4zchararray.replaceïs"€ôt˜S #°Ð0A uÓJÐJÀrÓJÐJrOcó—t||||«S)zñ
        For each element in `self`, return the highest index in the string
        where substring `sub` is found, such that `sub` is contained
        within [`start`, `end`].
 
        See Also
        --------
        char.rfind
 
        )r5r¸s    rMr5zchararray.rfindûs€ôT˜3  sÓ+Ð+rOcó—t||||«S)z£
        Like `rfind`, but raises :exc:`ValueError` when the substring `sub` is
        not found.
 
        See Also
        --------
        char.rindex
 
        )r6r¸s    rMr6zchararray.rindexs€ôd˜C ¨Ó,Ð,rOcó.—tt|||««S)z«
        Return an array with the elements of `self`
        right-justified in a string of length `width`.
 
        See Also
        --------
        char.rjust
 
        )rr7r´s   rMr7zchararray.rjustrÕrOcó,—tt||««S)zv
        Partition each element in `self` around `sep`.
 
        See Also
        --------
        rpartition
        )rrrÝs  rMrzchararray.rpartition s€ô”z $¨Ó,Ó-Ð-rOcó—t|||«S)z¼
        For each element in `self`, return a list of the words in
        the string, using `sep` as the delimiter string.
 
        See Also
        --------
        char.rsplit
 
        )r8©r|rhÚmaxsplits   rMr8zchararray.rsplit*s€ôd˜C Ó*Ð*rOcó—t||«S)z¡
        For each element in `self`, return a copy with the trailing
        characters removed.
 
        See Also
        --------
        char.rstrip
 
        )r9rÙs  rMr9zchararray.rstrip6rÛrOcó—t|||«S)z»
        For each element in `self`, return a list of the words in the
        string, using `sep` as the delimiter string.
 
        See Also
        --------
        char.split
 
        )r:ræs   rMr:zchararray.splitBs€ôT˜3 Ó)Ð)rOcó—t||«S)z¹
        For each element in `self`, return a list of the lines in the
        element, breaking at line boundaries.
 
        See Also
        --------
        char.splitlines
 
        )r;)r|Úkeependss  rMr;zchararray.splitlinesNs€ô˜$ Ó)Ð)rOcó—t||||«S)zÉ
        Returns a boolean array which is `True` where the string element
        in `self` starts with `prefix`, otherwise `False`.
 
        See Also
        --------
        char.startswith
 
        )r<)r|Úprefixrºr»s    rMr<zchararray.startswithZs€ô˜$ ¨¨sÓ3Ð3rOcó—t||«S)z¬
        For each element in `self`, return a copy with the leading and
        trailing characters removed.
 
        See Also
        --------
        char.strip
 
        )r=rÙs  rMr=zchararray.stripfs€ôT˜5Ó!Ð!rOcó*—tt|««S)zÌ
        For each element in `self`, return a copy of the string with
        uppercase characters converted to lowercase and vice versa.
 
        See Also
        --------
        char.swapcase
 
        )rr>r²s rMr>zchararray.swapcasers€ô”x “~Ó&Ð&rOcó*—tt|««S)zô
        For each element in `self`, return a titlecased version of the
        string: words start with uppercase characters, all remaining cased
        characters are lowercase.
 
        See Also
        --------
        char.title
 
        )rr?r²s rMr?zchararray.title~s€ô”u˜T“{Ó#Ð#rOcó.—tt|||««S)aB
        For each element in `self`, return a copy of the string where
        all characters occurring in the optional argument
        `deletechars` are removed, and the remaining characters have
        been mapped through the given translation table.
 
        See Also
        --------
        char.translate
 
        )rr@)r|ÚtableÚ deletecharss   rMr@zchararray.translate‹s€ô”y  u¨kÓ:Ó;Ð;rOcó*—tt|««S)z”
        Return an array with the elements of `self` converted to
        uppercase.
 
        See Also
        --------
        char.upper
 
        )rrAr²s rMrAzchararray.upper™r×rOcó,—tt||««S)z 
        Return the numeric string left-filled with zeros in a string of
        length `width`.
 
        See Also
        --------
        char.zfill
 
        )rrB)r|rµs  rMrBzchararray.zfill¥s€ô”u˜T 5Ó)Ó*Ð*rOcó—t|«S)z±
        For each element in `self`, return True if there are only
        numeric characters in the element.
 
        See Also
        --------
        char.isnumeric
 
        )rCr²s rMrCzchararray.isnumeric±ó€ô˜‹ÐrOcó—t|«S)z±
        For each element in `self`, return True if there are only
        decimal characters in the element.
 
        See Also
        --------
        char.isdecimal
 
        )rDr²s rMrDzchararray.isdecimal½r÷rO)rFNrNÚC)NF)raNN)ú )rN)NN)érH)=Ú__name__Ú
__module__Ú __qualname__Ú__doc__rur…r‰r‹rr’r”r–r˜ršrrŸr¤r§r©r¬r¯rr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r r4r5r6r7rr8r9r:r;r<r=r>r?r@rArBrCrDrIrOrMrErE sA„ñLðZCGØ.1óó@òNò
ò"ò&ò*ò'ò$ò!ò     ò     ò    *ò    *ò
%òó;ð&—o‘o×-Ñ-€G„Oò
)ó    6ó
,ó    .ó    .ó
2ó
2ó
+ó
,ò ò ò
ò ò ò
ò ò
ó
5ò
$ó
#ò-ó
Kó ,ó
-ó
5ò.ó
+ó
#ó
*ó
*ó
4ó
"ò
'ò $ó <ò
$ò
+ò
ó
rOrEcóh—t|ttf«rB|€t|t«rd}nd}|€ t|«}t|«|z}t    |||||¬«St|t
t f«r t|«}t|t«rt|jjt«røt|t«s|jt«}|€5|j}t|jjt«r|dz}|€)t|jjt«rd}nd}|rt}nt }| t||¬«}|s3||jk7s$|st|t«s|r,t|t «r|j#|t%|«f«}|St|t«r6t|jjt&«r|€|j)«}|rt}nt }|€t+|||d¬«}nt+|||f|d¬«}|jt«S)a­
 
    Create a `~numpy.char.chararray`.
 
    .. note::
       This class is provided for numarray backward-compatibility.
       New code (not concerned with numarray compatibility) should use
       arrays of type `bytes_` or `str_` and use the free functions
       in :mod:`numpy.char` for fast vectorized string operations instead.
 
    Versus a NumPy array of dtype `bytes_` or `str_`, this
    class adds the following functionality:
 
    1) values automatically have whitespace removed from the end
       when indexed
 
    2) comparison operators automatically remove whitespace from the
       end when comparing values
 
    3) vectorized string operations are provided as methods
       (e.g. `chararray.endswith <numpy.char.chararray.endswith>`)
       and infix operators (e.g. ``+, *, %``)
 
    Parameters
    ----------
    obj : array of str or unicode-like
 
    itemsize : int, optional
        `itemsize` is the number of characters per scalar in the
        resulting array.  If `itemsize` is None, and `obj` is an
        object array or a Python list, the `itemsize` will be
        automatically determined.  If `itemsize` is provided and `obj`
        is of type str or unicode, then the `obj` string will be
        chunked into `itemsize` pieces.
 
    copy : bool, optional
        If true (default), then the object is copied.  Otherwise, a copy
        will only be made if ``__array__`` returns a copy, if obj is a
        nested sequence, or if a copy is needed to satisfy any of the other
        requirements (`itemsize`, unicode, `order`, etc.).
 
    unicode : bool, optional
        When true, the resulting `~numpy.char.chararray` can contain Unicode
        characters, when false only 8-bit characters.  If unicode is
        None and `obj` is one of the following:
 
        - a `~numpy.char.chararray`,
        - an ndarray of type :class:`str_` or :class:`bytes_`
        - a Python :class:`str` or :class:`bytes` object,
 
        then the unicode setting of the output array will be
        automatically determined.
 
    order : {'C', 'F', 'A'}, optional
        Specify the order of the array.  If order is 'C' (default), then the
        array will be in C-contiguous order (last-index varies the
        fastest).  If order is 'F', then the returned array
        will be in Fortran-contiguous order (first-index varies the
        fastest).  If order is 'A', then the returned array may
        be in any order (either C-, Fortran-contiguous, or even
        discontiguous).
 
    Examples
    --------
 
    >>> import numpy as np
    >>> char_array = np.char.array(['hello', 'world', 'numpy','array'])
    >>> char_array
    chararray(['hello', 'world', 'numpy', 'array'], dtype='<U5')
 
    TF)rxryrornérm)rzrnÚsubok)rsÚbytesrtÚlenrEÚlistÚtupleÚasnarrayrÚ
issubclassrzrrr€rxrrÚastyperrÚobjectÚtolistÚnarray)rˆrxÚcopyryrnrwrzrŒs        rMrrÊsÕ€ôP#œœs|Ô$Ø ˆ?ܘ#œsÔ#Ø‘àà Рܘ3“xˆHܐC“˜HÑ$ˆä˜¨¸7Ø #¨5ô2ð    2ô#œœe}Ô%ܐs‹mˆä#”wÕ¤J¨s¯y©y¯~©~¼yÔ$Iô˜#œyÔ)Ø—(‘(œ9Ó%ˆCà Ð Ø—|‘|ˆHô˜#Ÿ)™)Ÿ.™.¬$Ô/ؘQ‘à ˆ?ܘ#Ÿ)™)Ÿ.™.¬$Ô/Ø‘àá ܉EäˆEà Рܘ3 eÔ,ˆC٠ؘSŸ\™\Ò)Ù¤¨C´Ô!6ÙœZ¨¬VÔ4Ø—*‘*˜e¤S¨£]Ð3Ó4ˆC؈
ä#”wÔ¤J¨s¯y©y¯~©~¼vÔ$FØ Ð ð—*‘*“,ˆCñ܉äˆàÐܐS ¨U¸$Ô?‰äS ¨Р1¸ÀdÔKˆØ 8‰8”IÓ ÐrOcó"—t||d||¬«S)a¨
    Convert the input to a `~numpy.char.chararray`, copying the data only if
    necessary.
 
    Versus a NumPy array of dtype `bytes_` or `str_`, this
    class adds the following functionality:
 
    1) values automatically have whitespace removed from the end
       when indexed
 
    2) comparison operators automatically remove whitespace from the
       end when comparing values
 
    3) vectorized string operations are provided as methods
       (e.g. `chararray.endswith <numpy.char.chararray.endswith>`)
       and infix operators (e.g. ``+``, ``*``, ``%``)
 
    Parameters
    ----------
    obj : array of str or unicode-like
 
    itemsize : int, optional
        `itemsize` is the number of characters per scalar in the
        resulting array.  If `itemsize` is None, and `obj` is an
        object array or a Python list, the `itemsize` will be
        automatically determined.  If `itemsize` is provided and `obj`
        is of type str or unicode, then the `obj` string will be
        chunked into `itemsize` pieces.
 
    unicode : bool, optional
        When true, the resulting `~numpy.char.chararray` can contain Unicode
        characters, when false only 8-bit characters.  If unicode is
        None and `obj` is one of the following:
 
        - a `~numpy.char.chararray`,
        - an ndarray of type `str_` or `unicode_`
        - a Python str or unicode object,
 
        then the unicode setting of the output array will be
        automatically determined.
 
    order : {'C', 'F'}, optional
        Specify the order of the array.  If order is 'C' (default), then the
        array will be in C-contiguous order (last-index varies the
        fastest).  If order is 'F', then the returned array
        will be in Fortran-contiguous order (first-index varies the
        fastest).
 
    Examples
    --------
    >>> import numpy as np
    >>> np.char.asarray(['hello', 'world'])
    chararray(['hello', 'world'], dtype='<U5')
 
    F)r ryrnr)rˆrxryrns    rMrrYs€ôr h UØ ¨ô /ð/rO)NTNN)NNN)/rÿÚ    functoolsÚnumpyrdÚ numpy._corerÚnumpy._core.multiarrayrÚnumpy._core.stringsrr0rr8rr:r    r;Ú numpy._utilsr
Ú numpy.stringsr r[r rfrrjÚnumericrr rrrÚ numerictypesrrrÚ__all__ÚpartialÚarray_function_dispatchrNrrrrrrrErIrOrMú<module>rsÉðñó"ãÝ!Ý5õõõõõ$Üõõõõ%Ý(Ýß1Ñ1ò
€ð,˜)×+Ñ+Ø ×%Ñ%¨lô<ÐòñÐ.Ó/ñ2ó0ð2ñBÐ.Ó/ñ2ó0ð2ñBÐ.Ó/ñ2ó0ð2ñDÐ.Ó/ñ2ó0ð2ñBÐ.Ó/ñ1ó0ð1ñBÐ.Ó/ñ1ó0ð1ñB ˆLÓñ0:óð0:ñf ˆLÓñ&8óð&8ñR ˆLÓñ(9óð(9ñV ˆLÓôf óf óðf ñR ˆLÓòKóðKñ\ ˆLÓò9/óñ9/rO