zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
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
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
U
¬ý°dðÔã@sUddlmZddlmZddlZddlmZddlZddlmZm    Z    m
Z
m Z m Z m Z mZmZmZmZmZmZmZddlZddlZddlmZddlmZmZmZm Z ddl!m"Z"ddl#m$m%Z&dd    l'm(Z(m)Z)dd
l*m+Z+dd l,m-Z-m.Z.m/Z/m0Z0dd l1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>dd l?m@ZAddlBmCZCmDZDddlEmFZFmGZGmHZHddlImJZJmKZKddlLmMZMmNZNddlOmPZPmQZQmRZRmSZSmTZTmUZUmVZVddlWmXZXmYZYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZambZbmcZcmdZdmeZemfZfmgZgmhZhmiZimjZjmkZkmlZlmmZmmnZnmoZompZpddlqmrZrddlsmtZtmuZumvZvmwZwmxZxddlymzZzm{Z{m|Z|m}Z}m~Z~mZddl€mZddl‚mƒZƒm„Z„m…Z…ddl†m‡Z‡mˆZˆddl‰mŠZŠddl‹mŒmZddlŽmZmZddl‘m’Z’m“Z“m”Z”m•Z•ddl–m—Z—ddl˜m™Z™mšZšddl›mŒmœZddlžmŸZŸm Z m¡Z¡dd l¢m£Z£dd!l¤m¥Z¥dd"l¦m§Z§dd#l¨m©Z©dd$lªm«Z«dd%l¬m­Z­m®Z®m¯Z¯dd&l°m±Z±dd'l²m³Z³m´Z´mµZµm¶Z¶er²dd(l·m¸Z¸m¹Z¹mºZºm»Z»dd)l‘m¼Z¼d*gZ½e¾d+ƒZ¿d*d,d*d,d*d-d.œZÀd/eÁd0<iZÂd/eÁd1<eÃZÄe Åd2¡ZÆejÇejÈejÉejÊejËejÌejÍejÎejÏejÐejÑejÒejÓejÉejÉejÊejÊejËejÌejÍejÎejÏejÐejÑejÒejÓd3œZÔd4d4d5œd6d7„ZÕd8d9„ZÖed:d*d;Z×Gd<d*„d*e™ešƒZØd]d*d=œd>d?„ZÙd^dAdBd*dCœdDdE„ZÚdFdG„ZÛdHdHdIœdJdK„ZÜdLdMdNœdOdP„ZÝdQd=œdRdS„ZÞd*dTdUœdVdW„Zßd*d*dXœdYdZ„Zàd[d\„ZádS)_é)Ú annotations)ÚdatetimeN)Ú zip_longest) Ú TYPE_CHECKINGÚAnyÚCallableÚClassVarÚHashableÚIterableÚLiteralÚNoReturnÚSequenceÚTypeVarÚcastÚfinalÚoverload)Ú
get_option)ÚNaTÚalgosÚindexÚlib)ÚBlockValuesRefs)Úis_datetime_arrayÚ
no_default)Ú is_float_nan)ÚIncompatibleFrequencyÚOutOfBoundsDatetimeÚ    TimestampÚ
tz_compare) ÚAnyAllÚ    ArrayLikeÚAxesÚAxisÚDropKeepÚDtypeObjÚFÚ IgnoreRaiseÚ
IndexLabelÚJoinHowÚLevelÚShapeÚnpt)Úfunction)ÚDuplicateLabelErrorÚInvalidIndexError)ÚAppenderÚcache_readonlyÚdoc)Úfind_stack_levelÚrewrite_exception)Ú astype_arrayÚastype_is_view)ÚLossySetitemErrorÚcan_hold_elementÚcommon_dtype_categorical_compatÚfind_result_typeÚinfer_dtype_fromÚmaybe_cast_pointwise_resultÚnp_can_hold_element)Ú ensure_int64Ú ensure_objectÚensure_platform_intÚis_any_real_numeric_dtypeÚ is_bool_dtypeÚis_categorical_dtypeÚis_dtype_equalÚis_ea_or_datetimelike_dtypeÚis_extension_array_dtypeÚis_floatÚis_float_dtypeÚ is_hashableÚ
is_integerÚis_integer_dtypeÚis_interval_dtypeÚ is_iteratorÚ is_list_likeÚis_numeric_dtypeÚis_object_dtypeÚ    is_scalarÚis_signed_integer_dtypeÚis_string_dtypeÚneeds_i8_conversionÚ pandas_dtypeÚvalidate_all_hashable)Ú concat_compat)ÚCategoricalDtypeÚDatetimeTZDtypeÚExtensionDtypeÚ IntervalDtypeÚ PeriodDtype)Ú ABCDataFrameÚABCDatetimeIndexÚ ABCMultiIndexÚABCPeriodIndexÚ    ABCSeriesÚABCTimedeltaIndex)Ú is_dict_like)Úarray_equivalentÚis_valid_na_for_dtypeÚisna)Ú    arraylikeÚops)ÚCachedAccessor)Úsetitem_datetimelike_compatÚvalidate_putmask)ÚArrowExtensionArrayÚBaseMaskedArrayÚ CategoricalÚExtensionArray)Ú StringArray)Ú IndexOpsMixinÚ PandasObject)Úensure_wrapped_if_datetimelikeÚ extract_arrayÚsanitize_array)Údisallow_ndim_indexing)Ú
FrozenList)Úclean_reindex_fill_method)Úget_op_result_name)Úmake_invalid_op)Úensure_key_mappedÚget_group_index_sorterÚnargsort)Ú StringMethods)Ú
PrettyDictÚdefault_pprintÚformat_object_summaryÚ pprint_thing)ÚCategoricalIndexÚ    DataFrameÚ
MultiIndexÚSeries)Ú PeriodArrayÚIndex)Úmixedú mixed-integerÚú
np.ndarray)ÚklassÚinplaceZ target_klassZraises_sectionÚuniqueÚ
duplicatedzdict[str, str]Ú_index_doc_kwargsÚ_index_shared_docsÚobject)Z
Complex128Z    Complex64ZFloat64ZFloat32ZUInt64ZUInt32ZUInt16ZUInt8ZInt64ZInt32ZInt16ZInt8Úbooleanzdouble[pyarrow]zfloat64[pyarrow]zfloat32[pyarrow]zfloat[pyarrow]zuint64[pyarrow]zuint32[pyarrow]zuint16[pyarrow]zuint8[pyarrow]zint64[pyarrow]zint32[pyarrow]zint16[pyarrow]z int8[pyarrow]z bool[pyarrow]r%)ÚmethÚreturncs8t ˆ¡dddddœdddddœ‡fd    d
„ƒ}tt|ƒS) zG
    Decorator to simplify 'return_indexers' checks in Index.join.
    ÚleftNF©ÚhowÚlevelÚreturn_indexersÚsortr‡r(Úbool)Úotherr˜ršr›c    sJˆ|||||d\}}}|s |S|dk    r0t|ƒ}|dk    r@t|ƒ}|||fS)N©r˜r™r›)r?)    Úselfrr˜r™ršr›Ú
join_indexÚlidxÚridx©r”©úOd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/core/indexes/base.pyÚjoinùs
z$_maybe_return_indexers.<locals>.join)Ú    functoolsÚwrapsrr%)r”r¦r¤r£r¥Ú_maybe_return_indexersôsùr©cCs€t|tƒr"ddlm}||f|ŽSt|tƒrTd|krJd|krJ| d¡|d<d|d<nd|krrd|krr|dj|d<|j|f|ŽS)    zv
    This is called upon unpickling, rather than the default which doesn't
    have arguments and breaks __new__.
    r)Ú_new_PeriodIndexÚlabelsÚcodesFÚverify_integrityÚdtypeÚdata)Ú
issubclassr_Zpandas.core.indexes.periodrªr^Úpopr®Ú__new__)ÚclsÚdrªr¤r¤r¥Ú
_new_Indexs
 
 
rµÚ_IndexT)ÚboundcseZdZUdZdZeddddœdd„ƒZeddddœd    d
„ƒZeddddœd d „ƒZeddddœd d„ƒZ    dZ
de d<de d<e j efZde d<dZde d<dZde d<dZde d<dgZde d <dgZde d!<edd"œd#d$„ƒZe  e j¡eje  e j¡eje  e j¡eje  e j¡ej e  e j!¡ej"e  e j#¡ej$e  e j%¡ej&e  e j'¡ej(e  e j)¡ej*e  e j+¡ej,e  e j-¡ej.e  e j/¡ej0i Z1d%e d&<e2d'd"œd(d)„ƒZ3dZ4dhZ5e6de7ƒZ8dZ9dvdddd+œd,d-„Z:e;dd.œd/d0„ƒZ<ee;d1d2œd3d4„ƒƒZ=e;dwd5d6ddd7œd8d9„ƒZ>e;d:d;„ƒZ?edd5d<œd=d>„ƒZ@ed?d"œd@dA„ƒZAedBd"œdCdD„ƒZBeCfddddEœdFdG„ZDddd<œdHdI„ZEeddddEœdJdK„ƒZFedd"œdLdM„ƒZGed?d"œdNdO„ƒZHed?d"œdPdQ„ƒZIedRd"œdSdT„ƒZJeedUd"œdVdW„ƒƒZKdXd"œdYdZ„ZLdxd[d"œd\d]„ZMd^d_d`œdadb„ZNdydcdd„ZOed1d"œdedf„ƒZedzd_ddhœdidj„ƒZPd{dkdl„ZQd|dd.œdmdn„ZRdoeSdp<eTeSdpeUƒd}drddsœdtdu„ƒZVedddvœdwdx„ƒZWdyeSdz<eTeSdzeUƒd~d{d|„ƒZXddd}ddd~œdd€„ZYeddd<œdd‚„ƒZZed€ddd<œdƒd„„ƒZ[ed_d"œd…d†„ƒZ\d_d"œd‡dˆ„Z]e2d‰dŠ„ƒZ^dd_d"œd‹dŒ„Z_dd"œdŽd„Z`edd"œd‘d’„ƒZaed[d"œd“d”„ƒZbd‚dd–d_d—d˜œd™dš„Zcd—d_d—d›œdœd„ZddždŸdddd œd_d_d¡d¢œd£d¤„Zedƒd_d"œd¥d¦„Zfddd<œd§d¨„Zged„dd©dªœd«d¬„ƒZhd*eijCfdddBd­œd®d¯„Zje2dd"œd°d±„ƒZkekjldd?d²œd³d±„ƒZked…dd´dµœd¶d·„ƒZmd†d¸d´d¹œdºd»„Znd¼d"œd½d¾„Zodd¿œd?d"œdÀdÁ„Zpe2epeodZqerdÃdÃdĜddÅddƜdÇdȄƒZserdÃd¿œdÉd?dʜdËdȄƒZserdÃdÃdĜdddÌdƜdÍdȄƒZsdddĜdddÌdƜdÎdȄZsd‡ddϜdÐdфZte2dXd"œdÒdӄƒZuddd<œdÔdՄZved?d"œdÖdׄƒZwdXd"œdØdلZxdˆdÚdۜdÜd݄Zydd"œdÞd߄ZzezZ{ed‰dàd¿œdád℃Z|edãdäœdåd愃Z}eedd"œdçd脃ƒZ~e2dd"œdédꄃZe2dd"œdëd섃Z€ee2dd"œdídƒZee2dd"œdïdð„ƒƒZ‚edd"œdñdò„ƒZƒee2dd"œdódô„ƒƒZ„edd"œdõdö„ƒZ…edd"œd÷dø„ƒZ†edd"œdùdú„ƒZ‡edd"œdûdü„ƒZˆedd"œdýdþ„ƒZ‰edd"œdÿd„ƒZŠedd"œdd„ƒZ‹edd"œdd„ƒZŒedd"œdd„ƒZed_d"œdd„ƒZŽeedd"œd    d
„ƒƒZeedd"œd d „ƒƒZd d„Z‘edd„ƒZ’edd"œdd„ƒZ“edd"œdd„ƒZ”edd"œdd„ƒZ•e•Z–edd"œdd„ƒZ—e—Z˜dАdd„Z™d‹ddddœdd „ZšdŒdd}dd!œ‡fd"d#„ Z›d$d%œdd&dd'œ‡fd(d)„Zœdd&dd*œd+d,„Zd-d.„Zžed/d"œd0d1„ƒZŸeŸZ d2d3„Z¡ed4d5„ƒZ¢edd_d6d7œd8d9„ƒZ£edސd:d;„ƒZ¤dd<œd=d>„Z¥eddd?œd@dA„ƒZ¦edddBœdCdD„ƒZ§ddddEœdFdG„Z¨dHdI„Z©edJdKd?œdLdM„ƒZªed‘dNdO„ƒZ«dPdQ„Z¬dRdS„Z­d’dTdU„Z®edd"œdVdW„ƒZ¯dXd"œdYdZ„Z°d[d\„Z±d]eSd^<eTeSd^eUƒed“d_d`ddaœdbdc„ƒƒZ²d”dd_d`dddœdedf„Z³edddgœdhdi„ƒZ´ed•d_d`d?daœdjdk„ƒZµdld[dgœdmdn„Z¶ed–dd_d`dddœdodp„ƒZ·ed—dd_d`dddœdqdr„ƒZ¸edd`ddsœdtdu„ƒZ¹eddddvœdwdx„ƒZºeddd6dvœdydz„ƒZ»ed{d?d|œd}d~„ƒZ¼d{d_dœd€d„Z½eeijCfd_d‚d?dƒœd„d…„ƒZ¾ed[d?d†œd‡dˆ„ƒZ¿d˜d‰d"œdАd‹„ZÀddŒœddŽ„ZÁdddœdd‘„ZÂedd’dgœd“d”„ƒZÃerdÃdÃdÐd•œdd–d—dÉdd˜d™œdšd›„ƒZÄerdÃdÃdÃdÐdœœdd–d—dÅddd™œdd›„ƒZÄerdÃdÃdÃdÐdœœdd–d—dddžd™œdŸd›„ƒZÄeeŐd ddddœœdd–d—dddžd™œd¡d›„ƒƒZÄedd–dd˜d¢œd£d¤„ƒZÆedd–d¥œd¦d§„ƒZÇed™dd–d¨d©œdªd«„ƒZÈedšdd–dd¬d­œd®d¯„ƒZÉed›dd–d˜d©œd°d±„ƒZÊdd6ddddd²œd³d´„ZËedd"œdµd¶„ƒZÌe2d6d"œd·d¸„ƒZÍeeÎeÏjЃd¹d"œdºd»„ƒƒZÐe2dd"œd¼d½„ƒZÑd6d"œd¾d¿„ZÒd6d"œdÀdÁ„ZÓd[d6dœdÐdĄZÔeÎeÏjՃdœddXdµœdŐdƄƒZÖeddd"œdǐdȄƒZ×ee;dɐdʄƒƒZؐdːd̄ZÙed͐d΄ƒZÚdd"œdϐdЄZېdÑdd|œdҐdӄZܐdÔe dÕ<ed֐dׄƒZݐdؐdلZÞdd{ddڜdېd܄Zßedd"œdݐdބƒZàdßdd?œdàdá„Zádâddd㜐dädå„Zâdd"œdædç„ZãdÑdd?œdèdé„Zäedd"œdêd넃Zåedìd턃Zædddddïdð„Zçdžddd_d–dòœdódô„Zèedõdö„ƒZédŸdXd÷œdødù„Zêdd"œdúdû„Zëdüdý„Zìedd"œdþdÿ„ƒZídeSd<eTeSdeUƒdd"œdd„ƒZîedd"œdd„ƒZïd_ddœd    d
„Zðd_d?dœd d „Zñerd ddÉdd œdd„ƒZòerddŐdd œdd„ƒZòerd¡dddd œdd„ƒZòed¢dddd œdd„ƒZòe2dd"œdd„ƒZódZôedd6d?œdd„ƒZõed1d"œdd„ƒZöeddd?œdd„ƒZ÷d1ddœdd„Zøed d"œd!d"„ƒZùd£d#d$„Zúedd¿œdd"œd%d&„ƒZûd¤dd"œd'd(„Züd_d)œd*d+„Zýd¥d}d}d`d{d,œd-d.„Zþd/d0„Zÿdd"œd1d2„Zed_d_d?d3œd4d5„ƒZd_d6œd7d8„Zd¦d9d6œd:d;„Zd9dXd<œd=d>„Zd§d?d"œd@dA„Zddd<œdBdC„ZdXddDœdEdF„Zd¨dHdIddJœdKdL„Zd©dddMœdNdO„Z    dPdQ„Z
edRdS„ƒZ edTdU„ƒZ ‡fdVdW„Z edXdY„ƒZdd"œdZd[„Zdd"œd\d]„Zdd"œd^d_„Zdd"œd`da„Zdbdc„Zddde„Zed_d?dfœdgdh„ƒZeTeϐjjƒdªddXdiœ‡fdjdk„ ƒZeTeϐjjƒd«ddXdiœ‡fdldm„ ƒZeÎeϐjƒd¬ddnœ‡fdodp„ ƒZeÎeϐjƒd­ddnœ‡fdqdr„ ƒZee2dsd"œdtdu„ƒƒZ‡ZS(®r‡a-
    Immutable sequence used for indexing and alignment.
 
    The basic object storing axis labels for all pandas objects.
 
    .. versionchanged:: 2.0.0
 
       Index can hold all numpy numeric dtypes (except float16). Previously only
       int64/uint64/float64 dtypes were accepted.
 
    Parameters
    ----------
    data : array-like (1-dimensional)
    dtype : NumPy dtype (default: object)
        If dtype is None, we find the dtype that best fits the data.
        If an actual dtype is provided, we coerce to that dtype if it's safe.
        Otherwise, an error will be raised.
    copy : bool
        Make a copy of input ndarray.
    name : object
        Name to be stored in the index.
    tupleize_cols : bool (default: True)
        When True, attempt to create a MultiIndex if possible.
 
    See Also
    --------
    RangeIndex : Index implementing a monotonic integer range.
    CategoricalIndex : Index of :class:`Categorical` s.
    MultiIndex : A multi-level, or hierarchical Index.
    IntervalIndex : An Index of :class:`Interval` s.
    DatetimeIndex : Index of datetime64 data.
    TimedeltaIndex : Index of timedelta64 data.
    PeriodIndex : Index of Period data.
 
    Notes
    -----
    An Index instance can **only** contain hashable objects.
    An Index instance *can not* hold numpy float16 dtype.
 
    Examples
    --------
    >>> pd.Index([1, 2, 3])
    Index([1, 2, 3], dtype='int64')
 
    >>> pd.Index(list('abc'))
    Index(['a', 'b', 'c'], dtype='object')
 
    >>> pd.Index([1, 2, 3], dtype="uint8")
    Index([1, 2, 3], dtype='uint8')
    ér¶únpt.NDArray[np.intp])rŸrr•cCs4| ¡}| ¡}ttj|ƒ}ttj|ƒ}t ||¡S©N)Ú_get_join_targetrÚnpÚndarrayÚlibjoinZleft_join_indexer_unique)rŸrÚsvÚovr¤r¤r¥Ú_left_indexer_uniqueks
  zIndex._left_indexer_uniquez<tuple[ArrayLike, npt.NDArray[np.intp], npt.NDArray[np.intp]]cCsN| ¡}| ¡}ttj|ƒ}ttj|ƒ}t ||¡\}}}| |¡}|||fSrº)r»rr¼r½r¾Zleft_join_indexerÚ_from_join_target©rŸrr¿rÀZjoined_ndarrayr¡r¢Újoinedr¤r¤r¥Ú _left_indexervs  
zIndex._left_indexercCsN| ¡}| ¡}ttj|ƒ}ttj|ƒ}t ||¡\}}}| |¡}|||fSrº)r»rr¼r½r¾Zinner_join_indexerrÂrÃr¤r¤r¥Ú_inner_indexer„s  
zIndex._inner_indexercCsN| ¡}| ¡}ttj|ƒ}ttj|ƒ}t ||¡\}}}| |¡}|||fSrº)r»rr¼r½r¾Zouter_join_indexerrÂrÃr¤r¤r¥Ú_outer_indexer’s  
zIndex._outer_indexerrÚstrÚ_typzExtensionArray | np.ndarrayÚ_datazDtype[ExtensionArray] | tuple[type[np.ndarray], type[ExtensionArray]]Ú    _data_clsNz object | NoneÚ_idr    Ú_nameFrœÚ_no_setting_nameÚnameú    list[str]Ú _comparablesÚ _attributes©r•cCs
t|ƒ Srº)rN©rŸr¤r¤r¥Ú_can_hold_strings¯szIndex._can_hold_stringsz;dict[np.dtype | ExtensionDtype, type[libindex.IndexEngine]]Ú _engine_typesz;type[libindex.IndexEngine] | type[libindex.ExtensionEngine]cCs|j |jtj¡Srº)rÖÚgetr®ÚlibindexÚ ObjectEnginerÔr¤r¤r¥Ú _engine_typeÂszIndex._engine_typeT)ÚcopyÚ tupleize_colsr•c
Cs‚ddlm}t|||ƒ}|dk    r(t|ƒ}t|ddƒ}d}|sPt|ttfƒrP|j}t|t    |fƒr†||||d}    |dk    r‚|    j
|ddS|    St |ƒr’nLt |ƒržn@t|t j ttfƒrÞt|tƒrÀ|j}|jjdkrÚtj|td}nt|ƒrò| |¡‚nìt|d    ƒrtt  |¡|||d
St|ƒs6t|tƒs6| |¡‚n¨|r‚t|ƒrNt|ƒ}|r‚td d „|Dƒƒr‚dd lm}
|
j ||dSt|tt!fƒsšt|ƒ}t"|ƒdkr¶t j#|t$d}t"|ƒrÞt|dt!ƒrÞtj|td}zt%|d||d} WnXt&k
rJ} z8dt'| ƒkr | |¡| ‚dt'| ƒkr8t&dƒ| ‚‚W5d} ~ XYnXt(| ƒ} | )| j¡} | j*| | jdd} | j+| ||dS)Nr)Ú
RangeIndexr®)ÚstartrÛrÏF©rÛ)ÚiÚuÚfÚbÚcÚmÚM©r®Ú    __array__©r®rÛrÏcss|]}t|tƒVqdSrº)Ú
isinstanceÚtuple)Ú.0Úer¤r¤r¥Ú    <genexpr>sz Index.__new__.<locals>.<genexpr>©r„©Únames©r®rÛz2index must be specified when data is not list-likezData must be 1-dimensionalú Index data must be 1-dimensional)Úrefs),Zpandas.core.indexes.rangerÝÚmaybe_extract_namerTÚgetattrrêr`r‡Ú _referencesÚrangeÚastyperDr¼r½r^Ú_valuesr®ÚkindÚcomÚasarray_tuplesafeÚ
_dtype_objrPÚ_raise_scalar_data_errorÚhasattrÚasarrayrMÚ
memoryviewrLÚlistÚallÚpandas.core.indexes.multir„Ú from_tuplesrëÚlenÚarrayr’rtÚ
ValueErrorrÈrrÚ_dtype_to_subclassÚ _ensure_arrayÚ _simple_new)r³r¯r®rÛrÏrÜrÝZ
data_dtyperôÚresultr„ÚarrÚerrrŒr¤r¤r¥r²Õsh   
 
 
 z Index.__new__rßcCs6|jdkrtdƒ‚n|tjkr&tdƒ‚|r2| ¡}|S)zF
        Ensure we have a valid array to pass to _simple_new.
        r¸róz!float16 indexes are not supported)Úndimr    r¼Úfloat16ÚNotImplementedErrorrÛ)r³r¯r®rÛr¤r¤r¥r 5s
 
 
zIndex._ensure_arrayr$rçcCsÜt|tƒrvt|tƒr$ddlm}|St|tƒr>ddlm}|St|tƒrXddlm}|St|t    ƒrrddlm
}|St S|j dkrddlm}|S|j dkrªddlm }|S|j d    kr¸t St|jtƒsÌt|ƒrÐt St|ƒ‚dS)
Nr)Ú DatetimeIndex)r‚)Ú IntervalIndex)Ú PeriodIndexrærå)ÚTimedeltaIndexÚO)rêrYrXÚpandasrrWr‚rZrr[rr‡rûrr°ÚtyperÈrNr)r³r®rr‚rrrr¤r¤r¥r
Gs2
 
 
 
 
 
 
 
zIndex._dtype_to_subclassz type[_IndexT]r )r³ÚvaluesrÏr•cCsdt||jƒstt|ƒƒ‚t |¡}||_||_i|_|     ¡|dk    rL||_
nt ƒ|_
|j
  |¡|S)zÁ
        We require that we have a dtype compat for the values. If we are passed
        a non-dtype compat, then coerce using the constructor.
 
        Must be careful not to recurse.
        N) rêrËÚAssertionErrorrr’r²rÊrÍÚ_cacheÚ_reset_identityr÷rÚadd_index_reference)r³rrÏrôr r¤r¤r¥r €s
 
 zIndex._simple_newcOsD|||Ž}|jtkr@|js@t |j¡}|jjdkr@t||jdS|S)zw
        Constructor that uses the 1.0.x behavior inferring numeric dtypes
        for ndarray[object] inputs.
        )ràrárârã©rÏ)    r®rþÚ    _is_multirÚmaybe_convert_objectsrúrûr‡rÏ)r³ÚargsÚkwargsr rr¤r¤r¥Ú _with_infer™s 
  zIndex._with_infer)rŸr•cCst|ƒSrº)rrÔr¤r¤r¥Ú _constructor«szIndex._constructorÚNonecCs,|js(d}| ¡}|d|›7}t|ƒ‚dS)a:
        Check that an Index has no duplicates.
 
        This is typically only called via
        `NDFrame.flags.allows_duplicate_labels.setter` when it's set to
        True (duplicates aren't allowed).
 
        Raises
        ------
        DuplicateLabelError
            When the index is not unique.
        zIndex has duplicates.Ú
N)Ú    is_uniqueÚ_format_duplicate_messager-)rŸÚmsgÚ
duplicatesr¤r¤r¥Ú_maybe_check_unique¯s
zIndex._maybe_check_uniquerƒcCs†ddlm}||jdd ¡}t|ƒs,t‚|t t|ƒ¡ƒ |¡     t
¡|}|j rft |ƒ  |j¡|_|jdkrz| d¡}|jddS)    a¼
        Construct the DataFrame for a DuplicateLabelError.
 
        This returns a DataFrame indicating the labels and positions
        of duplicates in an index. This should only be called when it's
        already known that duplicates are present.
 
        Examples
        --------
        >>> idx = pd.Index(['a', 'b', 'a'])
        >>> idx._format_duplicate_message()
            positions
        label
        a        [0, 2]
        r©r…Úfirst©Úkeepr¸ÚlabelZ    positionsr)rr…rrŽrrr¼ÚarangeÚgroupbyZaggrr rrrÚnlevelsZ rename_axisÚto_frame)rŸr…r+Úoutr¤r¤r¥r)Äs  "
 
zIndex._format_duplicate_message)rŸrÏr•cCs$|tkr|jn|}|j|||jdS)az
        Create a new Index with the same class as the caller, don't copy the
        data, use the same object attributes with passed in attributes taking
        precedence.
 
        *this is an internal non-public method*
 
        Parameters
        ----------
        values : the values to create the new Index, optional
        name : Label, defaults to self.name
        ©rÏrô)rrÍr r÷)rŸrrÏr¤r¤r¥Ú _shallow_copyçs zIndex._shallow_copycCs"|j|j|j|jd}|j|_|S)zR
        fastpath to make a shallow copy, i.e. new object with same data.
        r7)r rúrÍr÷r©rŸr r¤r¤r¥Ú_viewøsz Index._viewcCs| ¡}||_|S)zG
        fastpath for rename if new name is already validated.
        )r:rÍ)rŸrÏr r¤r¤r¥Ú_renamesz Index._renamecCsB||kr dSt|dƒsdS|jdks.|jdkr2dS|j|jkSdS)a
        More flexible, faster check like ``is`` but that works through views.
 
        Note: this is *not* the same as ``Index.identical()``, which checks
        that metadata is also the same.
 
        Parameters
        ----------
        other : object
            Other object to compare against.
 
        Returns
        -------
        bool
            True if both have same underlying data, False otherwise.
 
        See Also
        --------
        Index.identical : Works like ``Index.is_`` but also checks metadata.
        TrÌFN)rrÌ©rŸrr¤r¤r¥Úis_
s
z    Index.is_cCs tƒ|_dS)zJ
        Initializes or resets ``_id`` attribute with new object.
        N)r’rÌrÔr¤r¤r¥r)szIndex._reset_identitycCs|j ¡dSrº)Ú_engineZ clear_mappingrÔr¤r¤r¥Ú_cleanup0szIndex._cleanupzLlibindex.IndexEngine | libindex.ExtensionEngine | libindex.MaskedIndexEnginecCsÈ| ¡}t|tƒr`t|ttfƒrJzt|jj|ƒWStk
rFYq`Xn|j    t
j kr`t
  |¡St tj|ƒ}|jtkr€t
 |¡S|jtjkr–t
 |¡S|jtjkr¬t
 |¡St|jƒr¾|jj}|     |¡Srº)Ú_get_engine_targetrêrnrlrkÚ_masked_enginesr®rÏÚKeyErrorrÚrØrÙZExtensionEnginerr¼r½rœZ
BoolEngineÚ    complex64ÚComplex64EngineÚ
complex128ÚComplex128EnginerSrÊÚ_ndarray)rŸÚ target_valuesr¤r¤r¥r>4s&
 
 
 
 
 
 
z Index._enginez
set[str_t]cCs"dd„|jdddtdƒ…DƒS)zš
        Add the string-like labels to the owner dataframe/series dir output.
 
        If this is a MultiIndex, it's first level values are used.
        cSs"h|]}t|tƒr| ¡r|’qSr¤)rêrÈÚ isidentifier©rìrär¤r¤r¥Ú    <setcomp>as
þz1Index._dir_additions_for_owner.<locals>.<setcomp>r©r™Nzdisplay.max_dir_items)rŽrrÔr¤r¤r¥Ú_dir_additions_for_ownerYsþzIndex._dir_additions_for_ownerÚintcCs
t|jƒS)z1
        Return the length of the Index.
        )rrÊrÔr¤r¤r¥Ú__len__ksz Index.__len__r‹cCstj|j|dS)z8
        The array interface, return my values.
        rç)r¼rrÊ©rŸr®r¤r¤r¥rèqszIndex.__array__znp.ufuncÚstr_t)ÚufuncÚmethodcsätdd„|DƒƒrtStjˆ||f|ž|Ž}|tk    r8|Sd|krVtjˆ||f|ž|ŽS|dkr€tjˆ||f|ž|Ž}|tk    r€|S‡fdd„|Dƒ}t||ƒ||Ž}|jdkrÂt‡fdd„|DƒƒS|j    t
j krÚ|  t
j ¡}ˆ |¡S)    Ncss|]}t|ttfƒVqdSrº)rêr`r\)rìrr¤r¤r¥rîxsz(Index.__array_ufunc__.<locals>.<genexpr>r6Úreducecsg|]}|ˆk    r|n|j‘qSr¤©rú©rìÚxrÔr¤r¥Ú
<listcomp>Žsz)Index.__array_ufunc__.<locals>.<listcomp>éc3s|]}ˆ |¡VqdSrº)Ú__array_wrap__rVrÔr¤r¥rî’s)ÚanyÚNotImplementedrfZ!maybe_dispatch_ufunc_to_dunder_opZdispatch_ufunc_with_outZdispatch_reduction_ufuncröZnoutrër®r¼rrùÚfloat32rZ)rŸrRrSÚinputsr#r Z
new_inputsr¤rÔr¥Ú__array_ufunc__wsTÿÿÿÿÿÿÿÿÿ
  zIndex.__array_ufunc__cCs<t |¡}t|ƒs*t |¡s*t |¡dkr.|St||jdS)zN
        Gets called after a ufunc and other functions e.g. np.split.
        r¸r)rÚitem_from_zerodimrArPr¼rr‡rÏ)rŸr Úcontextr¤r¤r¥rZ™s
 zIndex.__array_wrap__cCs|jjS)zA
        Return the dtype object of the underlying data.
        )rÊr®rÔr¤r¤r¥r®£sz Index.dtypeÚC)Úorderr•cCs |dd…S)z²
        Return a view on self.
 
        Returns
        -------
        Index
 
        See Also
        --------
        numpy.ndarray.ravel : Return a flattened array.
        Nr¤)rŸrcr¤r¤r¥Úravelªs z Index.ravelcCsÂ|dk    r¤t|dƒs¤|}t|tƒr(t|ƒ}t|tjtfƒr–t|ƒr–|jdkr^|dkr^|j     
|¡S|  |¡}|j }||j     
d¡|d}|j ||j|jdS|j     
|¡}n| ¡}t|tƒr¾|j|_|S)NrÉråzm8[ns]Úi8rçr7)rrêrÈrTr¼r®rYrSrûrÊÚviewr
rËr rÏr÷r:r‡rÌ)rŸr³r®Zidx_clsZarr_clsrr r¤r¤r¥rf¹s$
ÿ 
 
z
Index.viewc    Csæ|dk    rt|ƒ}t|j|ƒr,|r(| ¡S|S|j}t|tƒrntt|ƒj    t|ƒj    ƒ|j
||d}W5QRXn2t|t ƒr’|  ¡}|j |||d}nt|||d}t||j|jdd}|sâ|jdk    rât|j|ƒrâ|j|_|j |¡|S)a[
        Create an Index with values cast to dtypes.
 
        The class of a new Index is determined by dtype. When conversion is
        impossible, a TypeError exception is raised.
 
        Parameters
        ----------
        dtype : numpy dtype or pandas type
            Note that any signed integer `dtype` is treated as ``'int64'``,
            and any unsigned integer `dtype` is treated as ``'uint64'``,
            regardless of the size.
        copy : bool, default True
            By default, astype always returns a newly allocated object.
            If copy is set to False and internal requirements on dtype are
            satisfied, the original data is used to create a new Index
            or the original Index is returned.
 
        Returns
        -------
        Index
            Index with values cast to specified dtype.
        NrßròF)rÏr®rÛ)rTrCr®rÛrÊrêrnr3rÚ__name__rùrYZconstruct_array_typeÚ_from_sequencer4r‡rÏr÷r5r)rŸr®rÛrÚ
new_valuesr³r r¤r¤r¥rù×s, 
 
ÿþ
ý z Index.astypeas
        Return a new %(klass)s of the values selected by the indices.
 
        For internal compatibility with numpy arrays.
 
        Parameters
        ----------
        indices : array-like
            Indices to be taken.
        axis : int, optional
            The axis over which to select values, always 0.
        allow_fill : bool, default True
        fill_value : scalar, default None
            If allow_fill=True and fill_value is not None, indices specified by
            -1 are regarded as NA. If Index doesn't hold NA, raise ValueError.
 
        Returns
        -------
        Index
            An index formed of elements at the given indices. Will be the same
            type as self, except for RangeIndex.
 
        See Also
        --------
        numpy.ndarray.take: Return an array formed from the
            elements of a at the given indices.
        Útakerr")ÚaxisÚ
allow_fillcKs‚|rt d|¡t|ƒr tdƒ‚t|ƒ}| |||¡}|j}t|tj    ƒr^t
j ||||j d}n|j |||j d}|j j||jdS)Nr¤z!Expected indices to be array-like)rlÚ
fill_valuer)ÚnvZ validate_takerPÚ    TypeErrorr?Ú_maybe_disallow_fillrúrêr¼r½rrjÚ    _na_valuer%r rÏ)rŸÚindicesrkrlrmr#rZtakenr¤r¤r¥rj.s(      ÿÿz
Index.take)rlr•cCsL|rD|dk    rD|jr(|dk ¡rBtdƒ‚qHt|ƒj}td|›dƒ‚nd}|S)zm
        We only use pandas-style take when allow_fill is True _and_
        fill_value is not None.
        NéÿÿÿÿzJWhen allow_fill=True and fill_value is not None, all indices must be >= -1zUnable to fill values because z cannot contain NAF)Ú _can_hold_nar[r    rrg)rŸrlrmrrZcls_namer¤r¤r¥rpMs  ÿ
 
ÿzIndex._maybe_disallow_filla|
        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.
        numpy.repeat : Similar method for :class:`numpy.ndarray`.
 
        Examples
        --------
        >>> idx = pd.Index(['a', 'b', 'c'])
        >>> idx
        Index(['a', 'b', 'c'], dtype='object')
        >>> idx.repeat(2)
        Index(['a', 'a', 'b', 'b', 'c', 'c'], dtype='object')
        >>> idx.repeat([1, 2, 3])
        Index(['a', 'b', 'b', 'c', 'c', 'c'], dtype='object')
        ÚrepeatcCs6t|ƒ}t dd|i¡|j |¡}|jj||jdS)Nr¤rkr)r?rnZvalidate_repeatrúrur%r rÏ)rŸZrepeatsrkÚ
res_valuesr¤r¤r¥ru‹s z Index.repeatzHashable | None)rŸrÏÚdeepr•cCsD|j||dd}|r4|j ¡}t|ƒj||d}n |j|d}|S)a    
        Make a copy of this object.
 
        Name is set on the new object.
 
        Parameters
        ----------
        name : Label, optional
            Set name for new object.
        deep : bool, default False
 
        Returns
        -------
        Index
            Index refer to new object which is a copy of this object.
 
        Notes
        -----
        In most cases, there should be no functional difference from using
        ``deep``, but if ``deep`` is passed it will attempt to deepcopy.
        )rÏrwrr)Ú_validate_namesrÊrÛrr r;)rŸrÏrwZnew_dataÚ    new_indexr¤r¤r¥rۗs 
 z
Index.copycKs |jf|ŽSrºrß)rŸr#r¤r¤r¥Ú__copy__ºszIndex.__copy__cCs |jddS)zq
        Parameters
        ----------
        memo, default None
            Standard signature. Unused
        T©rwrß)rŸÚmemor¤r¤r¥Ú __deepcopy__¾szIndex.__deepcopy__cCs`t|ƒj}| ¡}| ¡}| ¡}dd„|Dƒ}d|› |¡}|dkrLd}|›d|›|›dS)zA
        Return a string representation for this object.
        cSsg|]\}}|›d|›‘qS)ú=r¤©rìÚkÚvr¤r¤r¥rXÔsz"Index.__repr__.<locals>.<listcomp>ú,NrŠú(ú))rrgÚ _format_dataÚ _format_attrsÚ _format_spacer¦)rŸÚ
klass_namer¯ÚattrsÚspaceZ    attrs_strZpreprr¤r¤r¥Ú__repr__Ës
zIndex.__repr__cCsdS)Nú r¤rÔr¤r¤r¥r‡ÝszIndex._format_spacecCstS)z0
        Return the formatter function.
        )rrÔr¤r¤r¥Ú_formatter_funcæszIndex._formatter_funccCsLd}|jdkrd}n"|jdkr6td|ƒ}t|jƒr6d}t||j|||jdS)z@
        Return the formatted data as a unicode string.
        TÚstringFÚ categoricalr‚)Ú
is_justifyrÏZline_break_each_value)Ú inferred_typerrOÚ
categoriesr€rr )rŸrÏrr¤r¤r¥r…ís
 
 
 
ûzIndex._format_dataz-list[tuple[str_t, str_t | int | bool | None]]cCs¢g}|js"| dd|j›df¡|jdk    rB| dt|jƒf¡n.|jrptdd„|jDƒƒrp| dt|jƒf¡tdƒp~t|ƒ}t|ƒ|krž| d    t|ƒf¡|S)
zH
        Return a list of tuples of the (attr,formatted_value).
        r®ú'NrÏcss|]}|dk    VqdSrºr¤rVr¤r¤r¥rîsz&Index._format_attrs.<locals>.<genexpr>rñzdisplay.max_seq_itemsÚlength)    r Úappendr®rÏrr[rñrr)rŸr‰Z max_seq_itemsr¤r¤r¥r†s
 zIndex._format_attrszHashable | Sequence[Hashable]cCs2|jrdd„t|jƒDƒS|jdkr(dS|jSdS)zX
        Return a name or list of names with None replaced by the level number.
        cSs g|]\}}|dkr|n|‘qSrºr¤)rìr™rÏr¤r¤r¥rXsz*Index._get_level_names.<locals>.<listcomp>Nr)r Ú    enumeraterñrÏrÔr¤r¤r¥Ú_get_level_namess
ÿzIndex._get_level_namescCs8t|jtjƒr(|jjdkr(ttj|jƒS|jtddj    S)NræFrß)
rêr®r¼rûrr½rrùr’rúrÔr¤r¤r¥Ú    _mpl_repr"szIndex._mpl_reprÚNaNzCallable | Nonez list[str_t])rÏÚ    formatterÚna_repr•cCsRg}|r*| |jdk    r$t|jddnd¡|dk    rD|t| |¡ƒS|j||dS)z>
        Render a string representation of the Index.
        N©ú    ú r'©Z escape_charsrŠ)r›)r•rÏrrÚmapÚ_format_with_header)rŸrÏršr›Úheaderr¤r¤r¥Úformat)s    ÿýz Index.format)r¢r›r•cCsŠddlm}|j}t|jƒrpttj|ƒ}tj    |dd}dd„|Dƒ}t
|ƒ}|  ¡r‚t  |¡}|||<|  ¡}nt||dddƒ}||S)    Nr)Ú format_arrayT)ÚsafecSsg|]}t|dd‘qS)rœrŸ)rrVr¤r¤r¥rXHsz-Index._format_with_header.<locals>.<listcomp>r–)Zjustify)Úpandas.io.formats.formatr¤rúrOr®rr¼r½rr!rr[rÚtolistÚ
trim_front)rŸr¢r›r¤rr ÚmaskZ
result_arrr¤r¤r¥r¡?s 
 
 
zIndex._format_with_headerrŠÚ.)r›ÚdecimalÚ float_formatÚ date_formatÚquotingúnpt.NDArray[np.object_])r›r«r•c
Cs€ddlm}t|jƒr>t|jƒs>||j||||dd}| ¡St|ƒ}t|ƒsd|sdt     
|¡  t ¡}    nt    j |tdd}    ||    |<|    S)z>
        Actually format specific types of the index.
        r)ÚFloatArrayFormatterF)r›r¬r«r®Z fixed_widthTrò)r¦r°rGr®rErúZget_result_as_arrayrerOr¼rrùrÈrr’)
rŸr›r«r¬r­r®r°ršr©rr¤r¤r¥Ú_format_native_typesTs" ú zIndex._format_native_typescCsÐt|ƒdkr¢|d}t|dƒr2t|tƒs2| ¡}nt|jƒrN| |¡ dd¡}|d}t|dƒrtt|tƒst| ¡}nt|jƒr| |¡ dd¡}d|›d|›}nd}|dkr¸t    |ƒj
}|›d    t|ƒ›d
|›S) a
        Return a summarized representation.
 
        Parameters
        ----------
        name : str
            name to use in the summary representation
 
        Returns
        -------
        String with a summarized representation of the index
        rr£r“rŠrsz, z to Nz: z entries) rrrêrÈr£rSr®rÚreplacerrg)rŸrÏÚheadÚtailZ index_summaryr¤r¤r¥Ú_summaryvs  
 
 
 
 
zIndex._summarycCs|S)a+
        Identity method.
 
        This is implemented for compatibility with subclass implementations
        when chaining.
 
        Returns
        -------
        pd.Index
            Caller.
 
        See Also
        --------
        MultiIndex.to_flat_index : Subclass implementation.
        r¤rÔr¤r¤r¥Ú to_flat_indexœszIndex.to_flat_indexr…)rÏr•cCs>ddlm}|dkr| ¡}|dkr*|j}||j ¡||dS)a
        Create a Series with both index and values equal to the index keys.
 
        Useful with map for returning an indexer based on an index.
 
        Parameters
        ----------
        index : Index, optional
            Index of resulting Series. If None, defaults to original index.
        name : str, optional
            Name of resulting Series. If None, defaults to name of original
            index.
 
        Returns
        -------
        Series
            The dtype will be based on the type of the Index values.
 
        See Also
        --------
        Index.to_frame : Convert an Index to a DataFrame.
        Series.to_frame : Convert Series to DataFrame.
 
        Examples
        --------
        >>> idx = pd.Index(['Ant', 'Bear', 'Cow'], name='animal')
 
        By default, the original Index and original name is reused.
 
        >>> idx.to_series()
        animal
        Ant      Ant
        Bear    Bear
        Cow      Cow
        Name: animal, dtype: object
 
        To enforce a new Index, specify new labels to ``index``:
 
        >>> idx.to_series(index=[0, 1, 2])
        0     Ant
        1    Bear
        2     Cow
        Name: animal, dtype: object
 
        To override the name of the resulting column, specify `name`:
 
        >>> idx.to_series(name='zoo')
        animal
        Ant      Ant
        Bear    Bear
        Cow      Cow
        Name: zoo, dtype: object
        rr-N)rrÏ)rr…r:rÏrúrÛ)rŸrrÏr…r¤r¤r¥Ú    to_series®s 7 zIndex.to_series)rrÏr•cCs>ddlm}|tjkr| ¡}|||j ¡iƒ}|r:||_|S)a¿
        Create a DataFrame with a column containing the Index.
 
        Parameters
        ----------
        index : bool, default True
            Set the index of the returned DataFrame as the original Index.
 
        name : object, defaults to index.name
            The passed name should substitute for the index name (if it has
            one).
 
        Returns
        -------
        DataFrame
            DataFrame containing the original Index data.
 
        See Also
        --------
        Index.to_series : Convert an Index to a Series.
        Series.to_frame : Convert Series to DataFrame.
 
        Examples
        --------
        >>> idx = pd.Index(['Ant', 'Bear', 'Cow'], name='animal')
        >>> idx.to_frame()
               animal
        animal
        Ant       Ant
        Bear     Bear
        Cow       Cow
 
        By default, the original Index is reused. To enforce a new Index:
 
        >>> idx.to_frame(index=False)
            animal
        0   Ant
        1  Bear
        2   Cow
 
        To override the name of the resulting column, specify `name`:
 
        >>> idx.to_frame(index=False, name='zoo')
            zoo
        0   Ant
        1  Bear
        2   Cow
        r)rƒ)rrƒrrr—rúrÛr)rŸrrÏrƒr r¤r¤r¥r5îs3 
zIndex.to_framecCs|jS)z2
        Return Index or MultiIndex name.
        )rÍrÔr¤r¤r¥rÏ.sz
Index.name)Úvaluer•cCs(|jrtdƒ‚t|dt|ƒƒ||_dS)NzOCannot set name on a level of a MultiIndex. Use 'MultiIndex.set_names' instead.)rÎÚ RuntimeErrorrõrrÍ©rŸr¸r¤r¤r¥rÏ5s ÿzlist[Hashable])rwr•cCsÊddlm}|dk    r$|dk    r$tdƒ‚|dkrJ|dkrJ|rB||jƒn|j}n2|dk    rht|ƒsbtdƒ‚|}nt|ƒsx|g}n|}t|ƒt|jƒkr¬tdt|jƒ›dt|ƒ›ƒ‚t|dt|ƒj    ›d    iŽ|S)
        Handles the quirks of having a singular 'name' parameter for general
        Index and plural 'names' parameter for MultiIndex.
        r)ÚdeepcopyNz*Can only provide one of `names` and `name`úMust pass list-like as `names`.zLength of new names must be z, got Ú
error_nameú.name)
rÛr»rorñrMrr    rUrrg)rŸrÏrñrwr»Ú    new_namesr¤r¤r¥rx@s$ ÿzIndex._validate_namesz$Hashable | Sequence[Hashable] | None)rñr•cCszddlm}|dk    r(t|ttfƒr(|g}t|tƒsB|dk    rBtdƒ‚|svt||ƒr^t |j    ¡}n|j
dkrn|gn|j
g}|S)a=
        Get names of index.
 
        Parameters
        ----------
        names : int, str or 1-dimensional list, default None
            Index names to set.
        default : str
            Default name of index.
 
        Raises
        ------
        TypeError
            if names not str or list-like
        rrïNz-Index names must be str or 1-dimensional list) rr„rêrNrÈrr    rüZfill_missing_namesrñrÏ)rŸrñÚdefaultr„r¤r¤r¥Ú_get_default_index_namesas 
zIndex._get_default_index_namesrvcCs t|jfƒSrº)rvrÏrÔr¤r¤r¥Ú
_get_names„szIndex._get_namesrLcCsVt|ƒstdƒ‚t|ƒdkr.tdt|ƒ›ƒ‚t|dt|ƒj›diŽ|d|_dS)aÙ
        Set new names on index. Each name has to be a hashable type.
 
        Parameters
        ----------
        values : str or sequence
            name(s) to set
        level : int, level name, or sequence of int/level names (default None)
            If the index is a MultiIndex (hierarchical), level(s) to set (None
            for all levels).  Otherwise level must be None
 
        Raises
        ------
        TypeError if each name is not hashable.
        zNames must be a list-liker¸z#Length of new names must be 1, got r½r¾rN)rMr    rrUrrgrÍ©rŸrr™r¤r¤r¥Ú
_set_names‡s  zIndex._set_names)ÚfsetÚfget.)r™rzLiteral[False])rŸrr•cCsdSrºr¤©rŸrñr™rr¤r¤r¥Ú    set_names¤szIndex.set_namesz Literal[True])rr•cCsdSrºr¤rÇr¤r¤r¥rȪsz_IndexT | NonecCsdSrºr¤rÇr¤r¤r¥rÈ®scCsF|dk    rt|tƒstdƒ‚|dk    r:t|ƒs:t|ƒr:tdƒ‚t|ƒs\|dkr\|jdkr\tdƒ‚t|ƒrvt|tƒsvtdƒ‚t|ƒrŽ|dk    rŽtdƒ‚t|tƒrît|ƒrî|dkrîgg}}t|jƒD],\}}||     ¡kr¼| 
|¡| 
||¡q¼|}t|ƒsü|g}|dk    rt|ƒs|g}|r"|}n|  ¡}|j ||d|sB|SdS)    aû
        Set Index or MultiIndex name.
 
        Able to set new names partially and by level.
 
        Parameters
        ----------
 
        names : label or list of label or dict-like for MultiIndex
            Name(s) to set.
 
            .. versionchanged:: 1.3.0
 
        level : int, label or list of int or label, optional
            If the index is a MultiIndex and names is not dict-like, level(s) to set
            (None for all levels). Otherwise level must be None.
 
            .. versionchanged:: 1.3.0
 
        inplace : bool, default False
            Modifies the object directly, instead of creating a new Index or
            MultiIndex.
 
        Returns
        -------
        Index or None
            The same type as the caller or None if ``inplace=True``.
 
        See Also
        --------
        Index.rename : Able to set new names without level.
 
        Examples
        --------
        >>> idx = pd.Index([1, 2, 3, 4])
        >>> idx
        Index([1, 2, 3, 4], dtype='int64')
        >>> idx.set_names('quarter')
        Index([1, 2, 3, 4], dtype='int64', name='quarter')
 
        >>> idx = pd.MultiIndex.from_product([['python', 'cobra'],
        ...                                   [2018, 2019]])
        >>> idx
        MultiIndex([('python', 2018),
                    ('python', 2019),
                    ( 'cobra', 2018),
                    ( 'cobra', 2019)],
                   )
        >>> idx = idx.set_names(['kind', 'year'])
        >>> idx.set_names('species', level=0)
        MultiIndex([('python', 2018),
                    ('python', 2019),
                    ( 'cobra', 2018),
                    ( 'cobra', 2019)],
                   names=['species', 'year'])
 
        When renaming levels with a dict, levels can not be passed.
 
        >>> idx.set_names({'kind': 'snake'})
        MultiIndex([('python', 2018),
                    ('python', 2019),
                    ( 'cobra', 2018),
                    ( 'cobra', 2019)],
                   names=['snake', 'year'])
        Nz%Level must be None for non-MultiIndexz7Names must be a string when a single level is provided.r¸r¼z2Can only pass dict-like as `names` for MultiIndex.z(Can not pass level for dictlike `names`.rL) rêr^r    rMror4rbr–rñÚkeysr•r:rÄ)rŸrñr™rZnames_adjustedràrÏÚidxr¤r¤r¥rÈ´s8D
 
©rcCs|j|g|dS)aq
        Alter Index or MultiIndex name.
 
        Able to set new names without level. Defaults to returning new index.
        Length of names must match number of levels in MultiIndex.
 
        Parameters
        ----------
        name : label or list of labels
            Name(s) to set.
        inplace : bool, default False
            Modifies the object directly, instead of creating a new Index or
            MultiIndex.
 
        Returns
        -------
        Index or None
            The same type as the caller or None if ``inplace=True``.
 
        See Also
        --------
        Index.set_names : Able to set new names partially and by level.
 
        Examples
        --------
        >>> idx = pd.Index(['A', 'C', 'A', 'B'], name='score')
        >>> idx.rename('grade')
        Index(['A', 'C', 'A', 'B'], dtype='object', name='grade')
 
        >>> idx = pd.MultiIndex.from_product([['python', 'cobra'],
        ...                                   [2018, 2019]],
        ...                                   names=['kind', 'year'])
        >>> idx
        MultiIndex([('python', 2018),
                    ('python', 2019),
                    ( 'cobra', 2018),
                    ( 'cobra', 2019)],
                   names=['kind', 'year'])
        >>> idx.rename(['species', 'year'])
        MultiIndex([('python', 2018),
                    ('python', 2019),
                    ( 'cobra', 2018),
                    ( 'cobra', 2019)],
                   names=['species', 'year'])
        >>> idx.rename('species')
        Traceback (most recent call last):
        TypeError: Must pass list-like as `names`.
        rË)rÈ)rŸrÏrr¤r¤r¥Úrenames1z Index.renamecCsdS)z#
        Number of levels.
        r¸r¤rÔr¤r¤r¥r4Usz Index.nlevelscCs|S)z)
        Compat with MultiIndex.
        r¤rÔr¤r¤r¥Ú_sort_levels_monotonic\szIndex._sort_levels_monotoniccCslt|tƒrF|dkr*|dkr*td|›dƒ‚|dkrhtd|d›ƒ‚n"||jkrhtd|›d|j›d    ƒ‚d
S) z¨
        Validate index level.
 
        For single-level Index getting level number is a no-op, but some
        verification must be done like in MultiIndex.
 
        rrsz)Too many levels: Index has only 1 level, z is not a valid level numberz-Too many levels: Index has only 1 level, not r¸zRequested level (z) does not match index name (r„N)rêrNÚ
IndexErrorrÏrB©rŸr™r¤r¤r¥Ú_validate_index_levelbs    
 
ÿ ÿ
ÿzIndex._validate_index_levelcCs| |¡dS)Nr©rÐrÏr¤r¤r¥Ú_get_level_numberzs
zIndex._get_level_numberzbool | list[bool])Ú    ascendingcCs\t|ttfƒstdƒ‚t|tƒr<t|ƒdkr4tdƒ‚|d}t|tƒsNtdƒ‚|jd|dS)a\
        For internal compatibility with the Index API.
 
        Sort the Index. This is for compat with MultiIndex
 
        Parameters
        ----------
        ascending : bool, default True
            False to sort in descending order
 
        level, sort_remaining are compat parameters
 
        Returns
        -------
        Index
        zIascending must be a single bool value ora list of bool values of length 1r¸z3ascending must be a list of bool values of length 1rzascending must be a bool valueT)Úreturn_indexerrÓ)rêrrœrorÚ sort_values)rŸr™rÓZsort_remainingr¤r¤r¥Ú    sortlevel~sÿ
 
zIndex.sortlevelcCs| |¡|S)aÅ
        Return an Index of values for requested level.
 
        This is primarily useful to get an individual level of values from a
        MultiIndex, but is provided on Index as well for compatibility.
 
        Parameters
        ----------
        level : int or str
            It is either the integer position or the name of the level.
 
        Returns
        -------
        Index
            Calling object, as there is only one level in the Index.
 
        See Also
        --------
        MultiIndex.get_level_values : Get values for a level of a MultiIndex.
 
        Notes
        -----
        For Index, level should be 0, since there are no multiple levels.
 
        Examples
        --------
        >>> idx = pd.Index(list('abc'))
        >>> idx
        Index(['a', 'b', 'c'], dtype='object')
 
        Get level values by supplying `level` as integer:
 
        >>> idx.get_level_values(0)
        Index(['a', 'b', 'c'], dtype='object')
        rÑrÏr¤r¤r¥Ú_get_level_values¡s$
zIndex._get_level_valuesr'cs>t|ttfƒs|g}t‡fdd„|Dƒƒddd…}ˆ |¡S)a¾
        Return index with requested level(s) removed.
 
        If resulting index has only 1 level left, the result will be
        of Index type, not MultiIndex. The original index is not modified inplace.
 
        Parameters
        ----------
        level : int, str, or list-like, default 0
            If a string is given, must be the name of a level
            If list-like, elements must be names or indexes of levels.
 
        Returns
        -------
        Index or MultiIndex
 
        Examples
        --------
        >>> mi = pd.MultiIndex.from_arrays(
        ... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z'])
        >>> mi
        MultiIndex([(1, 3, 5),
                    (2, 4, 6)],
                   names=['x', 'y', 'z'])
 
        >>> mi.droplevel()
        MultiIndex([(3, 5),
                    (4, 6)],
                   names=['y', 'z'])
 
        >>> mi.droplevel(2)
        MultiIndex([(1, 3),
                    (2, 4)],
                   names=['x', 'y'])
 
        >>> mi.droplevel('z')
        MultiIndex([(1, 3),
                    (2, 4)],
                   names=['x', 'y'])
 
        >>> mi.droplevel(['x', 'y'])
        Index([5, 6], dtype='int64', name='z')
        c3s|]}ˆ |¡VqdSrº)rÒ)rìÚlevrÔr¤r¥rîúsz"Index.droplevel.<locals>.<genexpr>Nrs)rêrërÚsortedÚ_drop_level_numbers)rŸr™Úlevnumsr¤rÔr¥Ú    droplevelÊs- zIndex.droplevelz    list[int])rÛc Cs\|st|tƒs|St|ƒ|jkr<tdt|ƒ›d|j›dƒ‚td|ƒ}t|jƒ}t|jƒ}t|j    ƒ}|D]"}| 
|¡| 
|¡| 
|¡qht|ƒdkr<|d}t|ƒdkrøt|dƒdkrÌ|dd…}n*t j |j |ddd    }|jj||dd
}n@|dd k}    |d  |d¡}|     ¡r.| |    tj¡}|d|_|Sdd lm}
|
|||d dSdS)zE
        Drop MultiIndex levels by level _number_, not name.
        zCannot remove z levels from an index with z) levels: at least one level must be left.r„r¸rNT)rlrrsrïF©Úlevelsr¬rñr­)rêr^rr4r    rrrÞr¬rñr±rrjrúr%r r[Úputmaskr¼ÚnanrÍrr„) rŸrÛÚ
new_levelsÚ    new_codesr¿ràrØr rvr©r„r¤r¤r¥rÚþsDÿ
 
 
 
 
 
 
 
 üzIndex._drop_level_numberscCs8t|jtƒr$t|jtƒrdS|jjS|jjdkr4dSdS)NT)ràrárãF)rêr®rYrZrtrûrÔr¤r¤r¥rt;s   zIndex._can_hold_nacCs|jjS)aâ
        Return a boolean if the values are equal or increasing.
 
        Returns
        -------
        bool
 
        See Also
        --------
        Index.is_monotonic_decreasing : Check if the values are equal or decreasing.
 
        Examples
        --------
        >>> pd.Index([1, 2, 3]).is_monotonic_increasing
        True
        >>> pd.Index([1, 2, 2]).is_monotonic_increasing
        True
        >>> pd.Index([1, 3, 2]).is_monotonic_increasing
        False
        )r>Úis_monotonic_increasingrÔr¤r¤r¥rãIszIndex.is_monotonic_increasingcCs|jjS)aâ
        Return a boolean if the values are equal or decreasing.
 
        Returns
        -------
        bool
 
        See Also
        --------
        Index.is_monotonic_increasing : Check if the values are equal or increasing.
 
        Examples
        --------
        >>> pd.Index([3, 2, 1]).is_monotonic_decreasing
        True
        >>> pd.Index([3, 2, 2]).is_monotonic_decreasing
        True
        >>> pd.Index([3, 1, 2]).is_monotonic_decreasing
        False
        )r>Úis_monotonic_decreasingrÔr¤r¤r¥räaszIndex.is_monotonic_decreasingcCs |jo
|jS)aq
        Return if the index is strictly monotonic increasing
        (only increasing) values.
 
        Examples
        --------
        >>> Index([1, 2, 3])._is_strictly_monotonic_increasing
        True
        >>> Index([1, 2, 2])._is_strictly_monotonic_increasing
        False
        >>> Index([1, 3, 2])._is_strictly_monotonic_increasing
        False
        )r(rãrÔr¤r¤r¥Ú!_is_strictly_monotonic_increasingysz'Index._is_strictly_monotonic_increasingcCs |jo
|jS)aq
        Return if the index is strictly monotonic decreasing
        (only decreasing) values.
 
        Examples
        --------
        >>> Index([3, 2, 1])._is_strictly_monotonic_decreasing
        True
        >>> Index([3, 2, 2])._is_strictly_monotonic_decreasing
        False
        >>> Index([3, 1, 2])._is_strictly_monotonic_decreasing
        False
        )r(rärÔr¤r¤r¥Ú!_is_strictly_monotonic_decreasing‹sz'Index._is_strictly_monotonic_decreasingcCs|jjS)aÚ
        Return if the index has unique values.
 
        Returns
        -------
        bool
 
        See Also
        --------
        Index.has_duplicates : Inverse method that checks if it has duplicate values.
 
        Examples
        --------
        >>> idx = pd.Index([1, 5, 7, 7])
        >>> idx.is_unique
        False
 
        >>> idx = pd.Index([1, 5, 7])
        >>> idx.is_unique
        True
 
        >>> idx = pd.Index(["Watermelon", "Orange", "Apple",
        ...                 "Watermelon"]).astype("category")
        >>> idx.is_unique
        False
 
        >>> idx = pd.Index(["Orange", "Apple",
        ...                 "Watermelon"]).astype("category")
        >>> idx.is_unique
        True
        )r>r(rÔr¤r¤r¥r(s!zIndex.is_uniquecCs|j S)a#
        Check if the Index has duplicate values.
 
        Returns
        -------
        bool
            Whether or not the Index has duplicate values.
 
        See Also
        --------
        Index.is_unique : Inverse method that checks if it has unique values.
 
        Examples
        --------
        >>> idx = pd.Index([1, 5, 7, 7])
        >>> idx.has_duplicates
        True
 
        >>> idx = pd.Index([1, 5, 7])
        >>> idx.has_duplicates
        False
 
        >>> idx = pd.Index(["Watermelon", "Orange", "Apple",
        ...                 "Watermelon"]).astype("category")
        >>> idx.has_duplicates
        True
 
        >>> idx = pd.Index(["Orange", "Apple",
        ...                 "Watermelon"]).astype("category")
        >>> idx.has_duplicates
        False
        ©r(rÔr¤r¤r¥Úhas_duplicatesÀs#zIndex.has_duplicatescCs(tjt|ƒj›dttƒd|jdkS)ah
        Check if the Index only consists of booleans.
 
        .. deprecated:: 2.0.0
            Use `pandas.api.types.is_bool_dtype` instead.
 
        Returns
        -------
        bool
            Whether or not the Index only consists of booleans.
 
        See Also
        --------
        is_integer : Check if the Index only consists of integers (deprecated).
        is_floating : Check if the Index is a floating type (deprecated).
        is_numeric : Check if the Index only consists of numeric data (deprecated).
        is_object : Check if the Index is of the object dtype (deprecated).
        is_categorical : Check if the Index holds categorical data.
        is_interval : Check if the Index holds Interval objects (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index([True, False, True])
        >>> idx.is_boolean()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index(["True", "False", "True"])
        >>> idx.is_boolean()  # doctest: +SKIP
        False
 
        >>> idx = pd.Index([True, False, "True"])
        >>> idx.is_boolean()  # doctest: +SKIP
        False
        zE.is_boolean is deprecated. Use pandas.api.types.is_bool_type instead.©Ú
stacklevel)r“©ÚwarningsÚwarnrrgÚ FutureWarningr2r‘rÔr¤r¤r¥Ú
is_booleanås $üzIndex.is_booleancCs(tjt|ƒj›dttƒd|jdkS)ax
        Check if the Index only consists of integers.
 
        .. deprecated:: 2.0.0
            Use `pandas.api.types.is_integer_dtype` instead.
 
        Returns
        -------
        bool
            Whether or not the Index only consists of integers.
 
        See Also
        --------
        is_boolean : Check if the Index only consists of booleans (deprecated).
        is_floating : Check if the Index is a floating type (deprecated).
        is_numeric : Check if the Index only consists of numeric data (deprecated).
        is_object : Check if the Index is of the object dtype. (deprecated).
        is_categorical : Check if the Index holds categorical data (deprecated).
        is_interval : Check if the Index holds Interval objects (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index([1, 2, 3, 4])
        >>> idx.is_integer()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
        >>> idx.is_integer()  # doctest: +SKIP
        False
 
        >>> idx = pd.Index(["Apple", "Mango", "Watermelon"])
        >>> idx.is_integer()  # doctest: +SKIP
        False
        zI.is_integer is deprecated. Use pandas.api.types.is_integer_dtype instead.ré)ÚintegerrërÔr¤r¤r¥rI    s $üzIndex.is_integercCs(tjt|ƒj›dttƒd|jdkS)aˆ
        Check if the Index is a floating type.
 
        .. deprecated:: 2.0.0
            Use `pandas.api.types.is_float_dtype` instead
 
        The Index may consist of only floats, NaNs, or a mix of floats,
        integers, or NaNs.
 
        Returns
        -------
        bool
            Whether or not the Index only consists of only consists of floats, NaNs, or
            a mix of floats, integers, or NaNs.
 
        See Also
        --------
        is_boolean : Check if the Index only consists of booleans (deprecated).
        is_integer : Check if the Index only consists of integers (deprecated).
        is_numeric : Check if the Index only consists of numeric data (deprecated).
        is_object : Check if the Index is of the object dtype. (deprecated).
        is_categorical : Check if the Index holds categorical data (deprecated).
        is_interval : Check if the Index holds Interval objects (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
        >>> idx.is_floating()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1.0, 2.0, np.nan, 4.0])
        >>> idx.is_floating()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 2, 3, 4, np.nan])
        >>> idx.is_floating()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 2, 3, 4])
        >>> idx.is_floating()  # doctest: +SKIP
        False
        zH.is_floating is deprecated. Use pandas.api.types.is_float_dtype instead.ré)Úfloatingzmixed-integer-floatz
integer-narërÔr¤r¤r¥Ú is_floating=    s ,üzIndex.is_floatingcCs(tjt|ƒj›dttƒd|jdkS)aR
        Check if the Index only consists of numeric data.
 
        .. deprecated:: 2.0.0
            Use `pandas.api.types.is_numeric_dtype` instead.
 
        Returns
        -------
        bool
            Whether or not the Index only consists of numeric data.
 
        See Also
        --------
        is_boolean : Check if the Index only consists of booleans (deprecated).
        is_integer : Check if the Index only consists of integers (deprecated).
        is_floating : Check if the Index is a floating type (deprecated).
        is_object : Check if the Index is of the object dtype. (deprecated).
        is_categorical : Check if the Index holds categorical data (deprecated).
        is_interval : Check if the Index holds Interval objects (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
        >>> idx.is_numeric()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 2, 3, 4.0])
        >>> idx.is_numeric()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 2, 3, 4])
        >>> idx.is_numeric()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 2, 3, 4.0, np.nan])
        >>> idx.is_numeric()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 2, 3, 4.0, np.nan, "Apple"])
        >>> idx.is_numeric()  # doctest: +SKIP
        False
        zQ.is_numeric is deprecated. Use pandas.api.types.is_any_real_numeric_dtype insteadré)rðrñrërÔr¤r¤r¥Ú
is_numericq    s ,üzIndex.is_numericcCs(tjt|ƒj›dttƒdt|jƒS)a2
        Check if the Index is of the object dtype.
 
        .. deprecated:: 2.0.0
           Use `pandas.api.types.is_object_dtype` instead.
 
        Returns
        -------
        bool
            Whether or not the Index is of the object dtype.
 
        See Also
        --------
        is_boolean : Check if the Index only consists of booleans (deprecated).
        is_integer : Check if the Index only consists of integers (deprecated).
        is_floating : Check if the Index is a floating type (deprecated).
        is_numeric : Check if the Index only consists of numeric data (deprecated).
        is_categorical : Check if the Index holds categorical data (deprecated).
        is_interval : Check if the Index holds Interval objects (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index(["Apple", "Mango", "Watermelon"])
        >>> idx.is_object()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index(["Apple", "Mango", 2.0])
        >>> idx.is_object()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index(["Watermelon", "Orange", "Apple",
        ...                 "Watermelon"]).astype("category")
        >>> idx.is_object()  # doctest: +SKIP
        False
 
        >>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
        >>> idx.is_object()  # doctest: +SKIP
        False
        zE.is_object is deprecated.Use pandas.api.types.is_object_dtype insteadré)rìrírrgrîr2rOr®rÔr¤r¤r¥Ú    is_object¥    s )üzIndex.is_objectcCs(tjt|ƒj›dttƒd|jdkS)a…
        Check if the Index holds categorical data.
 
        .. deprecated:: 2.0.0
              Use :meth:`pandas.api.types.is_categorical_dtype` instead.
 
        Returns
        -------
        bool
            True if the Index is categorical.
 
        See Also
        --------
        CategoricalIndex : Index for categorical data.
        is_boolean : Check if the Index only consists of booleans (deprecated).
        is_integer : Check if the Index only consists of integers (deprecated).
        is_floating : Check if the Index is a floating type (deprecated).
        is_numeric : Check if the Index only consists of numeric data (deprecated).
        is_object : Check if the Index is of the object dtype. (deprecated).
        is_interval : Check if the Index holds Interval objects (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index(["Watermelon", "Orange", "Apple",
        ...                 "Watermelon"]).astype("category")
        >>> idx.is_categorical()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 3, 5, 7])
        >>> idx.is_categorical()  # doctest: +SKIP
        False
 
        >>> s = pd.Series(["Peter", "Victor", "Elisabeth", "Mar"])
        >>> s
        0        Peter
        1       Victor
        2    Elisabeth
        3          Mar
        dtype: object
        >>> s.index.is_categorical()  # doctest: +SKIP
        False
        zO.is_categorical is deprecated.Use pandas.api.types.is_categorical_dtype insteadré)rrërÔr¤r¤r¥Úis_categoricalÖ    s ,üzIndex.is_categoricalcCs(tjt|ƒj›dttƒd|jdkS)au
        Check if the Index holds Interval objects.
 
        .. deprecated:: 2.0.0
            Use `pandas.api.types.is_interval_dtype` instead.
 
        Returns
        -------
        bool
            Whether or not the Index holds Interval objects.
 
        See Also
        --------
        IntervalIndex : Index for Interval objects.
        is_boolean : Check if the Index only consists of booleans (deprecated).
        is_integer : Check if the Index only consists of integers (deprecated).
        is_floating : Check if the Index is a floating type (deprecated).
        is_numeric : Check if the Index only consists of numeric data (deprecated).
        is_object : Check if the Index is of the object dtype. (deprecated).
        is_categorical : Check if the Index holds categorical data (deprecated).
 
        Examples
        --------
        >>> idx = pd.Index([pd.Interval(left=0, right=5),
        ...                 pd.Interval(left=5, right=10)])
        >>> idx.is_interval()  # doctest: +SKIP
        True
 
        >>> idx = pd.Index([1, 3, 5, 7])
        >>> idx.is_interval()  # doctest: +SKIP
        False
        zI.is_interval is deprecated.Use pandas.api.types.is_interval_dtype insteadré)ÚintervalrërÔr¤r¤r¥Ú is_interval
s "üzIndex.is_intervalcCs
|jdkS)z6
        Whether the type is an integer type.
        )rðr‰©r‘rÔr¤r¤r¥Ú_holds_integer5
szIndex._holds_integercCs&tjt|ƒj›dttƒd| ¡S)zŒ
        Whether the type is an integer type.
 
        .. deprecated:: 2.0.0
            Use `pandas.api.types.infer_dtype` instead
        zG.holds_integer is deprecated. Use pandas.api.types.infer_dtype instead.ré)rìrírrgrîr2rùrÔr¤r¤r¥Ú holds_integer<
s üzIndex.holds_integercCstj|jddS)zG
        Return a string of the type inferred from the values.
        F©Úskipna)rÚ infer_dtyperúrÔr¤r¤r¥r‘L
szIndex.inferred_typecCs4t|jƒrdS|jtkrdS|jr&dStt|jƒƒS)zH
        Whether or not the index values only consist of dates.
        TF)rSr®rþr rr>rúrÔr¤r¤r¥Ú _is_all_datesS
s
 
zIndex._is_all_datescCs
t|tƒS)zI
        Cached check equivalent to isinstance(self, MultiIndex)
        )rêr^rÔr¤r¤r¥r d
szIndex._is_multicCs |j|jdœ}tt|ƒ|fdfS)N)r¯rÏ)rÊrÏrµr)rŸr´r¤r¤r¥Ú
__reduce__o
szIndex.__reduce__cCs,|j}t|tjƒr&|jdkr tStjS|jS)z-The expected NA value to use with this index.©råræ)r®rêr¼rûrràÚna_valuerPr¤r¤r¥rqv
s  
zIndex._na_valueznpt.NDArray[np.bool_]cCs4|jrt|ƒStjt|ƒtjd}| d¡|SdS)z.
        Return if each value is NaN.
        rçFN)rtrer¼ÚemptyrÚbool_Úfill)rŸrr¤r¤r¥Ú_isnan€
s
 
z Index._isnancCs|jrt|j ¡ƒSdSdS)z‘
        Return True if there are any NaNs.
 
        Enables various performance speedups.
 
        Returns
        -------
        bool
        FN)rtrœrr[rÔr¤r¤r¥Úhasnans
s z Index.hasnanscCs|jS)aÿ
        Detect missing values.
 
        Return a boolean same-sized object indicating if the values are NA.
        NA values, such as ``None``, :attr:`numpy.NaN` or :attr:`pd.NaT`, get
        mapped to ``True`` values.
        Everything else get mapped to ``False`` values. Characters such as
        empty strings `''` or :attr:`numpy.inf` are not considered NA values
        (unless you set ``pandas.options.mode.use_inf_as_na = True``).
 
        Returns
        -------
        numpy.ndarray[bool]
            A boolean array of whether my values are NA.
 
        See Also
        --------
        Index.notna : Boolean inverse of isna.
        Index.dropna : Omit entries with missing values.
        isna : Top-level isna.
        Series.isna : Detect missing values in Series object.
 
        Examples
        --------
        Show which entries in a pandas.Index are NA. The result is an
        array.
 
        >>> idx = pd.Index([5.2, 6.0, np.NaN])
        >>> idx
        Index([5.2, 6.0, nan], dtype='float64')
        >>> idx.isna()
        array([False, False,  True])
 
        Empty strings are not considered NA values. None is considered an NA
        value.
 
        >>> idx = pd.Index(['black', '', 'red', None])
        >>> idx
        Index(['black', '', 'red', None], dtype='object')
        >>> idx.isna()
        array([False, False, False,  True])
 
        For datetimes, `NaT` (Not a Time) is considered as an NA value.
 
        >>> idx = pd.DatetimeIndex([pd.Timestamp('1940-04-25'),
        ...                         pd.Timestamp(''), None, pd.NaT])
        >>> idx
        DatetimeIndex(['1940-04-25', 'NaT', 'NaT', 'NaT'],
                      dtype='datetime64[ns]', freq=None)
        >>> idx.isna()
        array([False,  True,  True,  True])
        )rrÔr¤r¤r¥re
s6z
Index.isnacCs
| ¡S)a
        Detect existing (non-missing) values.
 
        Return a boolean same-sized object indicating if the values are not NA.
        Non-missing values get mapped to ``True``. Characters such as empty
        strings ``''`` or :attr:`numpy.inf` are not considered NA values
        (unless you set ``pandas.options.mode.use_inf_as_na = True``).
        NA values, such as None or :attr:`numpy.NaN`, get mapped to ``False``
        values.
 
        Returns
        -------
        numpy.ndarray[bool]
            Boolean array to indicate which entries are not NA.
 
        See Also
        --------
        Index.notnull : Alias of notna.
        Index.isna: Inverse of notna.
        notna : Top-level notna.
 
        Examples
        --------
        Show which entries in an Index are not NA. The result is an
        array.
 
        >>> idx = pd.Index([5.2, 6.0, np.NaN])
        >>> idx
        Index([5.2, 6.0, nan], dtype='float64')
        >>> idx.notna()
        array([ True,  True, False])
 
        Empty strings are not considered NA values. None is considered a NA
        value.
 
        >>> idx = pd.Index(['black', '', 'red', None])
        >>> idx
        Index(['black', '', 'red', None], dtype='object')
        >>> idx.notna()
        array([ True,  True,  True, False])
        )rerÔr¤r¤r¥Únotna×
s+z Index.notnacCsR| |¡}|jrJ| |j|¡}|dkr6tj||jdStt|ƒj    ›dƒ‚| 
¡S)aœ
        Fill NA/NaN values with the specified value.
 
        Parameters
        ----------
        value : scalar
            Scalar value to use to fill holes (e.g. 0).
            This value cannot be a list-likes.
        downcast : dict, default is None
            A dict of item->dtype of what to downcast if possible,
            or the string 'infer' which will try to downcast to an appropriate
            equal type (e.g. float64 to int64 if possible).
 
        Returns
        -------
        Index
 
        See Also
        --------
        DataFrame.fillna : Fill NaN values of a DataFrame.
        Series.fillna : Fill NaN Values of a Series.
        NrzF.fillna does not support 'downcast' argument values other than 'None'.) Ú_require_scalarrrßrr‡r$rÏrrrgr:)rŸr¸Zdowncastr r¤r¤r¥Úfillna s
ÿz Index.fillnar[r)rŸr˜r•cCsF|dkrtd|›ƒ‚|jr>|j|j}t|ƒj||jdS| ¡S)a
        Return Index without NA/NaN values.
 
        Parameters
        ----------
        how : {'any', 'all'}, default 'any'
            If the Index is a MultiIndex, drop the value when any or all levels
            are NaN.
 
        Returns
        -------
        Index
        )r[rzinvalid how option: r)r    rrúrrr rÏr:)rŸr˜rvr¤r¤r¥Údropna, s z Index.dropna)rŸr™r•cs4|dk    r| |¡|jr | ¡Stƒ ¡}| |¡S)a6
        Return unique values in the index.
 
        Unique values are returned in order of appearance, this does NOT sort.
 
        Parameters
        ----------
        level : int or hashable, optional
            Only return values from specified level (for MultiIndex).
            If int, gets the level by integer position, else by level name.
 
        Returns
        -------
        Index
 
        See Also
        --------
        unique : Numpy array of unique values in that column.
        Series.unique : Return unique values of Series object.
        N)rÐr(r:ÚsuperrŽr8)rŸr™r ©Ú    __class__r¤r¥rŽE s 
 
z Index.uniquer.r/r#)rŸr0r•cs|jr| ¡Stƒj|dS)a
        Return Index with duplicate values removed.
 
        Parameters
        ----------
        keep : {'first', 'last', ``False``}, default 'first'
            - 'first' : Drop duplicates except for the first occurrence.
            - 'last' : Drop duplicates except for the last occurrence.
            - ``False`` : Drop all duplicates.
 
        Returns
        -------
        Index
 
        See Also
        --------
        Series.drop_duplicates : Equivalent method on Series.
        DataFrame.drop_duplicates : Equivalent method on DataFrame.
        Index.duplicated : Related method on Index, indicating duplicate
            Index values.
 
        Examples
        --------
        Generate an pandas.Index with duplicate values.
 
        >>> idx = pd.Index(['lama', 'cow', 'lama', 'beetle', 'lama', 'hippo'])
 
        The `keep` parameter controls  which duplicate values are removed.
        The value 'first' keeps the first occurrence for each
        set of duplicated entries. The default value of keep is 'first'.
 
        >>> idx.drop_duplicates(keep='first')
        Index(['lama', 'cow', 'beetle', 'hippo'], dtype='object')
 
        The value 'last' keeps the last occurrence for each set of duplicated
        entries.
 
        >>> idx.drop_duplicates(keep='last')
        Index(['cow', 'beetle', 'lama', 'hippo'], dtype='object')
 
        The value ``False`` discards all sets of duplicated entries.
 
        >>> idx.drop_duplicates(keep=False)
        Index(['cow', 'beetle', 'hippo'], dtype='object')
        r/)r(r:r Údrop_duplicates©rŸr0r r¤r¥rc s.zIndex.drop_duplicates)r0r•cCs$|jrtjt|ƒtdS|j|dS)a
        Indicate duplicate index values.
 
        Duplicated values are indicated as ``True`` values in the resulting
        array. Either all duplicates, all except the first, or all except the
        last occurrence of duplicates can be indicated.
 
        Parameters
        ----------
        keep : {'first', 'last', False}, default 'first'
            The value or values in a set of duplicates to mark as missing.
 
            - '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
        -------
        np.ndarray[bool]
 
        See Also
        --------
        Series.duplicated : Equivalent method on pandas.Series.
        DataFrame.duplicated : Equivalent method on pandas.DataFrame.
        Index.drop_duplicates : Remove duplicate values from Index.
 
        Examples
        --------
        By default, for each set of duplicated values, the first occurrence is
        set to False and all others to True:
 
        >>> idx = pd.Index(['lama', 'cow', 'lama', 'beetle', 'lama'])
        >>> idx.duplicated()
        array([False, False,  True, False,  True])
 
        which is equivalent to
 
        >>> idx.duplicated(keep='first')
        array([False, False,  True, False,  True])
 
        By using 'last', the last occurrence of each set of duplicated values
        is set on False and all others on True:
 
        >>> idx.duplicated(keep='last')
        array([ True, False,  True, False, False])
 
        By setting keep on ``False``, all duplicates are True:
 
        >>> idx.duplicated(keep=False)
        array([ True, False,  True, False,  True])
        rçr/)r(r¼ÚzerosrrœZ _duplicatedrr¤r¤r¥r– s6zIndex.duplicatedcCs||Srºr¤r<r¤r¤r¥Ú__iadd__Ô szIndex.__iadd__r cCstdt|ƒj›dƒ‚dS)NzThe truth value of a zC is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().)r    rrgrÔr¤r¤r¥Ú __nonzero__Ø sÿzIndex.__nonzero__cCs"t||ƒ}|j|k    r| |¡S|S)z¡
        If the result of a set operation will be self,
        return self, unless the name changes, in which
        case make a shallow copy of self.
        )rxrÏrÌ)rŸrrÏr¤r¤r¥Ú_get_reconciled_name_objectä s
 
 
z!Index._get_reconciled_name_objectcCs|dkrtd|›dƒ‚dS)N)NFTzBThe 'sort' keyword only takes the values of None, True, or False; z  was passed.©r    )rŸr›r¤r¤r¥Ú_validate_sort_keywordï s
ÿzIndex._validate_sort_keywordztuple[Index, Index])rÚsetopr•cCsLt|tƒrDt|tƒrD|jdk    rD|jdk    rD| d¡}| d¡}||fS||fS)z>
        With mismatched timezones, cast both to UTC.
        NÚUTC)rêr]ÚtzÚ
tz_convert)rŸrrr–Úrightr¤r¤r¥Ú_dti_setop_align_tzs÷ sÿþýü
 
zIndex._dti_setop_align_tzscCs| |¡| |¡| |¡\}}t|j|jƒsžt|tƒrZtt|ƒƒsZt    |ƒdkrZt
dƒ‚|  |d¡\}}|  |¡}|j |dd}|j |dd}|j||dSt    |ƒr°| |¡rÎ| |¡}|dkrÊ| ¡S|St    |ƒsô| |¡}|dkrð| ¡S|S|j||d}| ||¡S)aË
        Form the union of two Index objects.
 
        If the Index objects are incompatible, both Index objects will be
        cast to dtype('object') first.
 
        Parameters
        ----------
        other : Index or array-like
        sort : bool or None, default None
            Whether to sort the resulting Index.
 
            * None : Sort the result, except when
 
              1. `self` and `other` are equal.
              2. `self` or `other` has length 0.
              3. Some values in `self` or `other` cannot be compared.
                 A RuntimeWarning is issued in this case.
 
            * False : do not sort the result.
            * True : Sort the result (which may raise TypeError).
 
        Returns
        -------
        Index
 
        Examples
        --------
        Union matching dtypes
 
        >>> idx1 = pd.Index([1, 2, 3, 4])
        >>> idx2 = pd.Index([3, 4, 5, 6])
        >>> idx1.union(idx2)
        Index([1, 2, 3, 4, 5, 6], dtype='int64')
 
        Union mismatched dtypes
 
        >>> idx1 = pd.Index(['a', 'b', 'c', 'd'])
        >>> idx2 = pd.Index([1, 2, 3, 4])
        >>> idx1.union(idx2)
        Index(['a', 'b', 'c', 'd', 1, 2, 3, 4], dtype='object')
 
        MultiIndex case
 
        >>> idx1 = pd.MultiIndex.from_arrays(
        ...     [[1, 1, 2, 2], ["Red", "Blue", "Red", "Blue"]]
        ... )
        >>> idx1
        MultiIndex([(1,  'Red'),
            (1, 'Blue'),
            (2,  'Red'),
            (2, 'Blue')],
           )
        >>> idx2 = pd.MultiIndex.from_arrays(
        ...     [[3, 3, 2, 2], ["Red", "Green", "Red", "Green"]]
        ... )
        >>> idx2
        MultiIndex([(3,   'Red'),
            (3, 'Green'),
            (2,   'Red'),
            (2, 'Green')],
           )
        >>> idx1.union(idx2)
        MultiIndex([(1,  'Blue'),
            (1,   'Red'),
            (2,  'Blue'),
            (2, 'Green'),
            (2,   'Red'),
            (3, 'Green'),
            (3,   'Red')],
           )
        >>> idx1.union(idx2, sort=False)
        MultiIndex([(1,   'Red'),
            (1,  'Blue'),
            (2,   'Red'),
            (2,  'Blue'),
            (3,   'Red'),
            (3, 'Green'),
            (2, 'Green')],
           )
        rzjCan only union MultiIndex with MultiIndex or Index of tuples, try mi.to_flat_index().union(other) instead.ÚunionFrß©r›T)rÚ_assert_can_do_setopÚ_convert_can_do_setoprCr®rêr^rOÚ_unpack_nested_dtyperrrÚ_find_common_type_compatrùrÚequalsrrÕÚ_unionÚ_wrap_setop_result)rŸrr›Ú result_namer®r–rr r¤r¤r¥r
s<S
 
ÿ
þ
ýÿ
 
 
z Index.union)rc     sH|j}|j}|dkr”|jr”|jr”|jr,|js”|jr”z| |¡dWSttfk
rt|ƒ}t|ƒ‰|     ‡fdd„|Dƒ¡t
j |t dYSXn|j s°t ||¡}t||ƒS|jrÒ| |¡}|dk ¡d}nt | |¡d¡}|jr| | |¡¡}    n*t|ƒdkr&| |¡}
t||
fƒ}    n|}    |jr:|jsDt|    |ƒ}    |    S)a
        Specific union logic should go here. In subclasses, union behavior
        should be overwritten here rather than in `self.union`.
 
        Parameters
        ----------
        other : Index or array-like
        sort : False or None, default False
            Whether to sort the resulting index.
 
            * False : do not sort the result.
            * None : sort the result, except when `self` and `other` are equal
              or when the values cannot be compared.
 
        Returns
        -------
        Index
        Nrcsg|]}|ˆkr|‘qSr¤r¤rV©Z    value_setr¤r¥rX¬ sz Index._union.<locals>.<listcomp>rçrsr¸)rúrãrèÚ_can_use_libjoinrÇrorrÚsetÚextendr¼rr’r(rZunion_with_duplicatesÚ_maybe_try_sortÚ_index_as_uniqueÚ get_indexerÚnonzeroÚunique1dÚget_indexer_non_uniquer r•rjrrV) rŸrr›ZlvalsZrvalsZ
value_listZ result_dupsÚindexerÚmissingr Z
other_diffr¤r&r¥r#„ sJÿþýüüû
 
 
 
 
z Index._union©rr•cCs<t||ƒ}t|tƒr*|j|kr8| |¡}n|j||d}|S©Nr)rxrêr‡rÏrÌr8)rŸrr rÏr¤r¤r¥r$Ñ s 
 
 
 zIndex._wrap_setop_resultrcCsž| |¡| |¡| |¡\}}t|j|jƒs@| |d¡\}}| |¡r~|jr`| ¡     |¡}n
|     |¡}|dkrz| 
¡}|St |ƒdks˜t |ƒdkr
|j s¤|j r¶|dd…  |¡S| |¡}t|j|ƒrüt |ƒdkrê|dd…  |¡S|dd…  |¡Stg||dS| |¡s@t|tƒr4|dd…  |¡Stg|dSt|j|jƒs„| |¡}|j|dd}|j|dd}|j||d    S|j||d    }| ||¡S)
a 
        Form the intersection of two Index objects.
 
        This returns a new Index with elements common to the index and `other`.
 
        Parameters
        ----------
        other : Index or array-like
        sort : True, False or None, default False
            Whether to sort the resulting index.
 
            * None : sort the result, except when `self` and `other` are equal
              or when the values cannot be compared.
            * False : do not sort the result.
            * True : Sort the result (which may raise TypeError).
 
        Returns
        -------
        Index
 
        Examples
        --------
        >>> idx1 = pd.Index([1, 2, 3, 4])
        >>> idx2 = pd.Index([3, 4, 5, 6])
        >>> idx1.intersection(idx2)
        Index([3, 4], dtype='int64')
        Ú intersectionTrN)r®rÏrFrßr)rrrrCr®rr"rèrŽrrÕrr rÌr!r‡Ú_should_comparerêr^rùr4Ú _intersectionÚ_wrap_intersection_result)rŸrr›r%r r®Úthisr¤r¤r¥r4Û s@
 
 
 
 
 
zIndex.intersection)rr›c    Cs|jrt|jrt|jrtt|tƒstz| |¡\}}}Wntk
rDYn0Xt|ƒrZt |¡}n|     |¡}| 
¡}t |ƒS|j ||d}t ||ƒ}|S)zL
        intersection specialized to the case with matching dtypes.
        r)rãr'rêr^rÆrorNrr.rjrrrÚ_intersection_via_get_indexerr*)    rŸrr›Z res_indexerr0Ú_Úresr rvr¤r¤r¥r6/ s(ÿþýü 
 
zIndex._intersectioncCs | ||¡Srº©r$©rŸrr r¤r¤r¥r7M szIndex._wrap_intersection_resultzIndex | MultiIndexzArrayLike | MultiIndexc    Csl| ¡}| ¡}| |¡}|dk}| | ¡d¡}|dkrFt |¡}t|tƒr\| |¡}n | |¡j}|S)z¾
        Find the intersection of two Indexes using get_indexer.
 
        Returns
        -------
        np.ndarray or ExtensionArray
            The returned array will be unique.
        rsrF)    rŽÚget_indexer_forrjr-r¼r›rêr^rú)    rŸrr›Z left_uniqueZ right_uniquer0r©Útakerr r¤r¤r¥r9Q s 
 
 
  z#Index._intersection_via_get_indexercCsª| |¡| |¡| |¡\}}| |¡r>|dd… |¡St|ƒdkrh| |¡}|dkrd| ¡S|S| |¡s| |¡}|dkrŒ| ¡S|S|j||d}|     ||¡S)aç
        Return a new Index with elements of index not in `other`.
 
        This is the set difference of two Index objects.
 
        Parameters
        ----------
        other : Index or array-like
        sort : bool or None, default None
            Whether to sort the resulting index. By default, the
            values are attempted to be sorted, but any TypeError from
            incomparable elements is caught by pandas.
 
            * None : Attempt to sort the result, but catch any TypeErrors
              from comparing incomparable elements.
            * False : Do not sort the result.
            * True : Sort the result (which may raise TypeError).
 
        Returns
        -------
        Index
 
        Examples
        --------
        >>> idx1 = pd.Index([2, 1, 3, 4])
        >>> idx2 = pd.Index([3, 4, 5, 6])
        >>> idx1.difference(idx2)
        Index([1, 2], dtype='int64')
        >>> idx1.difference(idx2, sort=False)
        Index([2, 1], dtype='int64')
        NrTr)
rrrr"rÌrrÕr5Ú _differenceÚ_wrap_difference_result)rŸrr›r%r r¤r¤r¥Ú
differenceq s"!
 
 
 
 
 
zIndex.differencecCsp| ¡}| |¡}| |dk ¡d¡}tjt |j¡|dd}t|t    ƒrV| |¡}n |j
 |¡}t ||ƒ}|S)NrsrT©Z assume_unique) rŽr>rjr-r¼Ú    setdiff1dr2Úsizerêr^rúr*)rŸrr›r8r0Z
label_diffZthe_diffr¤r¤r¥r@¯ s
 
 
zIndex._differencecCs | ||¡Srºr<r=r¤r¤r¥rA szIndex._wrap_difference_resultcCs~| |¡| |¡| |¡\}}|dkr.|}t|j|jƒsL| |d¡\}}| |¡sj|j||d |¡St|j|jƒs²|     |¡}|j
|dd}|j
|dd}|j ||d |¡S|  ¡}|  ¡}|  |¡}| |dk ¡d¡}    tjt |j¡|    dd    }
| |
¡} |dk ¡d} | | ¡} |  | ¡}t||ƒ}|jsJt|||jd
Std | ƒ} t|ƒdkrp|  ¡ |¡S| |¡SdS) aŠ
        Compute the symmetric difference of two Index objects.
 
        Parameters
        ----------
        other : Index or array-like
        result_name : str
        sort : bool or None, default None
            Whether to sort the resulting index. By default, the
            values are attempted to be sorted, but any TypeError from
            incomparable elements is caught by pandas.
 
            * None : Attempt to sort the result, but catch any TypeErrors
              from comparing incomparable elements.
            * False : Do not sort the result.
            * True : Sort the result (which may raise TypeError).
 
        Returns
        -------
        Index
 
        Notes
        -----
        ``symmetric_difference`` contains elements that appear in either
        ``idx1`` or ``idx2`` but not both. Equivalent to the Index created by
        ``idx1.difference(idx2) | idx2.difference(idx1)`` with duplicates
        dropped.
 
        Examples
        --------
        >>> idx1 = pd.Index([1, 2, 3, 4])
        >>> idx2 = pd.Index([2, 3, 4, 5])
        >>> idx1.symmetric_difference(idx2)
        Index([1, 5], dtype='int64')
        NÚsymmetric_differencerFrßrsrTrC©rÏr®r„)rrrrCr®rr5rrÌr!rùrFrŽr>rjr-r¼rDr2rEr•r*r r‡rrÚremove_unused_levelsrÈ)rŸrr%r›Zresult_name_updater®r8Úthatr0Zcommon_indexerÚ left_indexerZ    left_diffÚ right_indexerZ
right_diffrvr r¤r¤r¥rFÆ sD$
 
 
 
 
 
ÿ
 
 
 
 
zIndex.symmetric_differencecCst|ƒstdƒ‚dS)Nz!Input must be Index or array-likeT)rMror<r¤r¤r¥rszIndex._assert_can_do_setopztuple[Index, Hashable]cCs2t|tƒs t||jd}|j}n
t||ƒ}||fSr3)rêr‡rÏrx)rŸrr%r¤r¤r¥rs
 
 
zIndex._convert_can_do_setopc
Csh| |¡}z|j |¡WStk
rD}zt|ƒ|‚W5d}~XYn tk
rb| |¡‚YnXdS)a
        Get integer location, slice or boolean mask for requested label.
 
        Parameters
        ----------
        key : label
 
        Returns
        -------
        int if unique index, slice if monotonic index, else mask
 
        Examples
        --------
        >>> unique_index = pd.Index(list('abc'))
        >>> unique_index.get_loc('b')
        1
 
        >>> monotonic_index = pd.Index(list('abbc'))
        >>> monotonic_index.get_loc('b')
        slice(1, 3, None)
 
        >>> non_monotonic_index = pd.Index(list('abcb'))
        >>> non_monotonic_index.get_loc('b')
        array([False,  True, False,  True])
        N)Ú_maybe_cast_indexerr>Úget_locrBroÚ_check_indexing_error)rŸÚkeyZ
casted_keyrr¤r¤r¥rM(s
 
z Index.get_locaM
        Compute indexer and mask for new index given the current index.
 
        The indexer should be then used as an input to ndarray.take to align the
        current data to the new index.
 
        Parameters
        ----------
        target : %(target_klass)s
        method : {None, 'pad'/'ffill', 'backfill'/'bfill', 'nearest'}, optional
            * default: exact matches only.
            * pad / ffill: find the PREVIOUS index value if no exact match.
            * backfill / bfill: use NEXT index value if no exact match
            * nearest: use the NEAREST index value if no exact match. Tied
              distances are broken by preferring the larger index value.
        limit : int, optional
            Maximum number of consecutive labels in ``target`` to match for
            inexact matches.
        tolerance : optional
            Maximum distance between original and new labels for inexact
            matches. The values of the index at the matching locations must
            satisfy the equation ``abs(index[indexer] - target) <= tolerance``.
 
            Tolerance may be a scalar value, which applies the same tolerance
            to all values, or list-like, which applies variable tolerance per
            element. List-like includes list, tuple, array, Series, and must be
            the same size as the index and its dtype must exactly match the
            index's type.
 
        Returns
        -------
        np.ndarray[np.intp]
            Integers from 0 to n - 1 indicating that the index at these
            positions matches the corresponding target values. Missing values
            in the target are marked by -1.
        %(raises_section)s
        Notes
        -----
        Returns -1 for unmatched values, for further explanation see the
        example below.
 
        Examples
        --------
        >>> index = pd.Index(['c', 'a', 'b'])
        >>> index.get_indexer(['a', 'b', 'x'])
        array([ 1,  2, -1])
 
        Notice that the return value is an array of locations in ``index``
        and ``x`` is marked by -1, as it is not in ``index``.
        r,z str_t | Nonez
int | None)rSÚlimitr•cCst|ƒ}|}| |¡}| |||¡|js4t|jƒ‚t|ƒdkrPtjgtj    dS| 
|¡st|  |¡st|j ||ddSt |jƒràt|j|jƒst‚|j |j¡}|jrÜ|jrÜt|ƒ}| tj¡}| ¡}    |||<d||    |@<|St |jƒrF| |j¡}
tj|
|jdd}|js>|jr>|jr>| tj¡}| ¡}    |||    <t|ƒS| |¡\} } | |k    sh| |k    rz| j| |||dSt|j|jƒrª| |¡rªtjt|ƒtj    dSt|j|jƒsþ|  |¡sþ|  |¡} |j!| dd    }|j!| dd    }|j"||||dS| "||||¡S)
NrrçT©rSrŽrs)rm©rSrPÚ    toleranceFrß)#rwÚ_maybe_cast_listlike_indexerÚ_check_indexing_methodr+r.Ú_requires_unique_msgrr¼rÚintpr5Ú_should_partial_indexÚ_get_indexer_non_comparablerBr®rCrr>r,r¬rrerMràr’rZtake_ndr r?Ú_maybe_promoter"r2r!rùÚ _get_indexer)rŸÚtargetrSrPrSZ orig_targetr0Z target_nansÚlocr©Zcategories_indexerÚpselfÚptargetr®r8r¤r¤r¥r,ƒsl    
 
 
     ÿÿþ
ÿzIndex.get_indexer)r\rSrPr•cCs€|dk    r| ||¡}|dkr.| ||||¡}nJ|dkrF| |||¡}n2|jrd|jrd|j}| |¡}n| ¡}|j |¡}t|ƒS)N©ÚpadÚbackfillÚnearest)    Ú_convert_toleranceÚ_get_fill_indexerÚ_get_nearest_indexerr r>Ú_extract_level_codesr@r,r?)rŸr\rSrPrSr0ÚengineÚ
tgt_valuesr¤r¤r¥r[Ûs  ÿ zIndex._get_indexer)r\r•cCs t|jƒrt|jƒrdSdSdS)z>
        Should we attempt partial-matching indexing?
        FT)rKr®©rŸr\r¤r¤r¥rXøs
 
 
zIndex._should_partial_indexcCs |dkrtdƒ‚|jr>|dkr&tdƒ‚|dkr>|dk    r>tdƒ‚t|jƒsRt|jƒrt|dk    rttd|›d    t|ƒj›ƒ‚|dkrœ|dk    rŒtd
ƒ‚|dk    rœtd ƒ‚dS) zY
        Raise if we have a get_indexer `method` that is not supported or valid.
        )NZbfillrbraZffillrczInvalid fill methodrczJmethod='nearest' not implemented yet for MultiIndex; see GitHub issue 9365r`Nz,tolerance not implemented yet for MultiIndexzmethod z not yet implemented for zJtolerance argument only valid if doing pad, backfill or nearest reindexingzFlimit argument only valid if doing pad, backfill or nearest reindexing)r    r rrKr®rBrrg)rŸrSrPrSr¤r¤r¥rUs4
ÿÿÿÿÿzIndex._check_indexing_methodznp.ndarray | IndexcCs”t |¡}|j|jkr*|jdkr*tdƒ‚nft|ƒrt |jtj¡s|jdkrjtdt    |ƒj
›d|j›dƒ‚tdt    |ƒj
›d|j›dt |ƒ›ƒ‚|S)Nr¸z5list-like tolerance size must match target index sizerztolerance argument for z  with dtype z1 must contain numeric elements if it is list typez$ must be numeric if it is a scalar: ) r¼rrEr    rNZ
issubdtyper®ÚnumberrrrgÚrepr)rŸrSr\r¤r¤r¥rd6s
 
 
ÿ ÿzIndex._convert_tolerancec    
Csà|jrL|j}t ¡2tjdtd|j|j|j||dW5QR£SQRX|jr°|jr°|     ¡}|     ¡}t
|t j ƒr€t
|t j ƒs„t ‚|dkržtj|||d}q¾tj|||d}n| |||¡}|dk    rÜt|ƒrÜ| |||¡}|S)NÚignore)Úcategory)r\rrSrPra©rP)r r>rìÚcatch_warningsÚfilterwarningsÚRuntimeWarningZget_indexer_with_fillrúrãr@rêr¼r½rÚlibalgosrarbÚ_get_fill_indexer_searchsortedrÚ_filter_indexer_tolerance)    rŸr\rSrPrSrhrHÚ
own_valuesr0r¤r¤r¥reHs2
ü ÿzIndex._get_fill_indexercCs€|dk    rtdt|ƒ›dƒ‚|dkr(dnd}| |¡}|dk}| |||¡||<|dkrl||d8<nd||t|ƒk<|S)    z‚
        Fallback pad/backfill get_indexer that works for monotonic decreasing
        indexes and non-monotonic targets.
        Nzlimit argument for z; method only well-defined if index and target are monotonicrar–rrsr¸)r    rlr,Ú_searchsorted_monotonicr)rŸr\rSrPÚsider0Znonexactr¤r¤r¥rtnsÿ
z$Index._get_fill_indexer_searchsorted)r\rPr•c
Cs”t|ƒs| |d¡S|j|d|d}|j|d|d}| ||¡}| ||¡}|jrXtjntj}t     |||ƒ|dkB||¡}    |dk    r| 
||    |¡}    |    S)z³
        Get the indexer for the nearest index labels; requires an index with
        values that can be subtracted from each other (e.g., not strings or
        tuples).
        rarorbrsN) rrer,Ú_difference_compatrãÚoperatorÚltÚler¼Úwhereru)
rŸr\rPrSrJrKZleft_distancesZright_distancesÚopr0r¤r¤r¥rfs"       ÿù    zIndex._get_nearest_indexer)r\r0r•cCs| ||¡}t ||k|d¡S)Nrs)ryr¼r})rŸr\r0rSZdistancer¤r¤r¥ru°s zIndex._filter_indexer_tolerancecCsNt|jtƒr6td|jƒj}td|jƒj}|||}n|j||j}t|ƒS)Nr†)rêr®r[rrÊrGrúÚabs)rŸr\r0rvrHZdiffr¤r¤r¥ry»s  zIndex._difference_compatÚslice)rOr•cCs4| d|jd¡| d|jd¡| d|jd¡dS)zz
        For positional indexing, a slice must have either int or None
        for each of start, stop, and step.
        Ú
positionalÚilocN)Ú_validate_indexerrÞÚstopÚstep©rŸrOr¤r¤r¥Ú_validate_positional_sliceÐsz Index._validate_positional_slice)rOrûc CsZ|dkst|ƒ‚|j|j|j}}}t|jtjƒrLt|jƒrL| |||¡Sdd„}||ƒoj||ƒoj||ƒ}|j    pzt
|jƒ}|o‚|}    |dkrÎt |jƒsš|rÎ|  d|jd¡|  d|jd¡|  d|jd¡|S|    rz,|dk    rè|  |¡|dk    rú|  |¡d}    Wntk
rYnXt |¡r*|}
n,|    rH|dkrBtd    ƒ‚|}
n| |||¡}
|
S)
a(
        Convert a slice indexer.
 
        By definition, these are labels unless 'iloc' is passed in.
        Floats are not allowed as the start, step, or stop of the slice.
 
        Parameters
        ----------
        key : label of the slice bound
        kind : {'loc', 'getitem'}
        )r]ÚgetitemcSs|dkpt|ƒSrº)rI)rr¤r¤r¥Úis_intósz,Index._convert_slice_indexer.<locals>.is_intrˆr€NFr]zjSlicing a positional slice with .loc is not allowed, Use .loc with labels or .iloc with positions instead.)rrÞr„r…rêr®r¼rGÚ slice_indexerÚ_should_fallback_to_positionalrKrJrƒrMrBrüZ is_null_slicero) rŸrOrûrÞr„r…r‰Zis_index_sliceZints_are_positionalZ is_positionalr0r¤r¤r¥Ú_convert_slice_indexerÚsF ÿ
 
 
ÿzIndex._convert_slice_indexerz lib.NoDefault | None | Exception)ÚformÚreraiser•c    CsHd|›dt|ƒj›d|›dt|ƒj›}|tjk    r<t|ƒ|‚t|ƒ‚dS)z;
        Raise consistent invalid indexer message.
        z
cannot do z  indexing on z with these indexers [z
] of type N)rrgrrro)rŸrrOrŽr*r¤r¤r¥Ú_raise_invalid_indexer's
&ÿ
 
zIndex._raise_invalid_indexer)r0r•cCs|jst|ƒrtdƒ‚dS)zé
        Check if we are allowing reindexing with this particular indexer.
 
        Parameters
        ----------
        indexer : an integer ndarray
 
        Raises
        ------
        ValueError if its a duplicate axis
        ú/cannot reindex on an axis with duplicate labelsN)r+rr    )rŸr0r¤r¤r¥Ú_validate_can_reindex<szIndex._validate_can_reindexz)tuple[Index, npt.NDArray[np.intp] | None]c
Cst|dƒ }t|ƒ}t|tƒsVt|ƒdkrV|dk    rD|jrD|j|}n|}|dd…}nt|ƒ}|dk    r¨t|tƒszt|tƒr¨|dk    rŠt    dƒ‚|j
||d|j d\}}}    nX|  |¡r¸d}nH|j rÒ|j ||||d}n.|jrâtdƒ‚n|jsòtd    ƒ‚n| |¡\}}    | |||¡}||fS)
aè
        Create index with target's values.
 
        Parameters
        ----------
        target : an iterable
        method : {None, 'pad'/'ffill', 'backfill'/'bfill', 'nearest'}, optional
            * default: exact matches only.
            * pad / ffill: find the PREVIOUS index value if no exact match.
            * backfill / bfill: use NEXT index value if no exact match
            * nearest: use the NEAREST index value if no exact match. Tied
              distances are broken by preferring the larger index value.
        level : int, optional
            Level of multiindex.
        limit : int, optional
            Maximum number of consecutive labels in ``target`` to match for
            inexact matches.
        tolerance : int or float, optional
            Maximum distance between original and new labels for inexact
            matches. The values of the index at the matching locations must
            satisfy the equation ``abs(index[indexer] - target) <= tolerance``.
 
            Tolerance may be a scalar value, which applies the same tolerance
            to all values, or list-like, which applies variable tolerance per
            element. List-like includes list, tuple, array, Series, and must be
            the same size as the index and its dtype must exactly match the
            index's type.
 
        Returns
        -------
        new_index : pd.Index
            Resulting index.
        indexer : np.ndarray[np.intp] or None
            Indices of output values in original index.
 
        Raises
        ------
        TypeError
            If ``method`` passed along with ``level``.
        ValueError
            If non-unique multi-index
        ValueError
            If non-unique index and ``method`` or ``limit`` passed.
 
        See Also
        --------
        Series.reindex : Conform Series to new index with optional filling logic.
        DataFrame.reindex : Conform DataFrame to new index with optional filling logic.
 
        Examples
        --------
        >>> idx = pd.Index(['car', 'bike', 'train', 'tractor'])
        >>> idx
        Index(['car', 'bike', 'train', 'tractor'], dtype='object')
        >>> idx.reindex(['car', 'bike'])
        (Index(['car', 'bike'], dtype='object'), array([0, 1]))
        rÏrNz)Fill method not supported if level passedr)r˜Ú
keep_orderrRz'cannot handle a non-unique multi-index!r)rÚensure_has_lenrêr‡rr rÞÚ ensure_indexr^roÚ _join_levelr"r+r,r    r(r/Ú_wrap_reindex_result)
rŸr\rSr™rPrSÚpreserve_namesrÊr0r:r¤r¤r¥ÚreindexMsJ>  ÿÿÿ
ÿ
 
z Index.reindex)r—cCs| ||¡}|Srº)Ú_maybe_preserve_names)rŸr\r0r—r¤r¤r¥r–¹s zIndex._wrap_reindex_result)r\r—cCs2|r.|jdkr.|j|jkr.|jdd}|j|_|S)Nr¸Fr{)r4rÏrÛ)rŸr\r—r¤r¤r¥r™½s zIndex._maybe_preserve_namesz?tuple[Index, npt.NDArray[np.intp], npt.NDArray[np.intp] | None]c CsŠt|ƒ}t|ƒdkr2|dd…tjgtjddfS| |¡\}}|dk}| ||¡}d}t|ƒrPtjt|ƒtjd}t|ƒ}| |¡}||}    | ||¡j    }
||} tj
t|ƒft d}|
|| <|||    <t|ƒsêtjdtjd}nf|j r"tjt|ƒtjd}t t|
ƒ¡|| <d||    <n.d||<tjt| |¡ƒtjd}d||<t |tƒslt||jd} nt|ƒj||jd} | ||fS)aÓ
        Create a new index with target's values (move/add/delete values as
        necessary) use with non-unique Index and a possibly non-unique target.
 
        Parameters
        ----------
        target : an iterable
 
        Returns
        -------
        new_index : pd.Index
            Resulting index.
        indexer : np.ndarray[np.intp]
            Indices of output values in original index.
        new_indexer : np.ndarray[np.intp] or None
 
        rNrçrsrrð)r”rr¼rrWr/rjr2r?rrr’r(rêr^r‡rÏrrrñ) rŸr\r0r1ÚcheckZ
new_labelsÚ new_indexerr”Zmissing_labelsZmissing_indexerZ
cur_labelsZ cur_indexerryr¤r¤r¥Ú_reindex_non_uniqueÃs< 
 
 
 
 
 
 zIndex._reindex_non_uniqueržr(r)zFtuple[Index, npt.NDArray[np.intp] | None, npt.NDArray[np.intp] | None])rr˜r™ršr›r•cCsdSrºr¤©rŸrr˜r™ršr›r¤r¤r¥r¦s
z
Index.joinr—cCsdSrºr¤rr¤r¤r¥r¦s
zNIndex | tuple[Index, npt.NDArray[np.intp] | None, npt.NDArray[np.intp] | None]cCsdSrºr¤rr¤r¤r¥r¦&s
r–cCst|ƒ}t|tƒr8t|tƒr8|jdk|jdkAr8tdƒ‚|jsv|jsv| |¡\}}||k    sb||k    rv|j|||d|dS|dkr¦|jsŠ|jr¦|j|jkr˜n|j    ||dS|dk    rÊ|jsº|jrÊ|j
|||dSt |ƒdkr0|dkr
|  ¡}t  t  d¡t |ƒ¡}    |d|    fS|d    kr0|  ¡}t  g¡}
||
dfSt |ƒdkr–|d
krp|  ¡}t  t  d¡t |ƒ¡}
||
dfS|d kr–|  ¡}t  g¡}    |d|    fS|j|jkræd d dœ} |  ||¡}|j|||dd\}} } | | } } || | fSt|j|jƒs,| |¡}|j|dd}|j|dd}|j||ddSt|ƒ|jsR|jsR|j||dS|jrb|jsž|jrŽ|jrŽt|jƒsœ|j||dSn|j||dSnX|jrö|jrö|jröt|tƒsöt|jƒsöz|j||dWStk
rôYnX|  |||¡S)a@
        Compute join_index and indexers to conform data structures to the new index.
 
        Parameters
        ----------
        other : Index
        how : {'left', 'right', 'inner', 'outer'}
        level : int or level name, default None
        return_indexers : bool, default False
        sort : bool, default False
            Sort the join keys lexicographically in the result Index. If False,
            the order of the join keys depends on the join type (how keyword).
 
        Returns
        -------
        join_index, (left_indexer, right_indexer)
        Nz0Cannot join tz-naive with tz-aware DatetimeIndexTr—©r˜r)r–Úouterrs)rÚinnerÚcross)rrŸ)r–r r¡r–r©rr–)r˜r™ršFrß©r˜rš)!r”rêr]rror rZr¦rñÚ _join_multir•rr:r¼Z broadcast_torWrÚ_join_precedencer×rCr®r!rùÚ_validate_join_methodr(Ú_join_non_uniquerãrKÚ_join_monotonicr'r^rBÚ_join_via_get_indexer)rŸrr˜r™ršr›r^Zpotherr ÚrindexerÚlindexerÚflipr¡r¢r®r8r¤r¤r¥r¦2sš ÿ     
 
 
 
 
 
 
 
 
 
 
 ÿ 
 
 
 þýüûú
)rr˜r›r•cCsŒ|dkr|}n8|dkr|}n*|dkr4|j|dd}n|dkrF| |¡}|rR| ¡}||kr`d}n
| |¡}||krxd}n
| |¡}|||fS)Nr–rr FrrŸ)r4rrÕr>)rŸrr˜r›r r«rªr¤r¤r¥r©¯s"    
 
 
zIndex._join_via_get_indexer)rr˜cCs¦ddlm}ddlm}ttj|jŽƒ}ttj|jŽƒ}|j}|j}t    |ƒ}    t    |ƒ}
|    |
@} | sht
dƒ‚t ||ƒr*t ||ƒr*t |    | |d} t |
| |d} t | | ƒs¾|}| |j¡}n| | ¡}| | ¡}|j||dd\}}}| | }|||||||ƒ\}}}||||dd    }| ¡}|||fSt| ƒd}d}t ||ƒrj||}}d}d
d d œ}| ||¡}|j |¡}|j|||d }|r¢|d|d|dfS|S)Nrrï)Ú restore_dropped_levels_multijoinz+cannot join with no overlapping index names©rOTr£FrÝr–rr¢ržrYr¸)rr„Úpandas.core.reshape.merger­rrüZnot_nonerñrr(r    rêrÙrZreorder_levelsrÜr¦rHr×r•)rŸrr˜r„r­Zself_names_listZother_names_listZself_names_orderZother_names_orderZ
self_namesZ other_namesÚoverlapZ ldrop_namesZ rdrop_namesZ self_jnlevelsZother_jnlevelsÚjoin_idxr¡r¢Z dropped_namesrÞr¬rñZmulti_join_idxZjlÚ
flip_orderr¬r™r r¤r¤r¥r¤Òsj   
 
ÿ ú
 
ÿ
 
 
  zIndex._join_multiz8tuple[Index, npt.NDArray[np.intp], npt.NDArray[np.intp]])rr˜r•c
Csjddlm}|j|jkst‚||jg|jg|dd\}}|dk}| |¡}| |¡}| ||¡}    |    ||fS)Nr)Úget_join_indexersT)r˜r›rs)r¯r³r®rrúrjrß)
rŸrr˜r³Zleft_idxZ    right_idxr©r±rr r¤r¤r¥r§$s ÿ
 
 
 zIndex._join_non_uniquezKtuple[MultiIndex, npt.NDArray[np.intp] | None, npt.NDArray[np.intp] | None])rr˜r’r•csðddlm}dddœdd„}t||ƒr8t||ƒr8tdƒ‚||}}t||ƒ }    |    rr||}}d    d
d œ}
|
 ||¡}t||ƒs€t‚| |¡}|j|} |js¢t    d ƒ‚| j
||d d\} } }| dkrþ|sÒt |ƒdkrÜd‰|}n||j d|d…ƒ‰|ˆ}n†t | ƒ} t | t | ƒ¡}|j |}||dk}| |¡}t|j ƒ}|||<t|jƒ}| ||<|r®tjt |ƒtjd‰ttjˆƒ‰|dk‰ˆ ¡sr‡fdd„|Dƒ}ˆˆ‰nÄ|dkrt |ƒdkrÊdn| ¡}d|}t ||¡\‰}ˆ|dd…‰‡fdd„|Dƒ}nd|dk‰ˆ ¡}|s6‡fdd„|Dƒ}||d|d…ƒ‰‡fdd„|Dƒ}|srˆ ¡dˆ‰||||jdd}|dk    r | |j |¡}n
|j |}|    rº|ˆ‰}ˆdkrÈdnt ˆƒ‰|dkrÞdnt |ƒ}|ˆ|fS)ai
        The join method *only* affects the level of the resulting
        MultiIndex. Otherwise it just exactly aligns the Index data to the
        labels of the level in the MultiIndex.
 
        If ```keep_order == True```, the order of the data indexed by the
        MultiIndex will not be changed; otherwise, it will tie out
        with `other`.
        rrïzlist[np.ndarray]r¹)r«r•cSsÀ|djdkrtjdtjdSt|ƒdkr:tt|dƒƒS|ddd…|ddd…k}|dd…D] }||dd…|dd…kO}qft dg|dgf¡ ¡d}t    |dƒ}t
  |t|ƒ¡S)aj
            Returns sorter for the inner most level while preserving the
            order of higher levels.
 
            Parameters
            ----------
            labels : list[np.ndarray]
                Each ndarray has signed integer dtype, not necessarily identical.
 
            Returns
            -------
            np.ndarray[np.intp]
            rrçr¸NrsT) rEr¼rrWrr{r?Zhstackr-r=rZget_level_sorter)r«ZticÚlabZstartsr¤r¤r¥Ú_get_leaf_sorterFs   z+Index._join_level.<locals>._get_leaf_sorterz9Join on level between two MultiIndex objects is ambiguousr–rr¢z8Index._join_level on non-unique index is not implementedTr£Nr¸rsrçcsg|] }|ˆ‘qSr¤r¤©rìr´©r©r¤r¥rX˜sz%Index._join_level.<locals>.<listcomp>csg|] }|ˆ‘qSr¤r¤r¶©rJr¤r¥rX¥scsg|] }|ˆ‘qSr¤r¤r¶r·r¤r¥rX«scsg|] }|ˆ‘qSr¤r¤r¶r¸r¤r¥rX®sFrÝ)rr„rêror×rrÒrÞr(rr¦rr¬r?rZget_reverse_indexerrjrr¼r2rWrr½rÚmaxrsZgroupsort_indexerr-rñ)rŸrr™r˜r’r„rµr–rr²r¬Z    old_levelZ    new_levelZleft_lev_indexerZright_lev_indexerr Z rev_indexerZ    old_codesr?Z new_lev_codesrâráZ max_new_levZngroupsÚcountsZmask_allrKr¤)rJr©r¥r•7sš 
 
 
 
 
ÿÿ 
 
 
 
 
 
 
 
ÿü
 
 
ÿÿzIndex._join_levelcCsš|j|jkst‚| |¡r4|dkr&|n|}|ddfS|jrÌ|jrÌ|dkr\|}d}| |¡}nn|dkrx|}| |¡}d}nR|dkr¢| |¡\}}}| ||||¡}n(|dkrÊ| |¡\}}}| ||||¡}n˜|dkræ| |¡\}}}nR|dkr| |¡\}}}n6|dkr| |¡\}}}n|dkr8| |¡\}}}|dk    sFt‚|dk    sTt‚| ||||¡}|dkrrdnt    |ƒ}|dkrˆdnt    |ƒ}|||fS)Nrr–r rŸ)
r®rr"r(rÁrÆÚ_wrap_joined_indexrÇrÅr?)rŸrr˜Z    ret_indexr r¡r¢Z
join_arrayr¤r¤r¥r¨ÌsB
 
 
 
 
 
zIndex._join_monotonic)rŸrÄrr¡r¢r•c
Cs„|j|jkst‚t|tƒrb|j|jkr,|jnd}|dk}| |¡}| |¡}| ||¡}    |     |¡St||ƒ}|j    j
|||jdSdS)NrsrG) r®rrêr^rñrjrßrÈrxr%r$)
rŸrÄrr¡r¢rÏr©r±rr r¤r¤r¥r»s
 
 
 
 
zIndex._wrap_joined_indexcCs>t|ƒtkr2t|jtjƒp0t|jtƒp0t|jtƒSt    |jƒ S)zJ
        Whether we can use the fastpaths implement in _libs.join
        )
rr‡rêr®r¼rrlrúrkrKrÔr¤r¤r¥r's 
ÿ
ýzIndex._can_use_libjoincCs|jS)a
        Return an array representing the data in the Index.
 
        .. warning::
 
           We recommend using :attr:`Index.array` or
           :meth:`Index.to_numpy`, depending on whether you need
           a reference to the underlying data or a NumPy array.
 
        Returns
        -------
        array: numpy.ndarray or ExtensionArray
 
        See Also
        --------
        Index.array : Reference to the underlying data.
        Index.to_numpy : A NumPy array representing the underlying data.
        ©rÊrÔr¤r¤r¥r(sz Index.valuesrncCs*|j}t|tjƒr&ddlm}||ƒ}|S)Nr)Ú PandasArray)rÊrêr¼r½Zpandas.core.arrays.numpy_r½)rŸrr½r¤r¤r¥r>s
  z Index.arraycCs|jS)a
 
        The best array representation.
 
        This is an ndarray or ExtensionArray.
 
        ``_values`` are consistent between ``Series`` and ``Index``.
 
        It may differ from the public '.values' method.
 
        index             | values          | _values       |
        ----------------- | --------------- | ------------- |
        Index             | ndarray         | ndarray       |
        CategoricalIndex  | Categorical     | Categorical   |
        DatetimeIndex     | ndarray[M8ns]   | DatetimeArray |
        DatetimeIndex[tz] | ndarray[M8ns]   | DatetimeArray |
        PeriodIndex       | ndarray[object] | PeriodArray   |
        IntervalIndex     | IntervalArray   | IntervalArray |
 
        See Also
        --------
        values : Values
        r¼rÔr¤r¤r¥rúHsz Index._valuescCsl|j}t|tƒr|jSt|ƒtkrht|jtƒrht|jtƒsht|jtƒr\t    |j
ƒr\|j
j dksh|j  t ¡S|S)zl
        Get the ndarray or ExtensionArray that we can pass to the IndexEngine
        constructor.
        r)rúrêrorGrr‡rnrlrkrNr®rûrùr’)rŸÚvalsr¤r¤r¥r@bs"
 
ÿ
þ
ý
ûú
ø zIndex._get_engine_targetcCs2t|jtƒr|jjSt|jtƒr*|j ¡S| ¡S)zc
        Get the ndarray or ExtensionArray that we can pass to the join
        functions.
        )rêrúrlrÊrkÚto_numpyr@rÔr¤r¤r¥r»zs
 
zIndex._get_join_target)r r•cCsJt|jtƒr*t|jƒ|tj|jtjdƒSt|jtƒrFt|jƒ     |¡S|S)z{
        Cast the ndarray returned from one of the libjoin.foo_indexer functions
        back to type(self)._data.
        rç)
rêrrlrr¼rÚshaperrkrhr9r¤r¤r¥rˆs
  zIndex._from_join_targetcCs"|j|d}||jj|d7}|S)Nr{)Ú _memory_usager>Úsizeof)rŸrwr r¤r¤r¥Ú memory_usage“s zIndex.memory_usagecCs.t|tƒrtdƒ‚tj|td}| ||¡S)aº
        Replace values where the condition is False.
 
        The replacement is taken from other.
 
        Parameters
        ----------
        cond : bool array-like with the same length as self
            Condition to select the values on.
        other : scalar, or array-like, default None
            Replacement if the condition is False.
 
        Returns
        -------
        pandas.Index
            A copy of self with values replaced from other
            where the condition is False.
 
        See Also
        --------
        Series.where : Same method for Series.
        DataFrame.where : Same method for DataFrame.
 
        Examples
        --------
        >>> idx = pd.Index(['car', 'bike', 'train', 'tractor'])
        >>> idx
        Index(['car', 'bike', 'train', 'tractor'], dtype='object')
        >>> idx.where(idx.isin(['car', 'train']), 'other')
        Index(['car', 'other', 'train', 'other'], dtype='object')
        z1.where is not supported for MultiIndex operationsrç)rêr^rr¼rrœrß)rŸZcondrr¤r¤r¥r}›s !
ÿz Index.wherecCst|j›dt|ƒ›dƒ‚dS)Nz5(...) must be called with a collection of some kind, z  was passed)rorgrl)r³r¯r¤r¤r¥rÿÄsÿzIndex._raise_scalar_data_errorc
Csh|j}t|tjƒrT|jdkrTz t||ƒWStk
rP}z
t|‚W5d}~XYqdXnt|j|ƒsdt‚|S)a
        Check if the value can be inserted into our array without casting,
        and convert it to an appropriate native type if necessary.
 
        Raises
        ------
        TypeError
            If the value cannot be inserted into an array of this dtype.
        rN)    r®rêr¼rûr<r6ror7rú)rŸr¸r®rr¤r¤r¥Ú_validate_fill_valueÎs
  zIndex._validate_fill_valuecCs t|ƒstdt|ƒj›ƒ‚|S)z
        Check that this is a scalar value that we can use for setitem-like
        operations without changing dtype.
        z"'value' must be a scalar, passed: )rProrrgrºr¤r¤r¥räszIndex._require_scalarcCs
t|jƒS)zH
        Return a boolean if we need a qualified .info display.
        )rOr®rÔr¤r¤r¥Ú_is_memory_usage_qualifiedîsz Index._is_memory_usage_qualifiedrc
Cs6t|ƒz ||jkWStttfk
r0YdSXdS)aô
        Return a boolean indicating whether the provided key is in the index.
 
        Parameters
        ----------
        key : label
            The key to check if it is present in the index.
 
        Returns
        -------
        bool
            Whether the key search is in the index.
 
        Raises
        ------
        TypeError
            If the key is not hashable.
 
        See Also
        --------
        Index.isin : Returns an ndarray of boolean dtype indicating whether the
            list-like key is in the index.
 
        Examples
        --------
        >>> idx = pd.Index([1, 2, 3, 4])
        >>> idx
        Index([1, 2, 3, 4], dtype='int64')
 
        >>> 2 in idx
        True
        >>> 6 in idx
        False
        FN)Úhashr>Ú OverflowErrorror    r†r¤r¤r¥Ú __contains__ôs
# zIndex.__contains__zClassVar[None]Ú__hash__cCs tdƒ‚dS)Nz)Index does not support mutable operations©ro)rŸrOr¸r¤r¤r¥Ú __setitem__"szIndex.__setitem__cCs¸|jj}t|ƒst|ƒr*t |¡}||ƒSt|tƒrT||ƒ}t|ƒj    ||j
|j dSt  |¡rŒt t|ddƒƒr~|jtdd}ntj|td}||ƒ}|jdkr¦t|ƒ|jj    ||j
dS)    aA
        Override numpy.ndarray's __getitem__ method to work as desired.
 
        This function adds lists and Series as valid boolean indexers
        (ndarrays only supports ndarray with dtype=bool).
 
        If resulting ndim != 1, plain ndarray is returned instead of
        corresponding `Index` subclass.
 
        r7r®NF)r®rrçr¸r)rÊÚ __getitem__rIrFrüZcast_scalar_indexerrêr€rr rÍr÷Zis_bool_indexerrErör¿rœr¼rrrur%)rŸrOrˆr r¤r¤r¥rÌ&s& 
 
ÿ
 
zIndex.__getitem__)rŸÚslobjr•cCs"|j|}t|ƒj||j|jdS)zH
        Fastpath for __getitem__ when we know we have a slice.
        r7)rÊrr rÍr÷)rŸrÍr;r¤r¤r¥Ú_getitem_sliceTs
zIndex._getitem_slicecCs*t|jƒst|jƒst|jƒr&||kSdS)a]
        Faster check for ``name in self`` when we know `name` is a Python
        identifier (e.g. in NDFrame.__getattr__, which hits this to support
        . key lookup). For indexes that can't hold identifiers (everything
        but object & categorical) we just return False.
 
        https://github.com/pandas-dev/pandas/issues/19764
        F)rOr®rRrB)rŸrÏr¤r¤r¥Ú$_can_hold_identifiers_and_holds_name[s ÿþýz*Index._can_hold_identifiers_and_holds_namezIndex | Sequence[Index]cCsx|g}t|ttfƒr"|t|ƒ7}n
| |¡|D]}t|tƒs0tdƒ‚q0dd„|Dƒ}t|ƒdkrfdn|j}| ||¡S)zÅ
        Append a collection of Index options together.
 
        Parameters
        ----------
        other : Index or list/tuple of indices
 
        Returns
        -------
        Index
        zall inputs must be IndexcSsh|]
}|j’qSr¤r)rìÚobjr¤r¤r¥rK†szIndex.append.<locals>.<setcomp>r¸N)    rêrrër•r‡rorrÏÚ_concat)rŸrÚ    to_concatrÐrñrÏr¤r¤r¥r•ms 
 
 
z Index.appendz list[Index])rÒrÏr•cCs$dd„|Dƒ}t|ƒ}tj||dS)z5
        Concatenate multiple Index objects.
        cSsg|]
}|j‘qSr¤rUrVr¤r¤r¥rXsz!Index._concat.<locals>.<listcomp>r)rVr‡r$)rŸrÒrÏZto_concat_valsr r¤r¤r¥rÑ‹sz Index._concatc
Csèt|j|ƒ\}}|r| ¡S|jtkr8t||jƒr8|j}z| |¡}WnTtt    t
fk
rš}z0t |ƒrj|‚|  |¡}|  |¡ ||¡WY¢Sd}~XYnX|j ¡}t|tjƒrÒt|| ¡|ƒ}t |||¡n | ||¡| |¡S)a
        Return a new Index of the values set with the mask.
 
        Returns
        -------
        Index
 
        See Also
        --------
        numpy.ndarray.putmask : Changes elements of an array
            based on conditional and input values.
        N)rjrúrÛr®r’rdrqrÄr6r    rorOr!rùrßrêr¼r½riÚsumZ_putmaskr8)rŸr©r¸ZnoopZ    convertedrr®rr¤r¤r¥rß•s$ 
(
  z Index.putmaskcCs¦| |¡rdSt|tƒsdSt|jƒr:t|jƒs:| |¡St|tƒrN| |¡St|jtƒr„t|t    |ƒƒsldSt
t|j ƒ}| |j ¡St |jƒr˜| |¡St |j|jƒS)a
        Determine if two Index object are equal.
 
        The things that are being compared are:
 
        * The elements inside the Index object.
        * The order of the elements inside the Index object.
 
        Parameters
        ----------
        other : Any
            The other object to compare against.
 
        Returns
        -------
        bool
            True if "other" is an Index and it has the same elements and order
            as the calling index; False otherwise.
 
        Examples
        --------
        >>> idx1 = pd.Index([1, 2, 3])
        >>> idx1
        Index([1, 2, 3], dtype='int64')
        >>> idx1.equals(pd.Index([1, 2, 3]))
        True
 
        The elements inside are compared
 
        >>> idx2 = pd.Index(["1", "2", "3"])
        >>> idx2
        Index(['1', '2', '3'], dtype='object')
 
        >>> idx1.equals(idx2)
        False
 
        The order is compared
 
        >>> ascending_idx = pd.Index([1, 2, 3])
        >>> ascending_idx
        Index([1, 2, 3], dtype='int64')
        >>> descending_idx = pd.Index([3, 2, 1])
        >>> descending_idx
        Index([3, 2, 1], dtype='int64')
        >>> ascending_idx.equals(descending_idx)
        False
 
        The dtype is *not* compared
 
        >>> int64_idx = pd.Index([1, 2, 3], dtype='int64')
        >>> int64_idx
        Index([1, 2, 3], dtype='int64')
        >>> uint64_idx = pd.Index([1, 2, 3], dtype='uint64')
        >>> uint64_idx
        Index([1, 2, 3], dtype='uint64')
        >>> int64_idx.equals(uint64_idx)
        True
        TF)r=rêr‡rOr®r"r^rúrnrrrÊrErc)rŸrZearrr¤r¤r¥r"Ás ;
 
 
 
 
 
 
z Index.equalscs@ˆ ˆ¡o>t‡‡fdd„ˆjDƒƒo>tˆƒtˆƒko>ˆjˆjkS)zô
        Similar to equals, but checks that object attributes and types are also equal.
 
        Returns
        -------
        bool
            If two Index objects have equal elements and same type True,
            otherwise False.
        c3s&|]}tˆ|dƒtˆ|dƒkVqdSrº)rörJ©rrŸr¤r¥rî%sÿz"Index.identical.<locals>.<genexpr>)r"rrÑrr®r<r¤rÔr¥Ú    identicals
þÿû
ùzIndex.identicalc    Csœ| |¡z| |¡}Wn^ttfk
rv|j|gdd}|jdksP|jdkrXtdƒ‚| ¡}|dkrr|jYSYnXt    |t
ƒr”|  t |ƒ¡d}||S)aB
        Return the label from the index, or, if not present, the previous one.
 
        Assuming that the index is sorted, return the passed index label if it
        is in the index, or return the previous index label if the passed one
        is not in the index.
 
        Parameters
        ----------
        label : object
            The label up to which the method returns the latest index label.
 
        Returns
        -------
        object
            The passed label if it is in the index. The previous label if the
            passed label is not in the sorted index or `NaN` if there is no
            such label.
 
        See Also
        --------
        Series.asof : Return the latest value in a Series up to the
            passed index.
        merge_asof : Perform an asof merge (similar to left join but it
            matches on nearest key rather than equal key).
        Index.get_loc : An `asof` is a thin wrapper around `get_loc`
            with method='pad'.
 
        Examples
        --------
        `Index.asof` returns the latest index label up to the passed label.
 
        >>> idx = pd.Index(['2013-12-31', '2014-01-02', '2014-01-03'])
        >>> idx.asof('2014-01-01')
        '2013-12-31'
 
        If the label is in the index, the method returns the passed label.
 
        >>> idx.asof('2014-01-02')
        '2014-01-02'
 
        If all of the labels in the index are later than the passed label,
        NaN is returned.
 
        >>> idx.asof('1999-01-02')
        nan
 
        If the index is not sorted, an error is raised.
 
        >>> idx_not_sorted = pd.Index(['2013-12-31', '2015-01-02',
        ...                            '2014-01-03'])
        >>> idx_not_sorted.asof('2013-12-31')
        Traceback (most recent call last):
        ValueError: index must be monotonic increasing or decreasing
        ra©rSr¸z!asof requires scalar valued inputrs) rwrMrBror,rrEÚitemrqrêr€rrr)rŸr1r]r0r¤r¤r¥Úasof-s9
 
z
Index.asof)r}r©r•cCsr|j|j|jdd}t |dk|dd¡}tjt|ƒtjd| |¡}|j| ¡}d||dk|j|k@<|S)a³
        Return the locations (indices) of labels in the index.
 
        As in the `asof` function, if the label (a particular entry in
        `where`) is not in the index, the latest index label up to the
        passed label is chosen and its index returned.
 
        If all of the labels in the index are later than a label in `where`,
        -1 is returned.
 
        `mask` is used to ignore NA values in the index during calculation.
 
        Parameters
        ----------
        where : Index
            An Index consisting of an array of timestamps.
        mask : np.ndarray[bool]
            Array of booleans denoting where values in the original
            data are not NA.
 
        Returns
        -------
        np.ndarray[np.intp]
            An array of locations (indices) of the labels from the Index
            which correspond to the return values of the `asof` function
            for every element in `where`.
        r©rxrr¸rçrs)    rúÚ searchsortedr¼r}r2rrWrjÚargmax)rŸr}r©Zlocsr Z first_valuer¤r¤r¥Ú    asof_locsys!
ÿzIndex.asof_locsÚlast)rÔrÓÚ na_positionrOcCs^t||ƒ}t|tƒs&t||||d}n| ¡}|s@|ddd…}| |¡}|rV||fS|SdS)a
        Return a sorted copy of the index.
 
        Return a sorted copy of the index, and optionally return the indices
        that sorted the index itself.
 
        Parameters
        ----------
        return_indexer : bool, default False
            Should the indices that would sort the index be returned.
        ascending : bool, default True
            Should the index values be sorted in an ascending order.
        na_position : {'first' or 'last'}, default 'last'
            Argument 'first' puts NaNs at the beginning, 'last' puts NaNs at
            the end.
 
            .. versionadded:: 1.2.0
 
        key : callable, optional
            If not None, apply the key function to the index values
            before sorting. This is similar to the `key` argument in the
            builtin :meth:`sorted` function, with the notable difference that
            this `key` function should be *vectorized*. It should expect an
            ``Index`` and return an ``Index`` of the same shape.
 
            .. versionadded:: 1.1.0
 
        Returns
        -------
        sorted_index : pandas.Index
            Sorted copy of the index.
        indexer : numpy.ndarray, optional
            The indices that the index itself was sorted by.
 
        See Also
        --------
        Series.sort_values : Sort values of a Series.
        DataFrame.sort_values : Sort values in a DataFrame.
 
        Examples
        --------
        >>> idx = pd.Index([10, 100, 1, 1000])
        >>> idx
        Index([10, 100, 1, 1000], dtype='int64')
 
        Sort values in ascending order (default behavior).
 
        >>> idx.sort_values()
        Index([1, 10, 100, 1000], dtype='int64')
 
        Sort values in descending order, and also get the indices `idx` was
        sorted by.
 
        >>> idx.sort_values(ascending=False, return_indexer=True)
        (Index([1000, 100, 10, 1], dtype='int64'), array([3, 1, 0, 2]))
        )ÚitemsrÓrÞrONrs)rzrêr^r|Úargsortrj)rŸrÔrÓrÞrOrÊZ_asZ sorted_indexr¤r¤r¥rÕ¦s?
 
ÿ
zIndex.sort_valuescOs tdƒ‚dS)z*
        Use sort_values instead.
        z=cannot sort an Index object in-place, use sort_values insteadNrÊ©rŸr"r#r¤r¤r¥r›ùsz
Index.sort)ÚperiodscCstdt|ƒj›ƒ‚dS)a‹
        Shift index by desired number of time frequency increments.
 
        This method is for shifting the values of datetime-like indexes
        by a specified time increment a given number of times.
 
        Parameters
        ----------
        periods : int, default 1
            Number of periods (or increments) to shift by,
            can be positive or negative.
        freq : pandas.DateOffset, pandas.Timedelta or str, optional
            Frequency increment to shift by.
            If None, the index is shifted by its own `freq` attribute.
            Offset aliases are valid strings, e.g., 'D', 'W', 'M' etc.
 
        Returns
        -------
        pandas.Index
            Shifted index.
 
        See Also
        --------
        Series.shift : Shift values of Series.
 
        Notes
        -----
        This method is only implemented for datetime-like index classes,
        i.e., DatetimeIndex, PeriodIndex and TimedeltaIndex.
 
        Examples
        --------
        Put the first 5 month starts of 2011 into an index.
 
        >>> month_starts = pd.date_range('1/1/2011', periods=5, freq='MS')
        >>> month_starts
        DatetimeIndex(['2011-01-01', '2011-02-01', '2011-03-01', '2011-04-01',
                       '2011-05-01'],
                      dtype='datetime64[ns]', freq='MS')
 
        Shift the index by 10 days.
 
        >>> month_starts.shift(10, freq='D')
        DatetimeIndex(['2011-01-11', '2011-02-11', '2011-03-11', '2011-04-11',
                       '2011-05-11'],
                      dtype='datetime64[ns]', freq=None)
 
        The default value of `freq` is the `freq` attribute of the index,
        which is 'MS' (month start) in this example.
 
        >>> month_starts.shift(10)
        DatetimeIndex(['2011-11-01', '2011-12-01', '2012-01-01', '2012-02-01',
                       '2012-03-01'],
                      dtype='datetime64[ns]', freq='MS')
        z\This method is only implemented for DatetimeIndex, PeriodIndex and TimedeltaIndex; Got type N)rrrg)rŸrâÚfreqr¤r¤r¥Úshifts8ÿz Index.shiftcOs|jj||ŽS)aK
        Return the integer indices that would sort the index.
 
        Parameters
        ----------
        *args
            Passed to `numpy.ndarray.argsort`.
        **kwargs
            Passed to `numpy.ndarray.argsort`.
 
        Returns
        -------
        np.ndarray[np.intp]
            Integer indices that would sort the index if used as
            an indexer.
 
        See Also
        --------
        numpy.argsort : Similar method for NumPy arrays.
        Index.sort_values : Return sorted copy of Index.
 
        Examples
        --------
        >>> idx = pd.Index(['b', 'a', 'd', 'c'])
        >>> idx
        Index(['b', 'a', 'd', 'c'], dtype='object')
 
        >>> order = idx.argsort()
        >>> order
        array([1, 0, 3, 2])
 
        >>> idx[order]
        Index(['a', 'b', 'c', 'd'], dtype='object')
        )rÊràrár¤r¤r¥rà=s%z Index.argsortcCst|ƒst|ƒ‚dSrº)rPr.r†r¤r¤r¥rNdszIndex._check_indexing_errorcCs
|jdkS)zA
        Should an integer key be treated as positional?
        >r‰rñrðÚcomplexrørÔr¤r¤r¥r‹jsz$Index._should_fallback_to_positionala:
        Compute indexer and mask for new index given the current index.
 
        The indexer should be then used as an input to ndarray.take to align the
        current data to the new index.
 
        Parameters
        ----------
        target : %(target_klass)s
 
        Returns
        -------
        indexer : np.ndarray[np.intp]
            Integers from 0 to n - 1 indicating that the index at these
            positions matches the corresponding target values. Missing values
            in the target are marked by -1.
        missing : np.ndarray[np.intp]
            An indexer into the target of the values not found.
            These correspond to the -1 in the indexer array.
 
        Examples
        --------
        >>> index = pd.Index(['c', 'b', 'a', 'b', 'b'])
        >>> index.get_indexer_non_unique(['b', 'b'])
        (array([1, 3, 4, 1, 3, 4]), array([], dtype=int64))
 
        In the example below there are no matched values.
 
        >>> index = pd.Index(['c', 'b', 'a', 'b', 'b'])
        >>> index.get_indexer_non_unique(['q', 'r', 't'])
        (array([-1, -1, -1]), array([0, 1, 2]))
 
        For this reason, the returned ``indexer`` contains only integers equal to -1.
        It demonstrates that there's no match between the index and the ``target``
        values at these positions. The mask [0, 1, 2] in the return value shows that
        the first, second, and third elements are missing.
 
        Notice that the return value is a tuple contains two items. In the example
        below the first item is an array of locations in ``index``. The second
        item is a mask shows that the first and third elements are missing.
 
        >>> index = pd.Index(['c', 'b', 'a', 'b', 'b'])
        >>> index.get_indexer_non_unique(['f', 'b', 's'])
        (array([-1,  1,  3,  4, -1]), array([0, 2]))
        r/z1tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]c Csàt|ƒ}| |¡}| |¡s6| |¡s6|j|dddS| |¡\}}||k    sT||k    r^| |¡St|j|jƒsœ|     |¡}|j
|dd}|j
|dd}| |¡S|  ¡}|j rÀ|j rÀ|j }| |¡}|j  |¡\}    }
t|    ƒt|
ƒfS)NFrQrß)r”rTr5rXrYrZr/rCr®r!rùr@r r>rgr?) rŸr\r^r_r®r8rIrirhr0r1r¤r¤r¥r/¦s$
 
 
 
 
zIndex.get_indexer_non_uniquecCs"|jr| |¡S| |¡\}}|S)a“
        Guaranteed return of an indexer even when non-unique.
 
        This dispatches to get_indexer or get_indexer_non_unique
        as appropriate.
 
        Returns
        -------
        np.ndarray[np.intp]
            List of indices.
 
        Examples
        --------
        >>> idx = pd.Index([np.nan, 'var1', np.nan])
        >>> idx.get_indexer_for([np.nan])
        array([0, 2])
        )r+r,r/)rŸr\r0r:r¤r¤r¥r>Îs
zIndex.get_indexer_forztuple[Index, np.ndarray])Ú    axis_namer•cCs²|}t|tƒst |¡}|jr8| |¡}| |¡d}n| |¡\}}}| |||¡|     |¡}t|tƒrr|j
|_
|j j dkrªt|t ƒs t|t|ƒƒrª|jdkrª| d¡}||fS)zR
        Analogue to get_indexer that raises if any elements are missing.
        rrN)rêr‡rürýr+r>r˜rœÚ_raise_if_missingrjrÏr®rûrrrãZ
_with_freq)rŸrOræZkeyarrr0r›r¤r¤r¥Ú_get_indexer_strictæs&
 
 
 
 
 
 ÿý
zIndex._get_indexer_strictcCs t|ƒdkrdS|dk}| ¡}|rœt|jƒpBt|jƒoBt|jjƒ}|t|ƒkrr|r\t|ƒ}td|›d|›dƒ‚tt|ƒ|     ¡d 
¡ƒ}t|›dƒ‚dS)a8
        Check that indexer can be used to return a result.
 
        e.g. at least one element was found,
        unless the list of keys was actually empty.
 
        Parameters
        ----------
        key : list-like
            Targeted labels (only used to show correct error message).
        indexer: array-like of booleans
            Indices corresponding to the key,
            (with -1 indicating not found).
        axis_name : str
 
        Raises
        ------
        KeyError
            If at least one key was requested but none was found.
        rNz    None of [z] are in the [ú]z  not in index) rrÓrKr®rBr’rrBr”r-rŽ)rŸrOr0ræZ missing_maskZnmissingZuse_interval_msgÚ    not_foundr¤r¤r¥rçs" 
 
ÿý zIndex._raise_if_missing)r\rŽr•cCsdSrºr¤©rŸr\rSrŽr¤r¤r¥rY4sz!Index._get_indexer_non_comparablecCsdSrºr¤rër¤r¤r¥rY:szHnpt.NDArray[np.intp] | tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]cCsdSrºr¤rër¤r¤r¥rY@scCsf|dk    r(t|ƒ}td|j›d|j›ƒ‚dtj|jtjd}|rF|Stjt|ƒtjd}||fSdS)a
        Called from get_indexer or get_indexer_non_unique when the target
        is of a non-comparable dtype.
 
        For get_indexer lookups with method=None, get_indexer is an _equality_
        check, so non-comparable dtypes mean we will always have no matches.
 
        For get_indexer lookups with a method, get_indexer is an _inequality_
        check, so non-comparable dtypes mean we will always raise TypeError.
 
        Parameters
        ----------
        target : Index
        method : str or None
        unique : bool, default True
            * True if called from get_indexer.
            * False if called from get_indexer_non_unique.
 
        Raises
        ------
        TypeError
            If doing an inequality check, i.e. method is not None.
        NzCannot compare dtypes z and rsrç)    r ror®r¼ÚonesrÀrWr2r)rŸr\rSrŽrZ
no_matchesr1r¤r¤r¥rYFscCs|jS)zš
        Whether we should treat this as unique for the sake of
        get_indexer vs get_indexer_non_unique.
 
        For IntervalIndex compat.
        rçrÔr¤r¤r¥r+nszIndex._index_as_uniquez8Reindexing only valid with uniquely valued Index objectsc    Csbt|tƒrLt|tƒrL|jdk    rJ|jdk    rJt|j|jƒsJ| d¡| d¡fSnè|jdkr’t|tƒr’zt|ƒ|ƒ|fWStk
rŽ||fYSXn¢|jdkr¶t|tƒr¶t|ƒ|ƒ|fS|j    j
dkrì|j    j
dkrì|  ¡dkrê||  |j    ¡fSnH|j r4|j s4zt|ƒ |¡}Wn$ttfk
r2t|jƒ}YnXt|j    ƒsZt|j    ƒrZ| |¡\}}||fS)z›
        When dealing with an object-dtype Index and a non-object Index, see
        if we can upcast the object-dtype one to improve performance.
        NrÚdateÚ    timedeltaráràr)rêr]rrrr‘rrrar®rûÚminrùr rror    r‡rúrOrZr<r¤r¤r¥rZzs4ÿþ ý zIndex._maybe_promotecCsVt|dd\}}|jdks"|dkr8t|jƒs4t|ƒr8tSt|j|ƒ}t||g|ƒ}|S)zk
        Implementation of find_common_type that adjusts for Index-specific
        special cases.
        T)rTÚuint64)r:r®rQrþr9rúr8)rŸr\Z target_dtyper:r®r¤r¤r¥r!¨s ÿ zIndex._find_common_type_compatcCsDt|ƒrt|ƒs t|ƒr$t|ƒr$dSt|ƒ}|j}| |¡pBt|ƒS)zK
        Check if `self == other` can ever have non-False entries.
        F)rAr@r r®Ú_is_comparable_dtyperO)rŸrr®r¤r¤r¥r5ÀsÿÿzIndex._should_compare)r®r•cCs,|jjdkr|jdkSt|jƒr(t|ƒSdS)zF
        Can we compare values of the given dtype to our own?
        rãT)r®rûrNrPr¤r¤r¥rñÒs
 
 
zIndex._is_comparable_dtypez PrettyDict[Hashable, np.ndarray]cs>t|tƒr|j}t|ƒ}| ¡}‡fdd„| ¡Dƒ}t|ƒS)a
 
        Group the index labels by a given array of values.
 
        Parameters
        ----------
        values : array
            Values used to determine the groups.
 
        Returns
        -------
        dict
            {group name -> group labels}
        csi|]\}}|ˆ |¡“qSr¤)rjrrÔr¤r¥Ú
<dictcomp>õsz!Index.groupby.<locals>.<dictcomp>)rêr^rúrmZ_reverse_indexerrßr~)rŸrr r¤rÔr¥r3Þs 
z Index.groupbycCsºddlm}|j||d}|jrnt|dtƒrnt||ƒr@|j}n |jr\|jgt|dƒ}nd}|j    ||dSd}|js~|j
}t j |dd|j k}|r¦t||j
|d}tj||d|jd    S)
aB
        Map values using an input mapping or function.
 
        Parameters
        ----------
        mapper : function, dict, or Series
            Mapping correspondence.
        na_action : {None, 'ignore'}
            If 'ignore', propagate NA values, without passing them to the
            mapping correspondence.
 
        Returns
        -------
        Union[Index, MultiIndex]
            The output of the mapping function applied to the index.
            If the function returns a tuple with more than one element
            a MultiIndex will be returned.
        rrï)Ú    na_actionNrðFrû)Ú
same_dtyperé)rr„Z _map_valuesrErêrërñrÏrrr®rrýr‘r;r‡r$)rŸZmapperrór„rirñr®rôr¤r¤r¥r ùs( 
ÿz    Index.mapcsZtˆtƒr4‡‡‡fdd„tˆjƒDƒ}tˆƒ |¡S‡fdd„ˆDƒ}t|ˆjddSdS)zÓ
        Apply function to all values found in index.
 
        This includes transforming multiindex entries separately.
        Only apply function to one level of the MultiIndex if level is specified.
        cs6g|].}|ˆksˆdkr(ˆ |¡ ˆ¡nˆ |¡‘qSrº)Úget_level_valuesr ©rìrà©Úfuncr™rŸr¤r¥rX4s þÿÿz*Index._transform_index.<locals>.<listcomp>csg|] }ˆ|ƒ‘qSr¤r¤rV)rør¤r¥rX<sF)rÏrÜN)rêr^rør4rÚ from_arraysr‡rÏ)rŸrør™rrßr¤r÷r¥Ú_transform_index+s
üzIndex._transform_indexcCs |dk    r| |¡t |j|¡S)a
 
        Return a boolean array where the index values are in `values`.
 
        Compute boolean array of whether each index value is found in the
        passed set of values. The length of the returned boolean array matches
        the length of the index.
 
        Parameters
        ----------
        values : set or list-like
            Sought values.
        level : str or int, optional
            Name or position of the index level to use (if the index is a
            `MultiIndex`).
 
        Returns
        -------
        np.ndarray[bool]
            NumPy array of boolean values.
 
        See Also
        --------
        Series.isin : Same for Series.
        DataFrame.isin : Same method for DataFrames.
 
        Notes
        -----
        In the case of `MultiIndex` you must either specify `values` as a
        list-like object containing tuples that are the same length as the
        number of levels, or specify `level`. Otherwise it will raise a
        ``ValueError``.
 
        If `level` is specified:
 
        - if it is the name of one *and only one* index level, use that level;
        - otherwise it should be a number indicating level position.
 
        Examples
        --------
        >>> idx = pd.Index([1,2,3])
        >>> idx
        Index([1, 2, 3], dtype='int64')
 
        Check whether each index value in a list of values.
 
        >>> idx.isin([1, 4])
        array([ True, False, False])
 
        >>> midx = pd.MultiIndex.from_arrays([[1,2,3],
        ...                                  ['red', 'blue', 'green']],
        ...                                  names=('number', 'color'))
        >>> midx
        MultiIndex([(1,   'red'),
                    (2,  'blue'),
                    (3, 'green')],
                   names=['number', 'color'])
 
        Check whether the strings in the 'color' level of the MultiIndex
        are in a list of colors.
 
        >>> midx.isin(['red', 'orange', 'yellow'], level='color')
        array([ True, False, False])
 
        To check across the levels of a MultiIndex, pass a list of tuples:
 
        >>> midx.isin([(1, 'red'), (3, 'red')])
        array([ True, False, False])
 
        For a DatetimeIndex, string values in `values` are converted to
        Timestamps.
 
        >>> dates = ['2000-03-11', '2000-03-12', '2000-03-13']
        >>> dti = pd.to_datetime(dates)
        >>> dti
        DatetimeIndex(['2000-03-11', '2000-03-12', '2000-03-13'],
        dtype='datetime64[ns]', freq=None)
 
        >>> dti.isin(['2000-03-11'])
        array([ True, False, False])
        N)rÐrÚisinrúrÃr¤r¤r¥rû?sQ
z
Index.isinr®cCst‚dSrº)rr†r¤r¤r¥Ú_get_string_slice”szIndex._get_string_slice)rÞÚendr…r•cCs@|j|||d\}}t|ƒs$tdƒ‚t|ƒs4tdƒ‚t|||ƒS)aù
        Compute the slice indexer for input labels and step.
 
        Index needs to be ordered and unique.
 
        Parameters
        ----------
        start : label, default None
            If None, defaults to the beginning.
        end : label, default None
            If None, defaults to the end.
        step : int, default None
 
        Returns
        -------
        slice
 
        Raises
        ------
        KeyError : If key does not exist, or key is not unique and index is
            not ordered.
 
        Notes
        -----
        This function assumes that the data is sorted, so use at your own peril
 
        Examples
        --------
        This is a method on all index types. For example you can do:
 
        >>> idx = pd.Index(list('abcd'))
        >>> idx.slice_indexer(start='b', end='c')
        slice(1, 3, None)
 
        >>> idx = pd.MultiIndex.from_arrays([list('abcd'), list('efgh')])
        >>> idx.slice_indexer(start='b', end=('c', 'g'))
        slice(1, 3, None)
        )r…zStart slice bound is non-scalarzEnd slice bound is non-scalar)Ú
slice_locsrPrr€)rŸrÞrýr…Ú start_sliceÚ    end_slicer¤r¤r¥rŠ™s ,zIndex.slice_indexercCs|S)zx
        If we have a float key and are not a floating index, then try to cast
        to an int if equivalent.
        r¤r†r¤r¤r¥rLÏszIndex._maybe_cast_indexercCst|ƒS)zT
        Analogue to maybe_cast_indexer for get_indexer instead of get_loc.
        )r”rjr¤r¤r¥rTÖsz"Index._maybe_cast_listlike_indexer)rrûr•cCs,|dks t‚|dk    r(t|ƒs(| ||¡dS)zz
        If we are positional indexer, validate that we have appropriate
        typed bounds must be an integer.
        )rˆr‚N)rrIr)rŸrrOrûr¤r¤r¥rƒÜs zIndex._validate_indexerrÙcCs<t|jƒr| |¡St|ƒs$t|ƒr8||kr8| d|¡|S)aÉ
        This function should be overloaded in subclasses that allow non-trivial
        casting on label-slice bounds, e.g. datetime-like indices allowing
        strings containing formatted datetimes.
 
        Parameters
        ----------
        label : object
        side : {'left', 'right'}
 
        Returns
        -------
        label : object
 
        Notes
        -----
        Value of `side` parameter should be validated in caller.
        r€)rNr®rLrFrIr)rŸr1rxr¤r¤r¥Ú_maybe_cast_slice_boundçs
 
 
 zIndex._maybe_cast_slice_boundzLiteral[('left', 'right')]cCsV|jr|j||dS|jrJ|ddd…j||dkr6dndd}t|ƒ|Stdƒ‚dS)NrÙrsr–rz0index must be monotonic increasing or decreasing)rãrÚrärr    )rŸr1rxÚposr¤r¤r¥rwsÿ zIndex._searchsorted_monotonic)rxr•c Cs|dkrtd|›ƒ‚|}| ||¡}z| |¡}WnRtk
r†}z4z| ||¡WWY¢Stk
rt|‚YnXW5d}~XYnXt|tjƒrÖt|j    ƒs¢t
‚t   |  d¡¡}t|tjƒrÖtd|›dt|ƒ›ƒ‚t|tƒrö|dkrî|jS|jSn|dkr|d    S|SdS)
aY
        Calculate slice bound that corresponds to given label.
 
        Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
        of given label.
 
        Parameters
        ----------
        label : object
        side : {'left', 'right'}
 
        Returns
        -------
        int
            Index of label.
        )r–rz@Invalid value for side kwarg, must be either 'left' or 'right': NÚu1z Cannot get z# slice bound for non-unique label: r–rr¸)r    rrMrBrwrêr¼r½rAr®rrZmaybe_booleans_to_slicerfrlr€rÞr„)rŸr1rxZoriginal_labelZslcrr¤r¤r¥Úget_slice_bounds6ÿ   ÿ
 
zIndex.get_slice_boundztuple[int, int]c        Cs|dkp|dk}|s||}}t|ttfƒr~t|ttfƒr~zt|ƒ}t|ƒ}Wnttfk
rfYnXt|j|jƒs~tdƒ‚d}|dk    r–| |d¡}|dkr¢d}d}|dk    rº| |d¡}|dkrÊt    |ƒ}|s |d|d}}|dkrö|t    |ƒ8}|dkr |t    |ƒ8}||fS)aÈ
        Compute slice locations for input labels.
 
        Parameters
        ----------
        start : label, default None
            If None, defaults to the beginning.
        end : label, default None
            If None, defaults to the end.
        step : int, defaults None
            If None, defaults to 1.
 
        Returns
        -------
        tuple[int, int]
 
        See Also
        --------
        Index.get_loc : Get location for a single label.
 
        Notes
        -----
        This method only works if the index is monotonic or unique.
 
        Examples
        --------
        >>> idx = pd.Index(list('abcd'))
        >>> idx.slice_locs(start='b', end='c')
        (1, 3)
        Nrz(Both dates must have the same UTC offsetr–rr¸rs)
rêrÈrrr    rorÚtzinforr)    rŸrÞrýr…ÚincZts_startZts_endrÿrr¤r¤r¥rþSs8
 
 zIndex.slice_locscCs<|j}t|tjƒr t ||¡}n
| |¡}|jj||jdS)aø
        Make new Index with passed location(-s) deleted.
 
        Parameters
        ----------
        loc : int or list of int
            Location of item(-s) which will be deleted.
            Use a list of locations to delete more than one value at the same time.
 
        Returns
        -------
        Index
            Will be same type as self, except for RangeIndex.
 
        See Also
        --------
        numpy.delete : Delete any rows and column from NumPy array (ndarray).
 
        Examples
        --------
        >>> idx = pd.Index(['a', 'b', 'c'])
        >>> idx.delete(1)
        Index(['a', 'c'], dtype='object')
 
        >>> idx = pd.Index(['a', 'b', 'c'])
        >>> idx.delete([0, 2])
        Index(['b'], dtype='object')
        r)rúrêr¼r½Údeleter%r rÏ)rŸr]rrvr¤r¤r¥r«s
 
z Index.delete)r]r•c
Cst |¡}t||jƒr&|jtkr&|j}|j}z:t|tƒrZ|     ||¡}t
|ƒj ||j dWS|  |¡}Wn6tttfk
rœ| |¡}| |¡     ||¡YSX|jtks¼t|ttjtjfƒsØ|j 
|¡}t     |||¡}n*t     ||d¡}|dkrò|n|d}|||<tj||j dS)a
        Make new Index inserting new item at location.
 
        Follows Python numpy.insert semantics for negative values.
 
        Parameters
        ----------
        loc : int
        item : object
 
        Returns
        -------
        Index
        rNrr¸)rr`rdr®r’rqrúrêrnÚinsertrr rÏrÄror    r6r!rùrër¼Z
datetime64Z timedelta64r‡r$)rŸr]r×rrvr®Zcastedrir¤r¤r¥rÓs,
 
 
  ÿ z Index.insertÚraisez'Index | np.ndarray | Iterable[Hashable]r&)r«Úerrorsr•cCsvt|tƒs*|jdkrdnd}tj||d}| |¡}|dk}| ¡rl|dkrbtt||ƒ›dƒ‚||}|     |¡S)añ
        Make new Index with passed list of labels deleted.
 
        Parameters
        ----------
        labels : array-like or scalar
        errors : {'ignore', 'raise'}, default 'raise'
            If 'ignore', suppress error and existing labels are dropped.
 
        Returns
        -------
        Index
            Will be same type as self, except for RangeIndex.
 
        Raises
        ------
        KeyError
            If not all of the labels are found in the selected axis
        r’Nrçrsrmz not found in axis)
rêr‡r®rüZindex_labels_to_arrayr>r[rBrr)rŸr«r
Z    arr_dtyper0r©r¤r¤r¥Údrops
 
 
z
Index.drop)rÛr•cCsœ|jrtdƒ‚|jtkr(|r$| ¡S|S|j}td|ƒ}tj|ddddd}|r`||kr`| ¡St    ||j
d}|s˜||kr˜|j dk    r˜|j |_ |j   |¡|S)zÞ
        If we have an object dtype, try to infer a non-object dtype.
 
        Parameters
        ----------
        copy : bool, default True
            Whether to make a copy in cases where no inference occurs.
        z^infer_objects is not implemented for MultiIndex. Use index.to_frame().infer_objects() instead.r¯T)Zconvert_datetimeZconvert_timedeltaZconvert_periodZconvert_intervalrN) r rr®r’rÛrúrrr!r‡rÏr÷r)rŸrÛrrvr r¤r¤r¥Ú infer_objects,s,    ÿ
 
û  zIndex.infer_objectsc    Cs¢| |¡rŒ|tjtjtjhkrPtjt|ƒtd}|j    rLt
|t ƒsLd||  ¡<|S|tj krŒtjt|ƒtd}|j    rˆt
|t ƒsˆd||  ¡<|St
|tjtttfƒr¸t|ƒt|ƒkr¸tdƒ‚t
|t ƒsÐt|dd}n
t |¡}t|jƒrt
|tƒrtjdd||j|ƒ}W5QRXn†t
|jtƒr4||j|ƒ}njt|jƒrvt
|t ƒsvtjddt ||j|¡}W5QRXn(tjddt |j||¡}W5QRX|S)zA
        Wrapper used to dispatch comparison operations.
        rçFTzLengths must match to compare)Ú extract_numpyrm©r)r=rzÚeqr|Úger¼rìrrœrtrêr^reÚnerr½r‡r`rnr    rsrrOr®ZerrstaterúrgZcomp_method_OBJECT_ARRAYZ comparison_op)rŸrr~rr r¤r¤r¥Ú _cmp_methodQs>
 
 ÿþ
 
zIndex._cmp_methodcCs<t ||¡}|j}t|ddd}t |||¡}|j||dS)NT)r Z extract_ranger)rgrxrúrsZ
logical_opÚ_construct_result)rŸrr~Zres_nameZlvaluesZrvaluesrvr¤r¤r¥Ú_logical_method€s
 zIndex._logical_methodcCsJt|tƒr:t|d||djdt|d||djdfSt|||jdS)NrrGr¸)rêrër‡r®)rŸr rÏr¤r¤r¥rŠs
 
þzIndex._construct_resultcs2t|tƒr$t|jƒr$t|ƒtk    r$tStƒ ||¡Srº)rêr‡rOr®rr\r Ú _arith_method)rŸrr~r r¤r¥r“sÿþ
ýzIndex._arith_methodcCs||jƒ}t||jdSr3)rúr‡rÏ)rŸr~r r¤r¤r¥Ú _unary_method s
zIndex._unary_methodcCs | tj¡Srº)rrzrrÔr¤r¤r¥Ú__abs__¥sz Index.__abs__cCs | tj¡Srº)rrzÚnegrÔr¤r¤r¥Ú__neg__¨sz Index.__neg__cCs | tj¡Srº)rrzrrÔr¤r¤r¥Ú__pos__«sz Index.__pos__cCs | tj¡Srº)rrzÚinvrÔr¤r¤r¥Ú
__invert__®szIndex.__invert__cOs"t ||¡| d¡t |j¡S)an
        Return whether any element is Truthy.
 
        Parameters
        ----------
        *args
            Required for compatibility with numpy.
        **kwargs
            Required for compatibility with numpy.
 
        Returns
        -------
        bool or array-like (if axis is specified)
            A single element array-like may be converted to bool.
 
        See Also
        --------
        Index.all : Return whether all elements are True.
        Series.all : Return whether all elements are True.
 
        Notes
        -----
        Not a Number (NaN), positive infinity and negative infinity
        evaluate to True because these are not equal to zero.
 
        Examples
        --------
        >>> index = pd.Index([0, 1, 2])
        >>> index.any()
        True
 
        >>> index = pd.Index([0, 0, 0])
        >>> index.any()
        False
        r[)rnZ validate_anyÚ_maybe_disable_logical_methodsr¼r[rrár¤r¤r¥r[µs$ 
z    Index.anycOs"t ||¡| d¡t |j¡S)a
        Return whether all elements are Truthy.
 
        Parameters
        ----------
        *args
            Required for compatibility with numpy.
        **kwargs
            Required for compatibility with numpy.
 
        Returns
        -------
        bool or array-like (if axis is specified)
            A single element array-like may be converted to bool.
 
        See Also
        --------
        Index.any : Return whether any element in an Index is True.
        Series.any : Return whether any element in a Series is True.
        Series.all : Return whether all elements in a Series are True.
 
        Notes
        -----
        Not a Number (NaN), positive infinity and negative infinity
        evaluate to True because these are not equal to zero.
 
        Examples
        --------
        True, because nonzero integers are considered True.
 
        >>> pd.Index([1, 2, 3]).all()
        True
 
        False, because ``0`` is considered False.
 
        >>> pd.Index([0, 1, 2]).all()
        False
        r)rnZ validate_allrr¼rrrár¤r¤r¥rás' 
z    Index.all)Úopnamer•cCsBt|tƒs2t|jƒs2t|jƒs2t|jƒs2t|jƒr>t|ƒ|ƒdS)zK
        raise if this Index subclass does not support any or all.
        N)rêr^rSr®rKrBrGry)rŸrr¤r¤r¥rsÿþýüûz$Index._maybe_disable_logical_methods)rür•csFt ||¡t |¡|js8|jr8|j}|r4| ¡r8dStƒj|dS©Nrsrû)    rnZvalidate_argminÚvalidate_minmax_axisr rrrr Úargmin©rŸrkrür"r#r©r r¤r¥r!s 
  z Index.argmincsFt ||¡t |¡|js8|jr8|j}|r4| ¡r8dStƒj|dSr)    rnZvalidate_argmaxr r rrrr rÛr"r r¤r¥rÛ+s 
  z Index.argmaxrûcsœt ||¡t |¡t|ƒs$|jSt|ƒrF|jrF|d}t|ƒsF|S|jsj|jrj|j    }|rd| 
¡rj|jS|jsŽt |j t jƒsŽ|j jd|dStƒj|dS)Nrrï©rÏrürû)rnZ validate_minr rrqrãrer rrrrêrúr¼r½Ú_reducer rï)rŸrkrür"r#r.r©r r¤r¥rï7s 
  z    Index.mincsœt ||¡t |¡t|ƒs$|jSt|ƒrF|jrF|d}t|ƒsF|S|jsj|jrj|j    }|rd| 
¡rj|jS|jsŽt |j t jƒsŽ|j jd|dStƒj|dS)Nrsr¹r#rû)rnZ validate_maxr rrqrãrer rrrrêrúr¼r½r$r r¹)rŸrkrür"r#rÝr©r r¤r¥r¹Ps 
  z    Index.maxr*cCs
t|ƒfS)zE
        Return a tuple of the shape of the underlying data.
        )rrÔr¤r¤r¥rÀksz Index.shape)NNFNT)NN)N)N)rb)N)T)rTN)N)NF)N)N)FNr™)N)NN)NNF)NN)F)NTN)r)NN)r[)N)r.)N)F)F)N)NN)NNN)NNN)NN)NN)N)NNNN)r–)r–T)r–)F)N)FTrÝN)r¸N).)T)T)N)N)NNN)r–)NNN)r    )T)NT)NT)NT)NT(rgÚ
__module__Ú __qualname__Ú__doc__r¥rrÁrÅrÆrÇrÉÚ__annotations__r¼r½rnrËrÌrÍrÎrÑrÒr0rÕr®Zint8rØZ
Int8EngineÚint16Z Int16EngineÚint32Z Int32EngineÚint64Z Int64EngineZuint8Z UInt8EngineZuint16Z UInt16EngineZuint32Z UInt32EnginerðZ UInt64Enginer]Z Float32EngineÚfloat64Z Float64EnginerCrDrErFrÖÚpropertyrÚZ!_supports_partial_string_indexingZ
_accessorsrhr}rÈr÷r²Ú classmethodr r
r r$r%r,r)rr8r:r;r=rr?r>rMrOrèr_rZrdrfrùr‘r/rrjrprurÛrzr}r‹r‡rr…r†r—r˜r£r¡r±rµr¶r·rr5rÏÚsetterrxrÁrÂrÄrñrrÈrÌr4rÍrÐrÒrÖr×rõrÜrÚrtrãrärårær(rèrïrIròrórôrõr÷rùrúr‘rþr rÿrqrrreZisnullrZnotnullr    r
rŽrrrrÚ__bool__rrrrr#r$r4r6r7r9rBr@rArFrrrMr,r[rXrUrdrertrfruryr‡rŒrr‘r˜r–r™rœr¦r©r©r¤r§r•r¨r»r'rr1rprrúr@r»rÂrÁrÃr}rÿrÄrrÅrÈrËrÌrÎrÏr•rÑrßr"rÕrØrÜrÕr›räràrNr‹r/r>rèrçrYr+rVrZr!r5rñr3r rúrûrürŠrLrTrƒrrwrrþrrr r rrrrrrrrrr[rrr!rÛrïr¹rÀÚ __classcell__r¤r¤r r¥r‡/s
4
   þ    
 
 
 
 
 
 
 
 
 
 
 
ô 
ú`7ÿ
"    $"
 ;þÿûþÿ' ý#     
 üù"&@ÿ@
ÿ!ÿ# ÿÿÿk6ÿ#'3< "#++3304)          7,& (3>  yM    S =  Q (þÿ5û"Yû ü -ÿ %ÿ !
    MüÿlJù, ù* ù, ù.{ "Qÿ ÿ"ÿ 3 (     ,  .
,WK/ûS='  þÿ0'/ÿÿÿ'    - 2Uü 6 
 >X(7ý %%/     ,/ " "
 
 rÓcCsJddlm}t|ƒdkr8|dk    r(|d}t|d|dS|j||dSdS)aˆ
    Construct an index from sequences of data.
 
    A single sequence returns an Index. Many sequences returns a
    MultiIndex.
 
    Parameters
    ----------
    sequences : sequence of sequences
    names : sequence of str
 
    Returns
    -------
    index : Index or MultiIndex
 
    Examples
    --------
    >>> ensure_index_from_sequences([[1, 2, 3]], names=["name"])
    Index([1, 2, 3], dtype='int64', name='name')
 
    >>> ensure_index_from_sequences([["a", "a"], ["a", "b"]], names=["L1", "L2"])
    MultiIndex([('a', 'a'),
                ('a', 'b')],
               names=['L1', 'L2'])
 
    See Also
    --------
    ensure_index
    rrïr¸Nrrð)rr„rr‡rù)Ú    sequencesrñr„r¤r¤r¥Úensure_index_from_sequencesus   r3Fr!rœ)Ú
index_likerÛr•cCs®t|tƒr|r| ¡}|St|tƒr8|j}t|||dSt|ƒrHt|ƒ}t|tƒržt|ƒtk    rft|ƒ}t|ƒrŽt     
|¡rŽddl m }|  |¡St||ddSn t||dSdS)ak
    Ensure that we have an index from some index-like object.
 
    Parameters
    ----------
    index_like : sequence
        An Index or other sequence
    copy : bool, default False
 
    Returns
    -------
    index : Index or MultiIndex
 
    See Also
    --------
    ensure_index_from_sequences
 
    Examples
    --------
    >>> ensure_index(['a', 'b'])
    Index(['a', 'b'], dtype='object')
 
    >>> ensure_index([('a', 'a'),  ('b', 'c')])
    Index([('a', 'a'), ('b', 'c')], dtype='object')
 
    >>> ensure_index([['a', 'a'], ['b', 'c']])
    MultiIndex([('a', 'b'),
            ('a', 'c')],
           )
    )rÏrÛrrïF)rÛrÜrßN)rêr‡rÛr`rÏrLrrrrZis_all_arraylikerr„rù)r4rÛrÏr„r¤r¤r¥r”s"
 
 
 
r”cCs2z t|ƒWntk
r(t|ƒYSX|SdS)z<
    If seq is an iterator, put its values into a list.
    N)rror)Úseqr¤r¤r¥r“Øs
 r“rÐ)Ústringsr•cCs6|s|St|ƒr2tdd„|Dƒƒr2dd„|Dƒ}q|S)z£
    Trims zeros and decimal points.
 
    Examples
    --------
    >>> trim_front([" a", " b"])
    ['a', 'b']
 
    >>> trim_front([" a", " "])
    ['a', '']
    css|]}|ddkVqdS)rrŒNr¤rVr¤r¤r¥rîòsztrim_front.<locals>.<genexpr>cSsg|]}|dd…‘qS©r¸Nr¤rVr¤r¤r¥rXósztrim_front.<locals>.<listcomp>r)r6r¤r¤r¥r¨äs
r¨rÈr&)rSr•cCs|dkrtd|›ƒ‚dS)N)r–rr rŸzdo not recognize join method rrÖr¤r¤r¥r¦÷sr¦r    cCs8|dkrt|ttfƒr|j}t|ƒs4t|j›dƒ‚|S)zR
    If no name is passed, then extract it from data, validating hashability.
    Nz.name must be a hashable type)rêr‡r`rÏrHrorg)rÏrÐr³r¤r¤r¥rõüs
rõztuple[Hashable, ...])Úindexesr•cGs6dd„|Dƒ}dd„t|ŽDƒ}tdd„|Dƒƒ}|S)zñ
    Return common name if all indices agree, otherwise None (level-by-level).
 
    Parameters
    ----------
    indexes : list of Index objects
 
    Returns
    -------
    list
        A list representing the unanimous 'names' found.
    cSsg|]}t|jƒ‘qSr¤)rërñrör¤r¤r¥rXsz'get_unanimous_names.<locals>.<listcomp>cSsg|]
}|™‘qSr¤r¤©rìÚnsr¤r¤r¥rXscss&|]}t|ƒdkr| ¡ndVqdSr7)rr±r9r¤r¤r¥rîsz&get_unanimous_names.<locals>.<genexpr>)rrë)r8Z    name_tupsZ    name_setsrñr¤r¤r¥Úget_unanimous_names s r;r2cCs|j}t|tƒr|jS|S)zÜ
    When checking if our dtype is comparable with another, we need
    to unpack CategoricalDtype to look at its categories.dtype.
 
    Parameters
    ----------
    other : Index
 
    Returns
    -------
    Index
    )r®rêrWr’)rr®r¤r¤r¥r s 
r c
Cs`|dk    r\zt |¡}WnDtk
rZ}z&|dkr2‚tj|›dttƒdW5d}~XYnX|S)NFTz3, sort order is undefined for incomparable objects.ré)rZ    safe_sortrorìrírrr2)r r›rr¤r¤r¥r*4sýr*)N)F)âÚ
__future__rrr§Ú    itertoolsrrzÚtypingrrrrr    r
r r r rrrrrìÚnumpyr¼Zpandas._configrZ pandas._libsrrrsrrØrZpandas._libs.internalsrZpandas._libs.joinZ_libsr¦r¾Zpandas._libs.librrZpandas._libs.missingrZpandas._libs.tslibsrrrrZpandas._typingrr r!r"r#r$r%r&r'r(r)r*r+Zpandas.compat.numpyr,rnZ pandas.errorsr-r.Zpandas.util._decoratorsr/r0r1Zpandas.util._exceptionsr2r3Zpandas.core.dtypes.astyper4r5Zpandas.core.dtypes.castr6r7r8r9r:r;r<Zpandas.core.dtypes.commonr=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUZpandas.core.dtypes.concatrVZpandas.core.dtypes.dtypesrWrXrYrZr[Zpandas.core.dtypes.genericr\r]r^r_r`raZpandas.core.dtypes.inferencerbZpandas.core.dtypes.missingrcrdreZ pandas.corerfrgZpandas.core.accessorrhZpandas.core.algorithmsÚcoreZ
algorithmsZpandas.core.array_algos.putmaskrirjZpandas.core.arraysrkrlrmrnZpandas.core.arrays.string_roZpandas.core.baserprqZpandas.core.commonÚcommonrüZpandas.core.constructionrrrsrtZpandas.core.indexersruZpandas.core.indexes.frozenrvZpandas.core.missingrwZpandas.core.opsrxZpandas.core.ops.invalidryZpandas.core.sortingrzr{r|Zpandas.core.strings.accessorr}Zpandas.io.formats.printingr~rr€rrr‚rƒr„r…r†Ú__all__Ú    frozensetZ_unsortable_typesrr(r‘rÈrQr®rþZMaskedComplex128EngineZMaskedComplex64EngineZMaskedFloat64EngineZMaskedFloat32EngineZMaskedUInt64EngineZMaskedUInt32EngineZMaskedUInt16EngineZMaskedUInt8EngineZMaskedInt64EngineZMaskedInt32EngineZMaskedInt16EngineZMaskedInt8EngineZMaskedBoolEnginerAr©rµr¶r‡r3r”r“r¨r¦rõr;r r*r¤r¤r¤r¥Ú<module>s0   <   < $    l            ú 
æ z(;