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
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
Ë
nñúhOãó4—UdZddlmZddlZddlmZmZmZmZm    Z    m
Z
m Z ddl Z ddl ZddlmZmZddlmZddlmZddlmZdd    lmZmZmZdd
lmZdd l m!Z!m"Z"m#Z#dd l$m%Z%dd l&m'Z'm(Z(m)Z)ddl*m+Z+ddl,m-Z-m.Z.m/Z/ddl0m1Z1ddl2m3Z3m4Z4m5Z5ddl6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=ddl>m?Z?ddl@mAZAddlBmCZCmDZDer4ddlEmFZFmGZGddlHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYddlZm[Z[iZ\de]d<Gd„d«Z^Gd„de^«Z_Gd„d «Z`Gd!„d"e`«Zay)#z™
An interface for extending pandas with custom arrays.
 
.. warning::
 
   This is an experimental API and subject to breaking changes
   without warning.
é)Ú annotationsN)Ú TYPE_CHECKINGÚAnyÚCallableÚClassVarÚLiteralÚcastÚoverload)ÚalgosÚlib)Úset_function_name)Úfunction©ÚAbstractMethodError)ÚAppenderÚ SubstitutionÚcache_readonly)Úfind_stack_level)Úvalidate_bool_kwargÚvalidate_fillna_kwargsÚvalidate_insert_loc)Úmaybe_cast_pointwise_result)Ú is_list_likeÚ    is_scalarÚ pandas_dtype)ÚExtensionDtype)Ú ABCDataFrameÚABCIndexÚ    ABCSeries©Úisna)Ú    arraylikeÚmissingÚ    roperator)Ú
duplicatedÚfactorize_arrayÚisinÚ    map_arrayÚmodeÚrankÚunique)Úquantile_with_mask)Ú_fill_limit_area_1d)Ú
nargminmaxÚnargsort)ÚIteratorÚSequence)Ú    ArrayLikeÚ    AstypeArgÚAxisIntÚDtypeÚDtypeObjÚ FillnaOptionsÚInterpolateOptionsÚ NumpySorterÚNumpyValueArrayLikeÚPositionalIndexerÚ ScalarIndexerÚSelfÚSequenceIndexerÚShapeÚSortKindÚ TakeIndexerÚnpt)ÚIndexzdict[str, str]Ú_extension_array_shared_docscóÒ—eZdZUdZdZdZedddœd`d„«Zedad„«Zedddœ            d`d    „«Z    ed
„«Z
e dbd „«Z e dcd „«Z ddd „Z ded„Z dfd„Zdgd„Zdhd„Zdid„Zdid„Zddej(f                            djd„Zedkd„«Zedld„«Zedfd„«Zedfd„«Zedfd„«Ze dmdnd„«Ze dmdod„«Ze dmdpd„«Zdqdpd„Zdrd„Zedsd „«Zdtd!„Zdd"d#d$œ                            dud%„Z dqdvd&„Z!dqdvd'„Z"                                        dwd(„Z#dddd)œ                                    dxd*„Z$                dy                                    dzd+„Z%d{d,„Z&    d|            d}d.„Z'd~dd/„Z(d{d0„Z)        d€                            dd1„Z*d‚d2„Z+dƒd3„Z,d„d4„Z-    dq            d…d5„Z.d6e/d7<e0d¬8«e1e/d7«d†d‡d9„««Z2ddd:œ                            dˆd;„Z3d{d<„Z4d†d‰d=„Z5dŠd>„Z6dŠd?„Z7dŠd@„Z8d‹dŒdA„Z9ddB„Z:edŽdC„«Z;dddD„Z<ed‘dE„«Z=e>dsdF„«Z?ddGœ                    d’dH„Z@dddIœ                    d“dJ„ZAdKeBdL<dtdM„ZC                                d”dN„ZDd•dO„ZEd–dP„ZFd—dQ„ZGd˜dR„ZHd™dS„ZIdšdT„ZJ                                d›dU„ZKdVdWd-dddXœ                                    dœdY„ZLeddZ„«ZMdžd[„ZNdqdŸd\„ZOd d]„ZPd†d^„ZQ                                                d¡d_„ZRy)¢ÚExtensionArrayav
    Abstract base class for custom 1-D array types.
 
    pandas will recognize instances of this class as proper arrays
    with a custom type and will not attempt to coerce them to objects. They
    may be stored directly inside a :class:`DataFrame` or :class:`Series`.
 
    Attributes
    ----------
    dtype
    nbytes
    ndim
    shape
 
    Methods
    -------
    argsort
    astype
    copy
    dropna
    duplicated
    factorize
    fillna
    equals
    insert
    interpolate
    isin
    isna
    ravel
    repeat
    searchsorted
    shift
    take
    tolist
    unique
    view
    _accumulate
    _concat_same_type
    _explode
    _formatter
    _from_factorized
    _from_sequence
    _from_sequence_of_strings
    _hash_pandas_object
    _pad_or_backfill
    _reduce
    _values_for_argsort
    _values_for_factorize
 
    Notes
    -----
    The interface includes the following abstract methods that must be
    implemented by subclasses:
 
    * _from_sequence
    * _from_factorized
    * __getitem__
    * __len__
    * __eq__
    * dtype
    * nbytes
    * isna
    * take
    * copy
    * _concat_same_type
    * interpolate
 
    A default repr displaying the type, (truncated) data, length,
    and dtype is provided. It can be customized or replaced by
    by overriding:
 
    * __repr__ : A default repr for the ExtensionArray.
    * _formatter : Print scalars inside a Series or DataFrame.
 
    Some methods require casting the ExtensionArray to an ndarray of Python
    objects with ``self.astype(object)``, which may be expensive. When
    performance is a concern, we highly recommend overriding the following
    methods:
 
    * fillna
    * _pad_or_backfill
    * dropna
    * unique
    * factorize / _values_for_factorize
    * argsort, argmax, argmin / _values_for_argsort
    * searchsorted
    * map
 
    The remaining methods implemented on this class should be performant,
    as they only compose abstract methods. Still, a more efficient
    implementation may be available, and these methods can be overridden.
 
    One can implement methods to handle array accumulations or reductions.
 
    * _accumulate
    * _reduce
 
    One can implement methods to handle parsing from strings that will be used
    in methods such as ``pandas.io.parsers.read_csv``.
 
    * _from_sequence_of_strings
 
    This class does not inherit from 'abc.ABCMeta' for performance reasons.
    Methods and properties required by the interface raise
    ``pandas.errors.AbstractMethodError`` and no ``register`` method is
    provided for registering virtual subclasses.
 
    ExtensionArrays are limited to 1 dimension.
 
    They may be backed by none, one, or many NumPy arrays. For example,
    ``pandas.Categorical`` is an extension array backed by two arrays,
    one for codes and one for categories. An array of IPv6 address may
    be backed by a NumPy structured array with two fields, one for the
    lower 64 bits and one for the upper 64 bits. Or they may be backed
    by some other storage type, like Python lists. Pandas makes no
    assumptions on how the data are stored, just that it can be converted
    to a NumPy array.
    The ExtensionArray interface does not impose any rules on how this data
    is stored. However, currently, the backing data cannot be stored in
    attributes called ``.values`` or ``._values`` to ensure full compatibility
    with pandas internals. But other names as ``.data``, ``._data``,
    ``._items``, ... can be freely used.
 
    If implementing NumPy's ``__array_ufunc__`` interface, pandas expects
    that
 
    1. You defer by returning ``NotImplemented`` when any Series are present
       in `inputs`. Pandas will extract the arrays and call the ufunc again.
    2. You define a ``_HANDLED_TYPES`` tuple as an attribute on the class.
       Pandas inspect this to determine whether the ufunc is valid for the
       types present.
 
    See :ref:`extending.extension.ufunc` for more.
 
    By default, ExtensionArrays are not hashable.  Immutable subclasses may
    override this behavior.
 
    Examples
    --------
    Please see the following:
 
    https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/list/array.py
    Ú    extensionièNF©ÚdtypeÚcopycó—t|«‚)añ
        Construct a new ExtensionArray from a sequence of scalars.
 
        Parameters
        ----------
        scalars : Sequence
            Each element will be an instance of the scalar type for this
            array, ``cls.dtype.type`` or be converted into this type in this method.
        dtype : dtype, optional
            Construct for this particular dtype. This should be a Dtype
            compatible with the ExtensionArray.
        copy : bool, default False
            If True, copy the underlying data.
 
        Returns
        -------
        ExtensionArray
 
        Examples
        --------
        >>> pd.arrays.IntegerArray._from_sequence([4, 5])
        <IntegerArray>
        [4, 5]
        Length: 2, dtype: Int64
        r)ÚclsÚscalarsrIrJs    úJH:\Change_password\venv_build\Lib\site-packages\pandas/core/arrays/base.pyÚ_from_sequencezExtensionArray._from_sequence ó€ô6" #Ó&Ð&óc󤗠   |j||d¬«S#ttf$r‚t$r!t    j
dt «¬«‚wxYw)a¼
        Strict analogue to _from_sequence, allowing only sequences of scalars
        that should be specifically inferred to the given dtype.
 
        Parameters
        ----------
        scalars : sequence
        dtype : ExtensionDtype
 
        Raises
        ------
        TypeError or ValueError
 
        Notes
        -----
        This is called in a try/except block when casting the result of a
        pointwise operation.
        FrHzm_from_scalars should only raise ValueError or TypeError. Consider overriding _from_scalars where appropriate.©Ú
stacklevel)rOÚ
ValueErrorÚ    TypeErrorÚ    ExceptionÚwarningsÚwarnr)rLrMrIs   rNÚ _from_scalarszExtensionArray._from_scalars*s[€ð(
    Ø×%Ñ% g°UÀÐ%ÓGÐ GøÜœIÐ&ò    Ø Üò    Ü M‰MðGä+Ó-õ ð
ð     ús    ‚–9Acó—t|«‚)aÚ
        Construct a new ExtensionArray from a sequence of strings.
 
        Parameters
        ----------
        strings : Sequence
            Each element will be an instance of the scalar type for this
            array, ``cls.dtype.type``.
        dtype : dtype, optional
            Construct for this particular dtype. This should be a Dtype
            compatible with the ExtensionArray.
        copy : bool, default False
            If True, copy the underlying data.
 
        Returns
        -------
        ExtensionArray
 
        Examples
        --------
        >>> pd.arrays.IntegerArray._from_sequence_of_strings(["1", "2", "3"])
        <IntegerArray>
        [1, 2, 3]
        Length: 3, dtype: Int64
        r)rLÚstringsrIrJs    rNÚ_from_sequence_of_stringsz(ExtensionArray._from_sequence_of_stringsJs€ô:" #Ó&Ð&rQcó—t|«‚)a†
        Reconstruct an ExtensionArray after factorization.
 
        Parameters
        ----------
        values : ndarray
            An integer ndarray with the factorized values.
        original : ExtensionArray
            The original ExtensionArray that factorize was called on.
 
        See Also
        --------
        factorize : Top-level factorize method that dispatches here.
        ExtensionArray.factorize : Encode the extension array as an enumerated type.
 
        Examples
        --------
        >>> interv_arr = pd.arrays.IntervalArray([pd.Interval(0, 1),
        ...                                      pd.Interval(1, 5), pd.Interval(1, 5)])
        >>> codes, uniques = pd.factorize(interv_arr)
        >>> pd.arrays.IntervalArray._from_factorized(uniques, interv_arr)
        <IntervalArray>
        [(0, 1], (1, 5]]
        Length: 2, dtype: interval[int64, right]
        r)rLÚvaluesÚoriginals   rNÚ_from_factorizedzExtensionArray._from_factorizedirPrQcó—y©N©©ÚselfÚitems  rNÚ __getitem__zExtensionArray.__getitem__‰ó€à rQcó—yrcrdres  rNrhzExtensionArray.__getitem__rirQcó—t|«‚)an
        Select a subset of self.
 
        Parameters
        ----------
        item : int, slice, or ndarray
            * int: The position in 'self' to get.
 
            * slice: A slice object, where 'start', 'stop', and 'step' are
              integers or None
 
            * ndarray: A 1-d boolean NumPy ndarray the same length as 'self'
 
            * list[int]:  A list of int
 
        Returns
        -------
        item : scalar or ExtensionArray
 
        Notes
        -----
        For scalar ``item``, return a scalar value suitable for the array's
        type. This should be an instance of ``self.dtype.type``.
 
        For slice ``key``, return an instance of ``ExtensionArray``, even
        if the slice is length 0 or 1.
 
        For a boolean mask, return an instance of ``ExtensionArray``, filtered
        to the values where ``item`` is True.
        rres  rNrhzExtensionArray.__getitem__‘s€ô>" $Ó'Ð'rQcó0—tt|«›d«‚)a^
        Set one or more values inplace.
 
        This method is not required to satisfy the pandas extension array
        interface.
 
        Parameters
        ----------
        key : int, ndarray, or slice
            When called from, e.g. ``Series.__setitem__``, ``key`` will be
            one of
 
            * scalar int
            * ndarray of integers.
            * boolean ndarray
            * slice object
 
        value : ExtensionDtype.type, Sequence[ExtensionDtype.type], or object
            value or values to be set of ``key``.
 
        Returns
        -------
        None
        z  does not implement __setitem__.)ÚNotImplementedErrorÚtype)rfÚkeyÚvalues   rNÚ __setitem__zExtensionArray.__setitem__²s€ôV"¤T¨$£Z LÐ0PÐ"QÓRÐRrQcó—t|«‚)z\
        Length of this array
 
        Returns
        -------
        length : int
        r©rfs rNÚ__len__zExtensionArray.__len__ßs€ô" $Ó'Ð'rQc#óLK—tt|««D]    }||–—Œ y­w)z5
        Iterate over elements of the array.
        N)ÚrangeÚlen)rfÚis  rNÚ__iter__zExtensionArray.__iter__és)èø€ô”s˜4“yÓ!ò    ˆAؐq‘'‹Mñ    ùs‚"$cóø—t|«r]t|«rR|jsy||jjus t ||jj «r |jSy||k(j«S)z,
        Return for `item in self`.
        F)    rr!Ú _can_hold_narIÚna_valueÚ
isinstancernÚ_hasnaÚanyres  rNÚ __contains__zExtensionArray.__contains__ósb€ô TŒ?œt DœzØ×$Ò$ØØ˜Ÿ™×,Ñ,Ñ,´
¸4ÀÇÁÇÁÔ0QØ—{‘{Ð"àð˜D‘L×%Ñ%Ó'Ð 'rQcó—t|«‚)zE
        Return for `self == other` (element-wise equality).
        r©rfÚothers  rNÚ__eq__zExtensionArray.__eq__ó€ô" $Ó'Ð'rQcó—||k(S)zH
        Return for `self != other` (element-wise in-equality).
        rdr‚s  rNÚ__ne__zExtensionArray.__ne__s€ð
˜‘ÐÐrQcóƗtj||¬«}|s|tjur|j    «}|tjur|||j «<|S)aI
        Convert to a NumPy ndarray.
 
        This is similar to :meth:`numpy.asarray`, but may provide additional control
        over how the conversion is done.
 
        Parameters
        ----------
        dtype : str or numpy.dtype, optional
            The dtype to pass to :meth:`numpy.asarray`.
        copy : bool, default False
            Whether to ensure that the returned value is a not a view on
            another array. Note that ``copy=False`` does not *ensure* that
            ``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that
            a copy is made, even if not strictly necessary.
        na_value : Any, optional
            The value to use for missing values. The default value depends
            on `dtype` and the type of the array.
 
        Returns
        -------
        numpy.ndarray
        ©rI)ÚnpÚasarrayr Ú
no_defaultrJr!)rfrIrJr|Úresults     rNÚto_numpyzExtensionArray.to_numpysN€ô:—‘˜D¨Ô.ˆÙ 8¤3§>¡>Ñ1Ø—[‘[“]ˆFØ œ3Ÿ>™>Ñ )Ø"*ˆF4—9‘9“;Ñ Øˆ rQcó—t|«‚)zŽ
        An instance of ExtensionDtype.
 
        Examples
        --------
        >>> pd.array([1, 2, 3]).dtype
        Int64Dtype()
        rrss rNrIzExtensionArray.dtypeCr…rQcó—t|«fS)z¥
        Return a tuple of the array dimensions.
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr.shape
        (3,)
        )rwrss rNÚshapezExtensionArray.shapeOs€ôD“    ˆ|ÐrQcó@—tj|j«S)z6
        The number of elements in the array.
        )rŠÚprodr‘rss rNÚsizezExtensionArray.size\s€ôw‰wt—z‘zÓ"Ð"rQcó—y)z°
        Extension Arrays are only allowed to be 1-dimensional.
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr.ndim
        1
        érdrss rNÚndimzExtensionArray.ndimes€ðrQcó—t|«‚)z¡
        The number of bytes needed to store this object in memory.
 
        Examples
        --------
        >>> pd.array([1, 2, 3]).nbytes
        27
        rrss rNÚnbyteszExtensionArray.nbytesrs€ô" $Ó'Ð'rQcó—yrcrd©rfrIrJs   rNÚastypezExtensionArray.astype„rirQcó—yrcrdr›s   rNrœzExtensionArray.astypeˆrirQcó—yrcrdr›s   rNrœzExtensionArray.astypeŒrirQTcóè—t|«}||jk(r|s|S|j«St|t«r$|j «}|j |||¬«Stj|d«rddl    m
}|j |||¬«Stj|d«rddl    m }|j |||¬«S|stj||¬«Stj|||¬«S)aÖ
        Cast to a NumPy array or ExtensionArray with 'dtype'.
 
        Parameters
        ----------
        dtype : str or dtype
            Typecode or data-type to which the array is cast.
        copy : bool, default True
            Whether to copy the data, even if not necessary. If False,
            a copy is made only if the old dtype does not match the
            new dtype.
 
        Returns
        -------
        np.ndarray or pandas.api.extensions.ExtensionArray
            An ``ExtensionArray`` if ``dtype`` is ``ExtensionDtype``,
            otherwise a Numpy ndarray with ``dtype`` for its dtype.
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr
        <IntegerArray>
        [1, 2, 3]
        Length: 3, dtype: Int64
 
        Casting to another ``ExtensionDtype`` returns an ``ExtensionArray``:
 
        >>> arr1 = arr.astype('Float64')
        >>> arr1
        <FloatingArray>
        [1.0, 2.0, 3.0]
        Length: 3, dtype: Float64
        >>> arr1.dtype
        Float64Dtype()
 
        Otherwise, we will get a Numpy ndarray:
 
        >>> arr2 = arr.astype('float64')
        >>> arr2
        array([1., 2., 3.])
        >>> arr2.dtype
        dtype('float64')
        rHÚMr)Ú DatetimeArrayÚm)ÚTimedeltaArrayr‰)rrIrJr}rÚconstruct_array_typerOr Ú is_np_dtypeÚpandas.core.arraysr¡r£rŠr‹Úarray)rfrIrJrLr¡r£s      rNrœzExtensionArray.astypes؀ôZ˜UÓ#ˆØ D—J‘JÒ ÙØ à—y‘y“{Ð"ä eœ^Ô ,Ø×,Ñ,Ó.ˆCØ×%Ñ% d°%¸dÐ%ÓCÐ Cä _‰_˜U CÔ (Ý 8à ×/Ñ/°¸EÈÐ/ÓMÐ Mä _‰_˜U CÔ (Ý 9à!×0Ñ0°¸UÈÐ0ÓNÐ NáÜ—:‘:˜d¨%Ô0Ð 0ä—8‘8˜D¨°DÔ9Ð 9rQcó—t|«‚)a'
        A 1-D array indicating if each value is missing.
 
        Returns
        -------
        numpy.ndarray or pandas.api.extensions.ExtensionArray
            In most cases, this should return a NumPy ndarray. For
            exceptional cases like ``SparseArray``, where returning
            an ndarray would be expensive, an ExtensionArray may be
            returned.
 
        Notes
        -----
        If returning an ExtensionArray, then
 
        * ``na_values._is_boolean`` should be True
        * `na_values` should implement :func:`ExtensionArray._reduce`
        * ``na_values.any`` and ``na_values.all`` should be implemented
 
        Examples
        --------
        >>> arr = pd.array([1, 2, np.nan, np.nan])
        >>> arr.isna()
        array([False, False,  True,  True])
        rrss rNr!zExtensionArray.isna×s€ô4" $Ó'Ð'rQcóP—t|j«j««S)z€
        Equivalent to `self.isna().any()`.
 
        Some ExtensionArray subclasses may be able to optimize this check.
        )Úboolr!rrss rNr~zExtensionArray._hasnaós€ôD—I‘I“K—O‘OÓ%Ó&Ð&rQcó,—tj|«S)aï
        Return values for sorting.
 
        Returns
        -------
        ndarray
            The transformed values should maintain the ordering between values
            within the array.
 
        See Also
        --------
        ExtensionArray.argsort : Return the indices that would sort this array.
 
        Notes
        -----
        The caller is responsible for *not* modifying these values in-place, so
        it is safe for implementers to give views on ``self``.
 
        Functions that use this (e.g. ``ExtensionArray.argsort``) should ignore
        entries with missing values in the original array (according to
        ``self.isna()``). This means that the corresponding entries in the returned
        array don't need to be modified to sort correctly.
 
        Examples
        --------
        In most cases, this is the underlying Numpy array of the ``ExtensionArray``:
 
        >>> arr = pd.array([1, 2, 3])
        >>> arr._values_for_argsort()
        array([1, 2, 3])
        )rŠr§rss rNÚ_values_for_argsortz"ExtensionArray._values_for_argsortýs€ôBx‰x˜‹~ÐrQÚ    quicksortÚlast)Ú    ascendingÚkindÚ na_positionc
ó²—tj|d|«}|j«}t||||t    j
|j ««¬«S)aú
        Return the indices that would sort this array.
 
        Parameters
        ----------
        ascending : bool, default True
            Whether the indices should result in an ascending
            or descending sort.
        kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, optional
            Sorting algorithm.
        na_position : {'first', 'last'}, default 'last'
            If ``'first'``, put ``NaN`` values at the beginning.
            If ``'last'``, put ``NaN`` values at the end.
        *args, **kwargs:
            Passed through to :func:`numpy.argsort`.
 
        Returns
        -------
        np.ndarray[np.intp]
            Array of indices that sort ``self``. If NaN values are contained,
            NaN values are placed at the end.
 
        See Also
        --------
        numpy.argsort : Sorting implementation used internally.
 
        Examples
        --------
        >>> arr = pd.array([3, 1, 2, 5, 4])
        >>> arr.argsort()
        array([1, 2, 0, 4, 3])
        rd)r°r¯r±Úmask)ÚnvÚvalidate_argsort_with_ascendingr¬r/rŠr‹r!)rfr¯r°r±Úkwargsr_s      rNÚargsortzExtensionArray.argsort sR€ôZ×6Ñ6°yÀ"ÀfÓMˆ    à×)Ñ)Ó+ˆÜØ ØØØ#Ü—‘˜DŸI™I›KÓ(ô 
ð    
rQcóZ—t|d«|s|jrt‚t|d«S)a 
        Return the index of minimum value.
 
        In case of multiple occurrences of the minimum value, the index
        corresponding to the first occurrence is returned.
 
        Parameters
        ----------
        skipna : bool, default True
 
        Returns
        -------
        int
 
        See Also
        --------
        ExtensionArray.argmax : Return the index of the maximum value.
 
        Examples
        --------
        >>> arr = pd.array([3, 1, 2, 5, 4])
        >>> arr.argmin()
        1
        ÚskipnaÚargmin©rr~rmr.©rfr¹s  rNrºzExtensionArray.argminXó*€ô:    ˜F HÔ-Ù˜$Ÿ+š+Ü%Ð %ܘ$ Ó)Ð)rQcóZ—t|d«|s|jrt‚t|d«S)a 
        Return the index of maximum value.
 
        In case of multiple occurrences of the maximum value, the index
        corresponding to the first occurrence is returned.
 
        Parameters
        ----------
        skipna : bool, default True
 
        Returns
        -------
        int
 
        See Also
        --------
        ExtensionArray.argmin : Return the index of the minimum value.
 
        Examples
        --------
        >>> arr = pd.array([3, 1, 2, 5, 4])
        >>> arr.argmax()
        3
        r¹Úargmaxr»r¼s  rNr¿zExtensionArray.argmaxzr½rQc óD—tt|«j›d«‚)aˆ
        See DataFrame.interpolate.__doc__.
 
        Examples
        --------
        >>> arr = pd.arrays.NumpyExtensionArray(np.array([0, 1, np.nan, 3]))
        >>> arr.interpolate(method="linear",
        ...                 limit=3,
        ...                 limit_direction="forward",
        ...                 index=pd.Index([1, 2, 3, 4]),
        ...                 fill_value=1,
        ...                 copy=False,
        ...                 axis=0,
        ...                 limit_area="inside"
        ...                 )
        <NumpyExtensionArray>
        [0.0, 1.0, 2.0, 3.0]
        Length: 4, dtype: float64
        z does not implement interpolate)rmrnÚ__name__)    rfÚmethodÚaxisÚindexÚlimitÚlimit_directionÚ
limit_arearJr¶s             rNÚ interpolatezExtensionArray.interpolateœs(€ô@"ܐD‹z×"Ñ"Ð#Ð#BÐ Có
ð    
rQ)rÅrÇrJcó—t|«jtjurt|«jtjurZt    j
dt t«¬«|!tt|«j›d«‚|j||¬«S|j«}|j«r³tj|«}tj|«}||j!«s t#||«|dk(r*t%j&||¬«}|j)|d¬    «St%j&|ddd
…|¬«ddd
…}|ddd
…j)|d¬    «S|s|S|j+«}    |    S) a&
        Pad or backfill values, used by Series/DataFrame ffill and bfill.
 
        Parameters
        ----------
        method : {'backfill', 'bfill', 'pad', 'ffill'}
            Method to use for filling holes in reindexed Series:
 
            * pad / ffill: propagate last valid observation forward to next valid.
            * backfill / bfill: use NEXT valid observation to fill gap.
 
        limit : int, default None
            This is the maximum number of consecutive
            NaN values to forward/backward fill. In other words, if there is
            a gap with more than this number of consecutive NaNs, it will only
            be partially filled. If method is not specified, this is the
            maximum number of entries along the entire axis where NaNs will be
            filled.
 
        copy : bool, default True
            Whether to make a copy of the data before filling. If False, then
            the original should be modified and no new memory should be allocated.
            For ExtensionArray subclasses that cannot do this, it is at the
            author's discretion whether to ignore "copy=False" or to raise.
            The base class implementation ignores the keyword if any NAs are
            present.
 
        Returns
        -------
        Same type as self
 
        Examples
        --------
        >>> arr = pd.array([np.nan, np.nan, 2, 3, np.nan, np.nan])
        >>> arr._pad_or_backfill(method="backfill", limit=1)
        <IntegerArray>
        [<NA>, 2, 2, 3, <NA>, <NA>]
        Length: 6, dtype: Int64
        z¼ExtensionArray.fillna 'method' keyword is deprecated. In a future version. arr._pad_or_backfill will be called instead. 3rd-party ExtensionArray authors need to implement _pad_or_backfill.rSNz„ does not implement limit_area (added in pandas 2.2). 3rd-party ExtnsionArray authors need to add this argument to _pad_or_backfill.)rÂrÅÚpad©rÅT©Ú
allow_filléÿÿÿÿ)rnÚfillnarFÚ_pad_or_backfillrXrYÚDeprecationWarningrrmrÁr!rr#Úclean_fill_methodrŠr‹Úallr-ÚlibalgosÚget_fill_indexerÚtakerJ)
rfrÂrÅrÇrJr³ÚmethÚnpmaskÚindexerÚ
new_valuess
          rNrÐzExtensionArray._pad_or_backfillÀsk€ôf ‹J× Ñ ¤^×%:Ñ%:Ñ :ܐT“
×+Ñ+¬~×/NÑ/NÑNô M‰Mð$ô#Ü+Ó-õ  ðÐ%Ü)ܘD“z×*Ñ*Ð+ð,EðEóðð
—;‘; f°E;Ó:Ð :ày‰y‹{ˆà 8‰8Œ:ä×,Ñ,¨VÓ4ˆDä—Z‘Z Ó%ˆFØÐ%¨f¯j©j¬lÜ# F¨JÔ7ؐuŠ}Ü"×3Ñ3°FÀ%ÔHØ—y‘y °TyÓ:Ð:ô#×3Ñ3°F¹4¸R¸4±LÈÔNÉtÐQSÈtÑTØ™D˜b˜D‘z—‘ w¸4Ó@Ð@ñؐ ØŸ™›ˆJØÐrQcó¼—|;tjdt|«j›dtt «¬«t ||«\}}|j«}tj||t|««}|j«r¶|•tj|«}tj|«}|dk(r*tj ||¬«}|j#|d¬«Stj |ddd    …|¬«ddd    …}|ddd    …j#|d¬«S|s|dd}    n|j%«}    ||    |<|    S|s|dd}    |    S|j%«}    |    S)
at
        Fill NA/NaN values using the specified method.
 
        Parameters
        ----------
        value : scalar, array-like
            If a scalar value is passed it is used to fill all missing values.
            Alternatively, an array-like "value" can be given. It's expected
            that the array-like have the same length as 'self'.
        method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
            Method to use for filling holes in reindexed Series:
 
            * pad / ffill: propagate last valid observation forward to next valid.
            * backfill / bfill: use NEXT valid observation to fill gap.
 
            .. deprecated:: 2.1.0
 
        limit : int, default None
            If method is specified, this is the maximum number of consecutive
            NaN values to forward/backward fill. In other words, if there is
            a gap with more than this number of consecutive NaNs, it will only
            be partially filled. If method is not specified, this is the
            maximum number of entries along the entire axis where NaNs will be
            filled.
 
            .. deprecated:: 2.1.0
 
        copy : bool, default True
            Whether to make a copy of the data before filling. If False, then
            the original should be modified and no new memory should be allocated.
            For ExtensionArray subclasses that cannot do this, it is at the
            author's discretion whether to ignore "copy=False" or to raise.
            The base class implementation ignores the keyword in pad/backfill
            cases.
 
        Returns
        -------
        ExtensionArray
            With NA/NaN filled.
 
        Examples
        --------
        >>> arr = pd.array([np.nan, np.nan, 2, 3, np.nan, np.nan])
        >>> arr.fillna(0)
        <IntegerArray>
        [0, 0, 2, 3, 0, 0]
        Length: 6, dtype: Int64
        NzThe 'method' keyword in z>.fillna is deprecated and will be removed in a future version.rSrÊrËTrÌrÎ)rXrYrnrÁÚ FutureWarningrrr!r#Úcheck_value_sizerwrrÒrŠr‹rÔrÕrÖrJ)
rfrprÂrÅrJr³r×rØrÙrÚs
          rNrÏzExtensionArray.fillnask€ðn Ð Ü M‰MØ*¬4°«:×+>Ñ+>Ð*?ð@FðFäÜ+Ó-õ     ô/¨u°fÓ=‰ ˆˆvày‰y‹{ˆô×(Ñ(Ø 4œ˜T›ó
ˆð 8‰8Œ:ØÐ!Ü×0Ñ0°Ó8äŸ™ DÓ)Ø˜5’=Ü&×7Ñ7¸ÀeÔLGØŸ9™9 W¸˜9Ó>Ð>ô'×7Ñ7¸¹tÀ¸t¹ ÈEÔRÑSWÐUWÐSWÑXGØ¡ " ™:Ÿ?™?¨7¸t˜?ÓDÐDñØ!%¡a ‘Jà!%§¡£JØ#(
˜4Ñ ð Ðñ    Ø!¡!˜W
ðÐð"ŸY™Y›[
ØÐrQcó*—||j«S)zò
        Return ExtensionArray without NA values.
 
        Returns
        -------
 
        Examples
        --------
        >>> pd.array([1, 2, np.nan]).dropna()
        <IntegerArray>
        [1, 2]
        Length: 2, dtype: Int64
        r rss rNÚdropnazExtensionArray.dropnas€ðT—Y‘Y“[LÑ!Ð!rQÚkeepcó|—|j«jtjd¬«}t    |||¬«S)aU
        Return boolean ndarray denoting duplicate values.
 
        Parameters
        ----------
        keep : {'first', 'last', False}, default 'first'
            - ``first`` : Mark duplicates as ``True`` except for the first occurrence.
            - ``last`` : Mark duplicates as ``True`` except for the last occurrence.
            - False : Mark all duplicates as ``True``.
 
        Returns
        -------
        ndarray[bool]
 
        Examples
        --------
        >>> pd.array([1, 1, 2, 3, 3], dtype="Int64").duplicated()
        array([False,  True, False, False,  True])
        F)rJ)r_ràr³)r!rœrŠÚbool_r%)rfràr³s   rNr%zExtensionArray.duplicated’s2€ð,y‰y‹{×!Ñ!¤"§(¡(°Ð!Ó7ˆÜ ¨D°tÔ<Ð<rQc    ó`—t|«r|dk(r|j«St|«r|jj}|j |gt t|«t|««z|j¬«}|dkDr    |}|d| }n|t|«d}|}|j||g«S)a@
        Shift values by desired number.
 
        Newly introduced missing values are filled with
        ``self.dtype.na_value``.
 
        Parameters
        ----------
        periods : int, default 1
            The number of periods to shift. Negative values are allowed
            for shifting backwards.
 
        fill_value : object, optional
            The scalar value to use for newly introduced missing values.
            The default is ``self.dtype.na_value``.
 
        Returns
        -------
        ExtensionArray
            Shifted.
 
        Notes
        -----
        If ``self`` is empty or ``periods`` is 0, a copy of ``self`` is
        returned.
 
        If ``periods > len(self)``, then an array of size
        len(self) is returned, with all values filled with
        ``self.dtype.na_value``.
 
        For 2-dimensional ExtensionArrays, we are always shifting along axis=0.
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr.shift(2)
        <IntegerArray>
        [<NA>, <NA>, 1]
        Length: 3, dtype: Int64
        rr‰N)    rwrJr!rIr|rOÚminÚabsÚ_concat_same_type)rfÚperiodsÚ
fill_valueÚemptyÚaÚbs      rNÚshiftzExtensionArray.shift«s®€ôV4Œy˜G qšLØ—9‘9“;Ð ä 
Ô ØŸ™×,Ñ,ˆJà×#Ñ#Ø ˆLœ3œs 7›|¬S°«YÓ7Ñ 7¸t¿z¹zð$ó
ˆð QŠ;؈AؐYwh‰Aà”S˜“\^Ð$ˆA؈AØ×%Ñ% q¨! fÓ-Ð-rQcóx—t|jt««}|j||j¬«S)a@
        Compute the ExtensionArray of unique values.
 
        Returns
        -------
        pandas.api.extensions.ExtensionArray
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3, 1, 2, 3])
        >>> arr.unique()
        <IntegerArray>
        [1, 2, 3]
        Length: 3, dtype: Int64
        r‰)r+rœÚobjectrOrI)rfÚuniquess  rNr+zExtensionArray.uniqueçs1€ô ˜Ÿ™¤VÓ,Ó-ˆØ×"Ñ" 7°$·*±*Ð"Ó=Ð=rQcóž—|jt«}t|t«r|jt«}|j    |||¬«S)a8
        Find indices where elements should be inserted to maintain order.
 
        Find the indices into a sorted array `self` (a) such that, if the
        corresponding elements in `value` were inserted before the indices,
        the order of `self` would be preserved.
 
        Assuming that `self` is sorted:
 
        ======  ================================
        `side`  returned index `i` satisfies
        ======  ================================
        left    ``self[i-1] < value <= self[i]``
        right   ``self[i-1] <= value < self[i]``
        ======  ================================
 
        Parameters
        ----------
        value : array-like, list or scalar
            Value(s) to insert into `self`.
        side : {'left', 'right'}, optional
            If 'left', the index of the first suitable location found is given.
            If 'right', return the last such index.  If there is no suitable
            index, return either 0 or N (where N is the length of `self`).
        sorter : 1-D array-like, optional
            Optional array of integer indices that sort array a into ascending
            order. They are typically the result of argsort.
 
        Returns
        -------
        array of ints or int
            If value is array-like, array of insertion points.
            If value is scalar, a single integer.
 
        See Also
        --------
        numpy.searchsorted : Similar method from NumPy.
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3, 5])
        >>> arr.searchsorted([4])
        array([3])
        )ÚsideÚsorter)rœrîr}rFÚ searchsorted)rfrprñròÚarrs     rNrózExtensionArray.searchsortedúsC€ðnk‰kœ&Ó!ˆÜ eœ^Ô ,Ø—L‘L¤Ó(ˆEØ×Ñ ¨D¸ÐÓ@Ð@rQcó|—t|«t|«k7rytt|«}|j|jk7ryt    |«t    |«k7ry||k(}t |t«r|j d«}|j«|j«z}t||zj««S)a“
        Return if another array is equivalent to this array.
 
        Equivalent means that both arrays have the same shape and dtype, and
        all values compare equal. Missing values in the same location are
        considered equal (in contrast with normal equality).
 
        Parameters
        ----------
        other : ExtensionArray
            Array to compare to this Array.
 
        Returns
        -------
        boolean
            Whether the arrays are equivalent.
 
        Examples
        --------
        >>> arr1 = pd.array([1, 2, np.nan])
        >>> arr2 = pd.array([1, 2, np.nan])
        >>> arr1.equals(arr2)
        True
        F)
rnr    rFrIrwr}rÏr!rªrÓ)rfrƒÚ equal_valuesÚequal_nas    rNÚequalszExtensionArray.equals6s›€ô2 ‹:œ˜e›Ò $ØÜ”^ UÓ+ˆØ :‰:˜Ÿ™Ò $ØÜ ‹Yœ#˜e›*Ò $Øà 5™=ˆLܘ,¬Ô7à+×2Ñ2°5Ó9 à—y‘y“{ U§Z¡Z£\Ñ1ˆHܘ¨Ñ0×5Ñ5Ó7Ó8Ð 8rQcó@—ttj|«|«S)aÞ
        Pointwise comparison for set containment in the given values.
 
        Roughly equivalent to `np.array([x in values for x in self])`
 
        Parameters
        ----------
        values : np.ndarray or ExtensionArray
 
        Returns
        -------
        np.ndarray[bool]
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr.isin([1])
        <BooleanArray>
        [True, False, False]
        Length: 3, dtype: boolean
        )r'rŠr‹)rfr_s  rNr'zExtensionArray.isin_s€ô,”B—J‘J˜tÓ$ fÓ-Ð-rQcóL—|jt«tjfS)aÝ
        Return an array and missing value suitable for factorization.
 
        Returns
        -------
        values : ndarray
            An array suitable for factorization. This should maintain order
            and be a supported dtype (Float64, Int64, UInt64, String, Object).
            By default, the extension array is cast to object dtype.
        na_value : object
            The value in `values` to consider missing. This will be treated
            as NA in the factorization routines, so it will be coded as
            `-1` and not included in `uniques`. By default,
            ``np.nan`` is used.
 
        Notes
        -----
        The values returned by this method are also used in
        :func:`pandas.util.hash_pandas_object`. If needed, this can be
        overridden in the ``self._hash_pandas_object()`` method.
 
        Examples
        --------
        >>> pd.array([1, 2, 3])._values_for_factorize()
        (array([1, 2, 3], dtype=object), nan)
        )rœrîrŠÚnanrss rNÚ_values_for_factorizez$ExtensionArray._values_for_factorizews€ð6{‰{œ6Ó"¤B§F¡FÐ*Ð*rQcóv—|j«\}}t|||¬«\}}|j||«}||fS)a„
        Encode the extension array as an enumerated type.
 
        Parameters
        ----------
        use_na_sentinel : bool, default True
            If True, the sentinel -1 will be used for NaN values. If False,
            NaN values will be encoded as non-negative integers and will not drop the
            NaN from the uniques of the values.
 
            .. versionadded:: 1.5.0
 
        Returns
        -------
        codes : ndarray
            An integer NumPy array that's an indexer into the original
            ExtensionArray.
        uniques : ExtensionArray
            An ExtensionArray containing the unique values of `self`.
 
            .. note::
 
               uniques will *not* contain an entry for the NA value of
               the ExtensionArray if there are any missing values present
               in `self`.
 
        See Also
        --------
        factorize : Top-level factorize method that dispatches here.
 
        Notes
        -----
        :meth:`pandas.factorize` offers a `sort` keyword as well.
 
        Examples
        --------
        >>> idx1 = pd.PeriodIndex(["2014-01", "2014-01", "2014-02", "2014-02",
        ...                       "2014-03", "2014-03"], freq="M")
        >>> arr, idx = idx1.factorize()
        >>> arr
        array([0, 0, 1, 1, 2, 2])
        >>> idx
        PeriodIndex(['2014-01', '2014-02', '2014-03'], dtype='period[M]')
        )Úuse_na_sentinelr|)rür&ra)rfrþrôr|ÚcodesrïÚ
uniques_eas       rNÚ    factorizezExtensionArray.factorize”sK€ðp×2Ñ2Ó4‰ ˆˆXä(Ø  ¸8ô
‰ˆˆwð×*Ñ*¨7°DÓ9ˆ
ؐjРРrQa;
        Repeat elements of a %(klass)s.
 
        Returns a new %(klass)s where each element of the current %(klass)s
        is repeated consecutively a given number of times.
 
        Parameters
        ----------
        repeats : int or array of ints
            The number of repetitions for each element. This should be a
            non-negative integer. Repeating 0 times will return an empty
            %(klass)s.
        axis : None
            Must be ``None``. Has no effect but is accepted for compatibility
            with numpy.
 
        Returns
        -------
        %(klass)s
            Newly created %(klass)s with repeated elements.
 
        See Also
        --------
        Series.repeat : Equivalent function for Series.
        Index.repeat : Equivalent function for Index.
        numpy.repeat : Similar method for :class:`numpy.ndarray`.
        ExtensionArray.take : Take arbitrary positions.
 
        Examples
        --------
        >>> cat = pd.Categorical(['a', 'b', 'c'])
        >>> cat
        ['a', 'b', 'c']
        Categories (3, object): ['a', 'b', 'c']
        >>> cat.repeat(2)
        ['a', 'a', 'b', 'b', 'c', 'c']
        Categories (3, object): ['a', 'b', 'c']
        >>> cat.repeat([1, 2, 3])
        ['a', 'b', 'b', 'c', 'c', 'c']
        Categories (3, object): ['a', 'b', 'c']
        Úrepeat)Úklasscó®—tjdd|i«tjt    |««j |«}|j |«S)NrdrÃ)r´Úvalidate_repeatrŠÚarangerwrrÖ)rfÚrepeatsrÃÚinds    rNrzExtensionArray.repeatsC€ô     ×ј2 ¨˜~Ô.܏i‰iœ˜D›    Ó"×)Ñ)¨'Ó2ˆØy‰y˜‹~ÐrQ)rÍrècó—t|«‚)aò
        Take elements from an array.
 
        Parameters
        ----------
        indices : sequence of int or one-dimensional np.ndarray of int
            Indices to be taken.
        allow_fill : bool, default False
            How to handle negative values in `indices`.
 
            * False: negative values in `indices` indicate positional indices
              from the right (the default). This is similar to
              :func:`numpy.take`.
 
            * True: negative values in `indices` indicate
              missing values. These values are set to `fill_value`. Any other
              other negative values raise a ``ValueError``.
 
        fill_value : any, optional
            Fill value to use for NA-indices when `allow_fill` is True.
            This may be ``None``, in which case the default NA value for
            the type, ``self.dtype.na_value``, is used.
 
            For many ExtensionArrays, there will be two representations of
            `fill_value`: a user-facing "boxed" scalar, and a low-level
            physical NA value. `fill_value` should be the user-facing version,
            and the implementation should handle translating that to the
            physical version for processing the take if necessary.
 
        Returns
        -------
        ExtensionArray
 
        Raises
        ------
        IndexError
            When the indices are out of bounds for the array.
        ValueError
            When `indices` contains negative values other than ``-1``
            and `allow_fill` is True.
 
        See Also
        --------
        numpy.take : Take elements from an array along an axis.
        api.extensions.take : Take elements from an array.
 
        Notes
        -----
        ExtensionArray.take is called by ``Series.__getitem__``, ``.loc``,
        ``iloc``, when `indices` is a sequence of values. Additionally,
        it's called by :meth:`Series.reindex`, or any other method
        that causes realignment, with a `fill_value`.
 
        Examples
        --------
        Here's an example implementation, which relies on casting the
        extension array to object dtype. This uses the helper method
        :func:`pandas.api.extensions.take`.
 
        .. code-block:: python
 
           def take(self, indices, allow_fill=False, fill_value=None):
               from pandas.core.algorithms import take
 
               # If the ExtensionArray is backed by an ndarray, then
               # just pass that here instead of coercing to object.
               data = self.astype(object)
 
               if allow_fill and fill_value is None:
                   fill_value = self.dtype.na_value
 
               # fill value should always be translated from the scalar
               # type for the array, to the physical storage type for
               # the data, before passing to take.
 
               result = take(data, indices, fill_value=fill_value,
                             allow_fill=allow_fill)
               return self._from_sequence(result, dtype=self.dtype)
        r)rfÚindicesrÍrès    rNrÖzExtensionArray.take s€ôz" $Ó'Ð'rQcó—t|«‚)a=
        Return a copy of the array.
 
        Returns
        -------
        ExtensionArray
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr2 = arr.copy()
        >>> arr[0] = 2
        >>> arr2
        <IntegerArray>
        [1, 2, 3]
        Length: 3, dtype: Int64
        rrss rNrJzExtensionArray.copyks€ô$" $Ó'Ð'rQcó&—| t|«‚|ddS)aÚ
        Return a view on the array.
 
        Parameters
        ----------
        dtype : str, np.dtype, or ExtensionDtype, optional
            Default None.
 
        Returns
        -------
        ExtensionArray or np.ndarray
            A view on the :class:`ExtensionArray`'s data.
 
        Examples
        --------
        This gives view on the underlying data of an ``ExtensionArray`` and is not a
        copy. Modifications on either the view or the original ``ExtensionArray``
        will be reflectd on the underlying data:
 
        >>> arr = pd.array([1, 2, 3])
        >>> arr2 = arr.view()
        >>> arr[0] = 2
        >>> arr2
        <IntegerArray>
        [2, 2, 3]
        Length: 3, dtype: Int64
        N)rm)rfrIs  rNÚviewzExtensionArray.views€ð@ Ð Ü% eÓ,Ð ,Ø‘AˆwˆrQcó—|jdkDr|j«Sddlm}|||j    «d¬«j d«}dt |«j›d}|j«}|›|›d    |›S)
Nr–r©Úformat_object_summaryF©Úindent_for_nameú, 
ú<z>
ú
)    r—Ú_repr_2dÚpandas.io.formats.printingrÚ
_formatterÚrstriprnrÁÚ_get_repr_footer)rfrÚdataÚ
class_nameÚfooters     rNÚ__repr__zExtensionArray.__repr__§s€€Ø 9‰9qŠ=Ø—=‘=“?Ð "åDñ
%Ø $—/‘/Ó#°Uô
ç
‰&‹.ð     ðœ˜d›×,Ñ,Ð-¨SÐ1ˆ
Ø×&Ñ&Ó(ˆØ˜d˜V 2 f XÐ.Ð.rQcóŽ—|jdkDrd|j›d|j›Sdt|«›d|j›S)Nr–zShape: z    , dtype: zLength: )r—r‘rIrwrss rNrzExtensionArray._get_repr_footer·sC€à 9‰9qŠ=ؘTŸZ™Z˜L¨    °$·*±*°Ð>Ð >Øœ#˜d›)˜ I¨d¯j©j¨\Ð:Ð:rQcó
—ddlm}|Dcgc]*}|||j«d¬«jd«‘Œ,}}dj    |«}dt |«j ›d}|j«}|›d    |›d
|›Scc}w) NrrFrrz,
rú>z
[
z
]
)rrrrÚjoinrnrÁr)rfrÚxÚlinesrrrs       rNrzExtensionArray._repr_2d½s—€ÝDðö    
ðñ " ! T§_¡_Ó%6ÈÔ N× UÑ UØõ ð
ˆð
ð z‰z˜%Ó ˆØœ˜d›×,Ñ,Ð-¨QÐ/ˆ
Ø×&Ñ&Ó(ˆØ˜U 4 &¨¨f¨XÐ6Ð6ùò
s‹/Bcó—|rtStS)aÏ
        Formatting function for scalar values.
 
        This is used in the default '__repr__'. The returned formatting
        function receives instances of your scalar type.
 
        Parameters
        ----------
        boxed : bool, default False
            An indicated for whether or not your array is being printed
            within a Series, DataFrame, or Index (True), or just by
            itself (False). This may be useful if you want scalar values
            to appear differently within a Series versus on its own (e.g.
            quoted or not).
 
        Returns
        -------
        Callable[[Any], str]
            A callable that gets instances of the scalar type and
            returns a string. By default, :func:`repr` is used
            when ``boxed=False`` and :func:`str` is used when
            ``boxed=True``.
 
        Examples
        --------
        >>> class MyExtensionArray(pd.arrays.NumpyExtensionArray):
        ...     def _formatter(self, boxed=False):
        ...         return lambda x: '*' + str(x) + '*' if boxed else repr(x) + '*'
        >>> MyExtensionArray(np.array([1, 2, 3, 4]))
        <MyExtensionArray>
        [1*, 2*, 3*, 4*]
        Length: 4, dtype: int64
        )ÚstrÚrepr)rfÚboxeds  rNrzExtensionArray._formatterÎs€ñD ܈J܈ rQcó —|ddS)a…
        Return a transposed view on this array.
 
        Because ExtensionArrays are always 1D, this is a no-op.  It is included
        for compatibility with np.ndarray.
 
        Returns
        -------
        ExtensionArray
 
        Examples
        --------
        >>> pd.array([1, 2, 3]).transpose()
        <IntegerArray>
        [1, 2, 3]
        Length: 3, dtype: Int64
        Nrd)rfÚaxess  rNÚ    transposezExtensionArray.transposeøs €ð$‘AˆwˆrQcó"—|j«Src)r+rss rNÚTzExtensionArray.T s€à~‰~ÓÐrQcó—|S)a 
        Return a flattened view on this array.
 
        Parameters
        ----------
        order : {None, 'C', 'F', 'A', 'K'}, default 'C'
 
        Returns
        -------
        ExtensionArray
 
        Notes
        -----
        - Because ExtensionArrays are 1D-only, this is a no-op.
        - The "order" argument is ignored, is for compatibility with NumPy.
 
        Examples
        --------
        >>> pd.array([1, 2, 3]).ravel()
        <IntegerArray>
        [1, 2, 3]
        Length: 3, dtype: Int64
        rd)rfÚorders  rNÚravelzExtensionArray.ravels    €ð0ˆ rQcó—t|«‚)aÊ
        Concatenate multiple array of this dtype.
 
        Parameters
        ----------
        to_concat : sequence of this type
 
        Returns
        -------
        ExtensionArray
 
        Examples
        --------
        >>> arr1 = pd.array([1, 2, 3])
        >>> arr2 = pd.array([4, 5, 6])
        >>> pd.arrays.IntegerArray._concat_same_type([arr1, arr2])
        <IntegerArray>
        [1, 2, 3, 4, 5, 6]
        Length: 6, dtype: Int64
        r)rLÚ    to_concats  rNræz ExtensionArray._concat_same_type*rPrQcó.—|jjSrc)rIr{rss rNr{zExtensionArray._can_hold_naLs€àz‰z×&Ñ&Ð&rQ©r¹c ó8—td|›d|j›«‚)as
        Return an ExtensionArray performing an accumulation operation.
 
        The underlying data type might change.
 
        Parameters
        ----------
        name : str
            Name of the function, supported values are:
            - cummin
            - cummax
            - cumsum
            - cumprod
        skipna : bool, default True
            If True, skip NA values.
        **kwargs
            Additional keyword arguments passed to the accumulation function.
            Currently, there is no supported kwarg.
 
        Returns
        -------
        array
 
        Raises
        ------
        NotImplementedError : subclass does not define accumulations
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr._accumulate(name='cumsum')
        <IntegerArray>
        [1, 3, 6]
        Length: 3, dtype: Int64
        zcannot perform z  with type )rmrI)rfÚnamer¹r¶s    rNÚ _accumulatezExtensionArray._accumulatePs!€ôL" O°D°6¸ÀTÇZÁZÀLÐ"QÓRÐRrQ)r¹Úkeepdimsc     ó̗t||d«}|€2tdt|«j›d|j›d|›d«‚|dd|i|¤Ž}|rt j |g«}|S)a¹
        Return a scalar result of performing the reduction operation.
 
        Parameters
        ----------
        name : str
            Name of the function, supported values are:
            { any, all, min, max, sum, mean, median, prod,
            std, var, sem, kurt, skew }.
        skipna : bool, default True
            If True, skip NaN values.
        keepdims : bool, default False
            If False, a scalar is returned.
            If True, the result has dimension with size one along the reduced axis.
 
            .. versionadded:: 2.1
 
               This parameter is not required in the _reduce signature to keep backward
               compatibility, but will become required in the future. If the parameter
               is not found in the method signature, a FutureWarning will be emitted.
        **kwargs
            Additional keyword arguments passed to the reduction function.
            Currently, `ddof` is the only supported kwarg.
 
        Returns
        -------
        scalar
 
        Raises
        ------
        TypeError : subclass does not define reductions
 
        Examples
        --------
        >>> pd.array([1, 2, 3])._reduce("min")
        1
        Nú'z ' with dtype z does not support reduction 'r¹rd)ÚgetattrrVrnrÁrIrŠr§)rfr6r¹r8r¶r×rs       rNÚ_reducezExtensionArray._reducexs€ôPt˜T 4Ó(ˆØ ˆ<ÜØ”D˜“J×'Ñ'Ð(¨ °d·j±j°\ðB/Ø/3¨f°Að7óð ñÑ.˜VÐ. vÑ.ˆÙ Ü—X‘X˜v˜hÓ'ˆFàˆ rQzClassVar[None]Ú__hash__có,—tj|«S)aY
        Specify how to render our entries in to_json.
 
        Notes
        -----
        The dtype on the returned ndarray is not restricted, but for non-native
        types that are not specifically handled in objToJSON.c, to_json is
        liable to raise. In these cases, it may be safer to return an ndarray
        of strings.
        )rŠr‹rss rNÚ_values_for_jsonzExtensionArray._values_for_jsonµs€ôz‰z˜$ÓÐrQcóL—ddlm}|j«\}}|||||¬«S)a‰
        Hook for hash_pandas_object.
 
        Default is to use the values returned by _values_for_factorize.
 
        Parameters
        ----------
        encoding : str
            Encoding for data & key when strings.
        hash_key : str
            Hash_key for string key to encode.
        categorize : bool
            Whether to first categorize object arrays before hashing. This is more
            efficient when the array contains duplicate values.
 
        Returns
        -------
        np.ndarray[uint64]
 
        Examples
        --------
        >>> pd.array([1, 2])._hash_pandas_object(encoding='utf-8',
        ...                                      hash_key="1000000000000000",
        ...                                      categorize=False
        ...                                      )
        array([ 6238072747940578789, 15839785061582574730], dtype=uint64)
        r)Ú
hash_array)ÚencodingÚhash_keyÚ
categorize)Úpandas.core.util.hashingrArü)rfrBrCrDrAr_Ú_s       rNÚ_hash_pandas_objectz"ExtensionArray._hash_pandas_objectÂs/€õ<    8à×.Ñ.Ó0‰    ˆÙØ ˜X°ÀZô
ð    
rQcóˆ—|j«}tjt|«ftj¬«}||fS)aÌ
        Transform each element of list-like to a row.
 
        For arrays that do not contain list-like elements the default
        implementation of this method just returns a copy and an array
        of ones (unchanged index).
 
        Returns
        -------
        ExtensionArray
            Array with the exploded values.
        np.ndarray[uint64]
            The original lengths of each list-like for determining the
            resulting index.
 
        See Also
        --------
        Series.explode : The method on the ``Series`` object that this
            extension array method is meant to support.
 
        Examples
        --------
        >>> import pyarrow as pa
        >>> a = pd.array([[1, 2, 3], [4], [5, 6]],
        ...              dtype=pd.ArrowDtype(pa.list_(pa.int64())))
        >>> a._explode()
        (<ArrowExtensionArray>
        [1, 2, 3, 4, 5, 6]
        Length: 6, dtype: int64[pyarrow], array([3, 1, 2], dtype=int32))
        )r‘rI)rJrŠÚonesrwÚuint64)rfr_Úcountss   rNÚ_explodezExtensionArray._explodeçs3€ð>—‘“ˆÜ—‘¤ D£    ˜|´2·9±9Ô=ˆØvˆ~ÐrQcó|—|jdkDr|Dcgc]}|j«‘Œc}St|«Scc}w)as
        Return a list of the values.
 
        These are each a scalar type, which is a Python scalar
        (for str, int, float) or a pandas scalar
        (for Timestamp/Timedelta/Interval/Period)
 
        Returns
        -------
        list
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr.tolist()
        [1, 2, 3]
        r–)r—ÚtolistÚlist)rfr#s  rNrNzExtensionArray.tolist
s5€ð$ 9‰9qŠ=Ø(,Ö- 1A—H‘H•JÒ-Ð -ܐD‹zÐùò.s”9cóˆ—tjtjt|««|«}|j    |«Src)rŠÚdeleterrwrÖ)rfÚlocrÙs   rNrQzExtensionArray.delete s.€Ü—)‘)œBŸI™I¤c¨$£iÓ0°#Ó6ˆØy‰y˜Ó!Ð!rQcóÀ—t|t|««}t|«j|g|j¬«}t|«j |d||||dg«S)a²
        Insert an item at the given position.
 
        Parameters
        ----------
        loc : int
        item : scalar-like
 
        Returns
        -------
        same type as self
 
        Notes
        -----
        This method should be both type and dtype-preserving.  If the item
        cannot be held in an array of this type/dtype, either ValueError or
        TypeError should be raised.
 
        The default implementation relies on _from_sequence to raise on invalid
        items.
 
        Examples
        --------
        >>> arr = pd.array([1, 2, 3])
        >>> arr.insert(2, -1)
        <IntegerArray>
        [1, 2, -1, 3]
        Length: 4, dtype: Int64
        r‰N)rrwrnrOrIræ)rfrRrgÚitem_arrs    rNÚinsertzExtensionArray.insert$s[€ô<" #¤s¨4£yÓ1ˆä˜“:×,Ñ,¨d¨V¸4¿:¹:Ð,ÓFˆäD‹z×+Ñ+¨T°$°3¨Z¸À4ÈÈÀ:Ð,NÓOÐOrQcó4—t|«r||}n|}|||<y)aé
        Analogue to np.putmask(self, mask, value)
 
        Parameters
        ----------
        mask : np.ndarray[bool]
        value : scalar or listlike
            If listlike, must be arraylike with same length as self.
 
        Returns
        -------
        None
 
        Notes
        -----
        Unlike np.putmask, we do not repeat listlike values with mismatched length.
        'value' should either be a scalar or an arraylike with the same length
        as self.
        N)r)rfr³rpÚvals    rNÚ_putmaskzExtensionArray._putmaskHs#€ô( ˜Ô ؘ‘+‰CàˆCàˆˆTŠ
rQcóZ—|j«}t|«r||}n|}|||<|S)zÞ
        Analogue to np.where(mask, self, value)
 
        Parameters
        ----------
        mask : np.ndarray[bool]
        value : scalar or listlike
 
        Returns
        -------
        same type as self
        )rJr)rfr³rprrWs     rNÚ_wherezExtensionArray._wherecs7€ð—‘“ˆä ˜Ô ؘ˜‘,‰CàˆCàˆˆu‰ ؈ rQcóԗtj|«}|jt«}||||j    «¬«|j ||j ¬«}||||<y)z™
        Replace values in locations specified by 'mask' using pad or backfill.
 
        See also
        --------
        ExtensionArray.fillna
        )rÅr³r‰N)r#Ú get_fill_funcrœrîrJrOrI)rfrÂrÅr³ÚfuncÚnpvaluesrÚs       rNÚ_fill_mask_inplacez!ExtensionArray._fill_mask_inplace{s]€ô×$Ñ$ VÓ,ˆØ—;‘;œvÓ&ˆñ     ˆX˜U¨¯©«Õ5Ø×(Ñ(¨¸¿¹Ð(ÓDˆ
Ø Ñ%ˆˆTŠ
rQrÚaverage©rÃrÂÚ    na_optionr¯ÚpctcóV—|dk7rt‚t|j«|||||¬«S)z*
        See Series.rank.__doc__.
        rra)rmr*r¬)rfrÃrÂrbr¯rcs      rNÚ_rankzExtensionArray._ranks9€ð 1Š9Ü%Ð %äØ × $Ñ $Ó &ØØØØØô 
ð    
rQcóø—|jg|¬«}tjtjd«|«}|j    |d¬«}t ||«r||j k7rtd|›d«‚|S)zÙ
        Create an ExtensionArray with the given shape and dtype.
 
        See also
        --------
        ExtensionDtype.empty
            ExtensionDtype.empty is the 'official' public version of this API.
        r‰rÎTrÌz5Default 'empty' implementation is invalid for dtype='r:)rOrŠÚ broadcast_toÚintprÖr}rIrm)rLr‘rIÚobjÚtakerrs      rNÚ_emptyzExtensionArray._empty¥sx€ð× Ñ  ¨5РÓ1ˆä—‘¤§¡¨£ ¨UÓ3ˆØ—‘˜%¨DÓ1ˆÜ˜& #Ô&¨%°6·<±<Ò*?Ü%ØGÈÀwÈaÐPóð ðˆ rQcóä—tj|j««}tj|«}tj}t    |||||«}t |«j |«S)zè
        Compute the quantiles of self for each quantile in `qs`.
 
        Parameters
        ----------
        qs : np.ndarray[float64]
        interpolation: str
 
        Returns
        -------
        same type as self
        )rŠr‹r!rûr,rnrO)rfÚqsÚ interpolationr³rôrèÚ
res_valuess       rNÚ    _quantilezExtensionArray._quantile¼sV€ôz‰z˜$Ÿ)™)›+Ó&ˆÜj‰j˜ÓˆÜ—V‘Vˆ
ä'¨¨T°:¸rÀ=ÓQˆ
ܐD‹z×(Ñ(¨Ó4Ð4rQcó—t||¬«S)aT
        Returns the mode(s) of the ExtensionArray.
 
        Always returns `ExtensionArray` even if only one value.
 
        Parameters
        ----------
        dropna : bool, default True
            Don't consider counts of NA values.
 
        Returns
        -------
        same type as self
            Sorted, if possible.
        )rß)r))rfrßs  rNÚ_modezExtensionArray._modeÐs€ô$D Ô(Ð(rQcóD—td„|D««rtStj|||g|¢­i|¤Ž}|tur|Sd|vrtj|||g|¢­i|¤ŽS|dk(r%tj
|||g|¢­i|¤Ž}|tur|Stj |||g|¢­i|¤ŽS)Nc3óRK—|]}t|tttf«–—Œ!y­wrc)r}rrr)Ú.0rƒs  rNú    <genexpr>z1ExtensionArray.__array_ufunc__.<locals>.<genexpr>ås#èø€ò
ØGLŒJuœy¬(´LÐA× Bñ
ùs‚%'ÚoutÚreduce)rÚNotImplementedr"Ú!maybe_dispatch_ufunc_to_dunder_opÚdispatch_ufunc_with_outÚdispatch_reduction_ufuncÚdefault_array_ufunc)rfÚufuncrÂÚinputsr¶rs      rNÚ__array_ufunc__zExtensionArray.__array_ufunc__äså€Ü ñ
ØPVô
ô
ô"Ð !ä×<Ñ<Ø %˜ð
Ø"(ò
Ø,2ñ
ˆð œÑ '؈Mà F‰?Ü×4Ñ4ؐe˜VðØ&,òØ06ñð ð XÒ Ü×7Ñ7ؐe˜VðØ&,òØ06ñˆFðœ^Ñ+ؐ ä×,Ñ,¨T°5¸&ÐTÀ6ÒTÈVÑTÐTrQcó—t|||¬«S)a³
        Map values using an input mapping or function.
 
        Parameters
        ----------
        mapper : function, dict, or Series
            Mapping correspondence.
        na_action : {None, 'ignore'}, default None
            If 'ignore', propagate NA values, without passing them to the
            mapping correspondence. If 'ignore' is not supported, a
            ``NotImplementedError`` should be raised.
 
        Returns
        -------
        Union[ndarray, Index, ExtensionArray]
            The output of the mapping function applied to the array.
            If the function returns a tuple with more than one element
            a MultiIndex will be returned.
        )Ú    na_action)r()rfÚmapperr‚s   rNÚmapzExtensionArray.mapþs€ô(˜˜v°Ô;Ð;rQc     ó:—ddlm}ddlm}|j    |«}    |||    |¬«}
d} t |j |«rÆ|
jdvrtd|j ›d|›d«‚|
jd    vr?|
j|
j|
jtj t«d
«|} |
jd k(rd } |dk(r| jd «} | jttj¬ «} nt!d|j ›«‚|
j"| f|||d| dœ|¤Ž}|
j|
j$vr|St |j |«r/|j }|j'«}|j)||¬«St ‚)aã
        Dispatch GroupBy reduction or transformation operation.
 
        This is an *experimental* API to allow ExtensionArray authors to implement
        reductions and transformations. The API is subject to change.
 
        Parameters
        ----------
        how : {'any', 'all', 'sum', 'prod', 'min', 'max', 'mean', 'median',
               'median', 'var', 'std', 'sem', 'nth', 'last', 'ohlc',
               'cumprod', 'cumsum', 'cummin', 'cummax', 'rank'}
        has_dropped_na : bool
        min_count : int
        ngroups : int
        ids : np.ndarray[np.intp]
            ids[i] gives the integer label for the group that self[i] belongs to.
        **kwargs : operation-specific
            'any', 'all' -> ['skipna']
            'var', 'std', 'sem' -> ['ddof']
            'cumprod', 'cumsum', 'cummin', 'cummax' -> ['skipna']
            'rank' -> ['ties_method', 'ascending', 'na_option', 'pct']
 
        Returns
        -------
        np.ndarray or ExtensionArray
        r)Ú StringDtype)ÚWrappedCythonOp)Úhowr°Úhas_dropped_na)    r“ÚmeanÚmedianÚcumsumÚcumprodÚstdÚsemÚvarÚskewzdtype 'z' does not support operation 'r:)rrÓFÚsumÚ)r|z,function is not implemented for this dtype: N)Ú    min_countÚngroupsÚcomp_idsr³Úinitialr‰)Úpandas.core.arrays.string_r†Úpandas.core.groupby.opsr‡Úget_kind_from_howr}rIrˆrVÚ_get_cython_functionr°rŠrîrÏrŽrûrmÚ_cython_op_ndim_compatÚcast_blocklistr¤rO)rfrˆr‰r”r•Úidsr¶r†r‡r°Úopr—rôr^rorIÚstring_array_clss                 rNÚ _groupby_opzExtensionArray._groupby_op    s—€õH    ;Ý;à×0Ñ0°Ó5ˆÙ  ¨4ÀÔ Oˆàˆä d—j‘j +Ô .àv‰vð
ñ
ô Ø˜dŸj™j˜\Ð)GÈÀuÈAÐNóððv‰v˜^Ñ+à×'Ñ'¨¯©°·±¼¿¹Ä&Ó9IÈ5ÔQàˆC؏v‰v˜ŠØð ’>ØŸ*™* R›.CØ—|‘|¤F´R·V±V|Ó<‰Hä%Ø>¸t¿z¹z¸lÐKóð ð/R×.Ñ.Ø ð
àØØØØñ 
ðñ
ˆ
ð 6‰6R×&Ñ&Ñ &ðÐ ä d—j‘j +Ô .Ø—J‘JˆEØ$×9Ñ9Ó;Ð Ø#×2Ñ2°:ÀUÐ2ÓKÐ Kô&Ð %rQ)rIú Dtype | NonerJrª)rIr6Úreturnr=)rgr<r£r)rgr>r£r=)rgr;r£z
Self | Any©r£ÚNone)r£Úint)r£z Iterator[Any])rgrîr£zbool | np.bool_)rƒrîr£r2)rIznpt.DTypeLike | NonerJrªr|rîr£ú
np.ndarray)r£r)r£r?).)rIz npt.DTypeLikerJrªr£r§)rIrrJrªr£rF)rIr3rJrªr£r2)T)r£z)np.ndarray | ExtensionArraySupportsAnyAll)r£rª)r£r§)r¯rªr°r@r±r&r£r§)r¹rªr£r¦)
rÂr8rÃr¦rÄrCrJrªr£r=)
rÂr7rÅú
int | NonerÇz#Literal['inside', 'outside'] | NonerJrªr£r=)NNNT)
rpzobject | ArrayLike | NonerÂzFillnaOptions | NonerÅr¨rJrªr£r=)r£r=)Úfirst)ràzLiteral['first', 'last', False]r£únpt.NDArray[np.bool_])r–N)rçr¦rèrîr£rF)ÚleftN)rpz$NumpyValueArrayLike | ExtensionArrayrñzLiteral['left', 'right']ròzNumpySorter | Noner£znpt.NDArray[np.intp] | np.intp)rƒrîr£rª)r_r2r£rª)r£ztuple[np.ndarray, Any])rþrªr£z!tuple[np.ndarray, ExtensionArray]rc)rzint | Sequence[int]rÃzAxisInt | Noner£r=)r
rArÍrªrèrr£r=)rIr¢r£r2)r£r&)F)r(rªr£zCallable[[Any], str | None])r*r¦r£rF)r£rF)ÚC)r/z"Literal['C', 'F', 'A', 'K'] | Noner£rF)r2zSequence[Self]r£r=)r6r&r¹rªr£rF)r6r&r¹rªr8rª)rBr&rCr&rDrªr£znpt.NDArray[np.uint64])r£z#tuple[Self, npt.NDArray[np.uint64]])r£rO)rRr;r£r=)rRr¦r£r=)r³rªr£r¥)r³rªr£r=)rÂr&rÅr¨r³rªr£r¥)
rÃr4rÂr&rbr&r¯rªrcrª)r‘r?rIr)rmznpt.NDArray[np.float64]rnr&r£r=)rßrªr£r=)r~znp.ufuncrÂr&) rˆr&r‰rªr”r¦r•r¦ržznpt.NDArray[np.intp]r£r2)SrÁÚ
__module__Ú __qualname__Ú__doc__Ú_typÚ__pandas_priority__Ú classmethodrOrZr]rar
rhrqrtryr€r„r‡r rŒrŽÚpropertyrIr‘r”r—r™rœr!r~r¬r·rºr¿rÈrÐrÏrßr%rìr+rórør'rürrDrrrrÖrJr rrrrr+r-r0rærr{r7r<Ú__annotations__r?rGrLrNrQrUrXrZr_rerkrprrr€r„r¡rdrQrNrFrFnsÐ…ñNðd €Dð Ðð Ø>BÐQVô'óð'ð8òóðð>à/3À%ñ'Ø ,ð'Ø;?ò'óð'ð<ñ'óð'ð>ò óð ðò óð ó(óB+SóZ(óó(ó(
(ó ð'+ØØŸ>™>ð    "à#ð"ðð"ðð    "ð
 
ó "ðPò    (óð    (ðò
óð
ðò#óð#ðò
óð
ðò (óð (ð"ó óð ðó óð ðó óð ôE:óN(ð8ò'óð'ó!ðLØ$Ø!ñ 6
ðð6
ðð    6
ð
ð 6
ð
ó6
ôp *ôD *ðD"
ð#ð"
ðð    "
ð
ð "
ðð"
ð
ó"
ðP!Ø:>Øñ ]ðð]ðð    ]ð
8ð ]ð ð ]ð
ó]ðB,0Ø'+Ø Øð `à(ð`ð%ð`ðð    `ð
ð `ð
ó `óD"ð$7>ð=Ø3ð=à    ó=ô2:.óx>ð,*0Ø%)ð    :Aà3ð:Að'ð:Að#ð    :Að
 
(ó :Aóx'9óR.ó0+ð>!%ð?!àð?!ð
+ó?!ðF(     ð!ØññXÐ(Ô)Ù Ð*¨8Ñ4Ó5óó6ó*ðð!Øñ ](àð](ðð    ](ð
ð ](ð
ó ](ó~(ô("óP/ó ;ó 7ô"$óTð(ò óð ôð4ò'óð'ðBò'óð'ð,0ñ&SØð&SØ$(ð&Sà    ó&SðR,0À%ñ2Øð2Ø$(ð2Ø;?ó2ðnÓó  ð#
Øð#
Ø*-ð#
Ø;?ð#
à    ó#
óJ!óFó,"ó"PóHó6ð0&Øð&Ø",ð&Ø4Ið&à     ó&ð*ØØØØñ
ðð
ðð    
ð
ð 
ð ð 
ðó
ð0òóðó,5ô()ó(Uó4<ð2b&ððb&ðð    b&ð
ð b&ð ð b&ð"ðb&ð
ôb&rQrFcó(—eZdZddœdd„Zddœdd„Zy)ÚExtensionArraySupportsAnyAllTr4có—t|«‚rcrr¼s  rNrz ExtensionArraySupportsAnyAll.any}    ó €Ü! $Ó'Ð'rQcó—t|«‚rcrr¼s  rNrÓz ExtensionArraySupportsAnyAll.all€    r¸rQN)r¹rªr£rª)rÁr­r®rrÓrdrQrNr¶r¶|    s„Ø$(õ(ð%)ö(rQr¶cóv—eZdZdZed„«Zed    d„«Zed„«Zed    d„«Zed„«Z    ed    d„«Z
y)
ÚExtensionOpsMixinzú
    A base class for linking the operators to their dunder names.
 
    .. note::
 
       You may want to set ``__array_priority__`` if you want your
       implementation to be called when involved in binary operations
       with NumPy arrays.
    có—t|«‚rcr©rLrŸs  rNÚ_create_arithmetic_methodz+ExtensionOpsMixin._create_arithmetic_method    ó €ä! #Ó&Ð&rQcó0—t|d|jtj««t|d|jtj
««t|d|jtj ««t|d|jtj««t|d|jtj««t|d|jtj««t|d|jtj««t|d|jtj««t|d    |jtj««t|d
|jtj««t|d |jtj««t|d |jtj««t|d |jtj ««t|d|jtj"««t|d|jt$««t|d|jtj&««y)NÚ__add__Ú__radd__Ú__sub__Ú__rsub__Ú__mul__Ú__rmul__Ú__pow__Ú__rpow__Ú__mod__Ú__rmod__Ú __floordiv__Ú __rfloordiv__Ú __truediv__Ú __rtruediv__Ú
__divmod__Ú __rdivmod__)Úsetattrr¾ÚoperatorÚaddr$ÚraddÚsubÚrsubÚmulÚrmulÚpowÚrpowÚmodÚrmodÚfloordivÚ    rfloordivÚtruedivÚrtruedivÚdivmodÚrdivmod©rLs rNÚ_add_arithmetic_opsz%ExtensionOpsMixin._add_arithmetic_ops“    s½€äY × =Ñ =¼h¿l¹lÓ KÔLܐZ ×!>Ñ!>¼y¿~¹~Ó!NÔOܐY × =Ñ =¼h¿l¹lÓ KÔLܐZ ×!>Ñ!>¼y¿~¹~Ó!NÔOܐY × =Ñ =¼h¿l¹lÓ KÔLܐZ ×!>Ñ!>¼y¿~¹~Ó!NÔOܐY × =Ñ =¼h¿l¹lÓ KÔLܐZ ×!>Ñ!>¼y¿~¹~Ó!NÔOܐY × =Ñ =¼h¿l¹lÓ KÔLܐZ ×!>Ñ!>¼y¿~¹~Ó!NÔOܐ^ S×%BÑ%BÄ8×CTÑCTÓ%UÔVÜØ  #×"?Ñ"?Ä    ×@SÑ@SÓ"Tô    
ô    ] C×$AÑ$AÄ(×BRÑBRÓ$SÔTܐ^ S×%BÑ%BÄ9×CUÑCUÓ%VÔWܐ\ 3×#@Ñ#@ÄÓ#HÔIܐ] C×$AÑ$AÄ)×BSÑBSÓ$TÕUrQcó—t|«‚rcrr½s  rNÚ_create_comparison_methodz+ExtensionOpsMixin._create_comparison_method¨    r¿rQcóü—t|d|jtj««t|d|jtj««t|d|jtj
««t|d|jtj ««t|d|jtj««t|d|jtj««y)Nr„r‡Ú__lt__Ú__gt__Ú__le__Ú__ge__)    rÑrærÒÚeqÚneÚltÚgtÚleÚgerãs rNÚ_add_comparison_opsz%ExtensionOpsMixin._add_comparison_ops¬    s¤€äX˜s×<Ñ<¼X¿[¹[ÓIÔJܐX˜s×<Ñ<¼X¿[¹[ÓIÔJܐX˜s×<Ñ<¼X¿[¹[ÓIÔJܐX˜s×<Ñ<¼X¿[¹[ÓIÔJܐX˜s×<Ñ<¼X¿[¹[ÓIÔJܐX˜s×<Ñ<¼X¿[¹[ÓIÕJrQcó—t|«‚rcrr½s  rNÚ_create_logical_methodz(ExtensionOpsMixin._create_logical_methodµ    r¿rQcóü—t|d|jtj««t|d|jtj
««t|d|jtj ««t|d|jtj««t|d|jtj««t|d|jtj««y)NÚ__and__Ú__rand__Ú__or__Ú__ror__Ú__xor__Ú__rxor__)
rÑrôrÒÚand_r$Úrand_Úor_Úror_ÚxorÚrxorrãs rNÚ_add_logical_opsz"ExtensionOpsMixin._add_logical_ops¹    s¤€äY × :Ñ :¼8¿=¹=Ó IÔJܐZ ×!;Ñ!;¼I¿O¹OÓ!LÔMܐX˜s×9Ñ9¼(¿,¹,ÓGÔHܐY × :Ñ :¼9¿>¹>Ó JÔKܐY × :Ñ :¼8¿<¹<Ó HÔIܐZ ×!;Ñ!;¼I¿N¹NÓ!KÕLrQNr¤) rÁr­r®r¯r²r¾räræròrôrrdrQrNr»r»„    s…„ñðñ'óð'ðòVóðVð(ñ'óð'ðòKóðKðñ'óð'ðòMóñMrQr»cóD—eZdZdZeddd„«Zed„«Zed„«Zy)ÚExtensionScalarOpsMixinaÐ
    A mixin for defining ops on an ExtensionArray.
 
    It is assumed that the underlying scalar objects have the operators
    already defined.
 
    Notes
    -----
    If you have defined a subclass MyExtensionArray(ExtensionArray), then
    use MyExtensionArray(ExtensionArray, ExtensionScalarOpsMixin) to
    get the arithmetic operators.  After the definition of MyExtensionArray,
    insert the lines
 
    MyExtensionArray._add_arithmetic_ops()
    MyExtensionArray._add_comparison_ops()
 
    to link the operators to your class.
 
    .. note::
 
       You may want to set ``__array_priority__`` if you want your
       implementation to be called when involved in binary operations
       with NumPy arrays.
    NcóP‡‡‡—ˆˆˆfd„}d‰j›d}t|||«S)a
        A class method that returns a method that will correspond to an
        operator for an ExtensionArray subclass, by dispatching to the
        relevant operator defined on the individual elements of the
        ExtensionArray.
 
        Parameters
        ----------
        op : function
            An operator that takes arguments op(a, b)
        coerce_to_dtype : bool, default True
            boolean indicating whether to attempt to convert
            the result to the underlying ExtensionArray dtype.
            If it's not possible to create a new ExtensionArray with the
            values, an ndarray is returned instead.
 
        Returns
        -------
        Callable[[Any, Any], Union[ndarray, ExtensionArray]]
            A method that can be bound to a class. When used, the method
            receives the two arguments, one of which is the instance of
            this class, and should return an ExtensionArray or an ndarray.
 
            Returning an ndarray may be necessary when the result of the
            `op` cannot be stored in the ExtensionArray. The dtype of the
            ndarray uses NumPy's normal inference rules.
 
        Examples
        --------
        Given an ExtensionArray subclass called MyExtensionArray, use
 
            __add__ = cls._create_method(operator.add)
 
        in the class definition of MyExtensionArray to create the operator
        for addition, that will be based on the operator implementation
        of the underlying elements of the ExtensionArray
        có,•‡—ˆfd„}t|tttf«rtS‰}||«}t ||«Dcgc]\}}‰
||«‘Œ}}}ˆ    ˆ ˆfd„}‰
j dvrt |Ž\}}||«||«fS||«Scc}}w)Ncód•—t|t«s t|«r|}|S|gt‰«z}|Src)r}rFrrw)ÚparamÚovaluesrfs  €rNÚconvert_valueszNExtensionScalarOpsMixin._create_method.<locals>._binop.<locals>.convert_values
s7ø€Ü˜e¤^Ô4¼ ÀUÔ8KØ#Gðð %˜g¬¨D«    Ñ1GؐrQcó•—‰rDt|‰jd¬«}t|t‰««st    j
|«}|St    j
|‰¬«}|S)NF)Ú
same_dtyper‰)rrIr}rnrŠr‹)rôÚresÚcoerce_to_dtypeÚ result_dtyperfs  €€€rNÚ_maybe_convertzNExtensionScalarOpsMixin._create_method.<locals>._binop.<locals>._maybe_convert
sTø€Ù"ô6°c¸4¿:¹:ÐRWÔXCÜ% c¬4°«:Ô6ä Ÿj™j¨›o˜ð
ôŸ*™* S° Ô=Cؐ
rQ>rárâ)r}rrrryÚziprÁ) rfrƒr
ÚlvaluesÚrvaluesrêrër rrrŸrs `        €€€rNÚ_binopz6ExtensionScalarOpsMixin._create_method.<locals>._binop
sù€ô ô˜%¤)¬X´|Ð!DÔEä%Ð%àˆGÙ$ UÓ+ˆGô+.¨g°wÓ*?×@¡  A‘2a˜•8Ð@ˆCÑ@ö ð{‰{Ð3Ñ3ܘCy‘1Ù% aÓ(©.¸Ó*;Ð;Ð;á! #Ó&Ð &ùó'AsÁBÚ__)rÁr )rLrŸrrrÚop_names ```  rNÚ_create_methodz&ExtensionScalarOpsMixin._create_methodÝ    s-ú€öP$    'ðLr—{‘{m 2Ð&ˆÜ  ¨°#Ó6Ð6rQcó$—|j|«Src)rr½s  rNr¾z1ExtensionScalarOpsMixin._create_arithmetic_method.
s€à×!Ñ! "Ó%Ð%rQcó2—|j|dt¬«S)NF)rr)rrªr½s  rNræz1ExtensionScalarOpsMixin._create_comparison_method2
s€à×!Ñ! "°eÌ$Ð!ÓOÐOrQ)TN)rrª)rÁr­r®r¯r²rr¾rærdrQrNrrà   sH„ñð2óN7óðN7ð`ñ&óð&ðñPóñPrQr)br¯Ú
__future__rrÒÚtypingrrrrrr    r
rXÚnumpyrŠÚ pandas._libsr rÔr Ú pandas.compatr Úpandas.compat.numpyrr´Ú pandas.errorsrÚpandas.util._decoratorsrrrÚpandas.util._exceptionsrÚpandas.util._validatorsrrrÚpandas.core.dtypes.castrÚpandas.core.dtypes.commonrrrÚpandas.core.dtypes.dtypesrÚpandas.core.dtypes.genericrrrÚpandas.core.dtypes.missingr!Ú pandas.corer"r#r$Úpandas.core.algorithmsr%r&r'r(r)r*r+Ú pandas.core.array_algos.quantiler,Úpandas.core.missingr-Úpandas.core.sortingr.r/Úcollections.abcr0r1Úpandas._typingr2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBÚpandasrCrDr´rFr¶r»rrdrQrNú<module>r1sðòõ#ã÷÷ñóã÷õ,Ý.Ý-÷ñõ
5÷ñõ @÷ñõ
5÷ñõ
,÷ñ÷
÷ñõ@Ý3÷ñ
÷÷
÷÷÷õõ(à/1ИnÓ1÷K$&ñK$&ô\H( >ô(÷<Mñ<Mô~qPÐ/õqPrQ