hyb
2025-12-23 7e5db3a16b423ec4a43459805e277979bcac7db5
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
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
Ë
nñúhvãó,—dZddlmZddlmZmZmZmZddlZddl    m
Z
m Z ddl Z ddl mZddlmZmZmZmZmZmZmZddlZddlZddlmZdd    lmZdd
lmZm Z dd l!m"Z"ddl#m$cm%Z&dd l'm(Z(dd l)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6ddl7m8Z9ddl:m;Z;m<Z<ddl=m>Z>m?Z?m@Z@mAZAddlBmCZCddlDmEZEmFZFddlGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSddlTmUZUmVZVmWZWddlXmYZYmZZZddl[m\Z\ddl]m^Z^ddl_m`Z`maZambZbmcZcmdZdmeZemfZfddlgmhZhddlimjZjmkZkddllmmZmmnZnddlompcmqZrddlsmtZtddlumvZvddlwmxZxmyZymzZzddl{m|Z|dd l}m~Z~mZdd!l€mZm‚Z‚mƒZƒm„Z„m…Z…dd"l†m‡Z‡dd#lˆm‰Z‰dd$lŠm‹Z‹dd%lŒmZmŽZŽerdd&lmZdd'lm‘Z‘dd(l’m“Z“m”Z”m•Z•d)Z–d*d+d,d-œZ—d.Z˜d/Z™d0Zšd1Z›d2Zœd3ZeGd4„d5em««ZžeeeŸeeegefeŸeegefeeeffZ Gd6„d7emene1e~«Z¡ed8ev¬9«Z¢Gd:„d;e¡e1«Z£eAe£«                d?                                            d@d<„«Z¤dAd=„Z¥d>Z¦y)Ba
Provide the groupby split-apply-combine paradigm. Define the GroupBy
class providing the base-class of operations.
 
The SeriesGroupBy and DataFrameGroupBy sub-class
(defined in pandas.core.groupby.generic)
expose these user-facing objects to provide specific functionality.
é)Ú annotations)ÚHashableÚIteratorÚMappingÚSequenceN)ÚpartialÚwraps)Údedent)Ú TYPE_CHECKINGÚCallableÚLiteralÚTypeVarÚUnionÚcastÚfinal)Úusing_string_dtype)Úoption_context)Ú    TimestampÚlib)Úrank_1d)ÚNA) Ú AnyArrayLikeÚ    ArrayLikeÚAxisÚAxisIntÚDtypeObjÚ FillnaOptionsÚ
IndexLabelÚNDFrameTÚPositionalIndexerÚ RandomStateÚScalarÚTÚnpt)Úfunction)ÚAbstractMethodErrorÚ    DataError)ÚAppenderÚ SubstitutionÚcache_readonlyÚdoc)Úfind_stack_level)Úcoerce_indexer_dtypeÚensure_dtype_can_hold_na) Ú is_bool_dtypeÚis_float_dtypeÚ is_hashableÚ
is_integerÚis_integer_dtypeÚ is_list_likeÚis_numeric_dtypeÚis_object_dtypeÚ    is_scalarÚis_string_dtypeÚneeds_i8_conversionÚ pandas_dtype)ÚisnaÚna_value_for_dtypeÚnotna)Ú
algorithmsÚsample)Úexecutor)Úwarn_alias_replacement)ÚArrowExtensionArrayÚBaseMaskedArrayÚ CategoricalÚExtensionArrayÚ FloatingArrayÚ IntegerArrayÚ SparseArray)Ú StringDtype)ÚArrowStringArrayÚArrowStringArrayNumpySemantics)Ú PandasObjectÚSelectionMixin)Ú    DataFrame)ÚNDFrame)ÚbaseÚnumba_Úops)Ú get_grouper)ÚGroupByIndexingMixinÚGroupByNthSelector)ÚCategoricalIndexÚIndexÚ
MultiIndexÚ
RangeIndexÚ default_index)Úensure_block_shape)ÚSeries)Úget_group_index_sorter)Úget_jit_argumentsÚmaybe_use_numba)ÚAny)Ú    Resampler)ÚExpandingGroupbyÚExponentialMovingWindowGroupbyÚRollingGroupbyzÍ
        See Also
        --------
        Series.%(name)s : Apply a function %(name)s to a Series.
        DataFrame.%(name)s : Apply a function %(name)s
            to each row or column of a DataFrame.
al    
    Apply function ``func`` group-wise and combine the results together.
 
    The function passed to ``apply`` must take a {input} as its first
    argument and return a DataFrame, Series or scalar. ``apply`` will
    then take care of combining the results back together into a single
    dataframe or series. ``apply`` is therefore a highly flexible
    grouping method.
 
    While ``apply`` is a very flexible method, its downside is that
    using it can be quite a bit slower than using more specific methods
    like ``agg`` or ``transform``. Pandas offers a wide range of method that will
    be much faster than using ``apply`` for their specific purposes, so try to
    use them before reaching for ``apply``.
 
    Parameters
    ----------
    func : callable
        A callable that takes a {input} as its first argument, and
        returns a dataframe, a series or a scalar. In addition the
        callable may take positional and keyword arguments.
    include_groups : bool, default True
        When True, will attempt to apply ``func`` to the groupings in
        the case that they are columns of the DataFrame. If this raises a
        TypeError, the result will be computed with the groupings excluded.
        When False, the groupings will be excluded when applying ``func``.
 
        .. versionadded:: 2.2.0
 
        .. deprecated:: 2.2.0
 
           Setting include_groups to True is deprecated. Only the value
           False will be allowed in a future version of pandas.
 
    args, kwargs : tuple and dict
        Optional positional and keyword arguments to pass to ``func``.
 
    Returns
    -------
    Series or DataFrame
 
    See Also
    --------
    pipe : Apply function to the full GroupBy object instead of to each
        group.
    aggregate : Apply aggregate function to the GroupBy object.
    transform : Apply function column-by-column to the GroupBy object.
    Series.apply : Apply a function to a Series.
    DataFrame.apply : Apply a function to each row or column of a DataFrame.
 
    Notes
    -----
 
    .. versionchanged:: 1.3.0
 
        The resulting dtype will reflect the return value of the passed ``func``,
        see the examples below.
 
    Functions that mutate the passed object can produce unexpected
    behavior or errors and are not supported. See :ref:`gotchas.udf-mutation`
    for more details.
 
    Examples
    --------
    {examples}
    a?
    >>> df = pd.DataFrame({'A': 'a a b'.split(),
    ...                    'B': [1, 2, 3],
    ...                    'C': [4, 6, 5]})
    >>> g1 = df.groupby('A', group_keys=False)
    >>> g2 = df.groupby('A', group_keys=True)
 
    Notice that ``g1`` and ``g2`` have two groups, ``a`` and ``b``, and only
    differ in their ``group_keys`` argument. Calling `apply` in various ways,
    we can get different grouping results:
 
    Example 1: below the function passed to `apply` takes a DataFrame as
    its argument and returns a DataFrame. `apply` combines the result for
    each group together into a new DataFrame:
 
    >>> g1[['B', 'C']].apply(lambda x: x / x.sum())
              B    C
    0  0.333333  0.4
    1  0.666667  0.6
    2  1.000000  1.0
 
    In the above, the groups are not part of the index. We can have them included
    by using ``g2`` where ``group_keys=True``:
 
    >>> g2[['B', 'C']].apply(lambda x: x / x.sum())
                B    C
    A
    a 0  0.333333  0.4
      1  0.666667  0.6
    b 2  1.000000  1.0
 
    Example 2: The function passed to `apply` takes a DataFrame as
    its argument and returns a Series.  `apply` combines the result for
    each group together into a new DataFrame.
 
    .. versionchanged:: 1.3.0
 
        The resulting dtype will reflect the return value of the passed ``func``.
 
    >>> g1[['B', 'C']].apply(lambda x: x.astype(float).max() - x.min())
         B    C
    A
    a  1.0  2.0
    b  0.0  0.0
 
    >>> g2[['B', 'C']].apply(lambda x: x.astype(float).max() - x.min())
         B    C
    A
    a  1.0  2.0
    b  0.0  0.0
 
    The ``group_keys`` argument has no effect here because the result is not
    like-indexed (i.e. :ref:`a transform <groupby.transform>`) when compared
    to the input.
 
    Example 3: The function passed to `apply` takes a DataFrame as
    its argument and returns a scalar. `apply` combines the result for
    each group together into a Series, including setting the index as
    appropriate:
 
    >>> g1.apply(lambda x: x.C.max() - x.B.min(), include_groups=False)
    A
    a    5
    b    2
    dtype: int64aŠ
    >>> s = pd.Series([0, 1, 2], index='a a b'.split())
    >>> g1 = s.groupby(s.index, group_keys=False)
    >>> g2 = s.groupby(s.index, group_keys=True)
 
    From ``s`` above we can see that ``g`` has two groups, ``a`` and ``b``.
    Notice that ``g1`` have ``g2`` have two groups, ``a`` and ``b``, and only
    differ in their ``group_keys`` argument. Calling `apply` in various ways,
    we can get different grouping results:
 
    Example 1: The function passed to `apply` takes a Series as
    its argument and returns a Series.  `apply` combines the result for
    each group together into a new Series.
 
    .. versionchanged:: 1.3.0
 
        The resulting dtype will reflect the return value of the passed ``func``.
 
    >>> g1.apply(lambda x: x * 2 if x.name == 'a' else x / 2)
    a    0.0
    a    2.0
    b    1.0
    dtype: float64
 
    In the above, the groups are not part of the index. We can have them included
    by using ``g2`` where ``group_keys=True``:
 
    >>> g2.apply(lambda x: x * 2 if x.name == 'a' else x / 2)
    a  a    0.0
       a    2.0
    b  b    1.0
    dtype: float64
 
    Example 2: The function passed to `apply` takes a Series as
    its argument and returns a scalar. `apply` combines the result for
    each group together into a Series, including setting the index as
    appropriate:
 
    >>> g1.apply(lambda x: x.max() - x.min())
    a    1
    b    0
    dtype: int64
 
    The ``group_keys`` argument has no effect here because the result is not
    like-indexed (i.e. :ref:`a transform <groupby.transform>`) when compared
    to the input.
 
    >>> g2.apply(lambda x: x.max() - x.min())
    a    1
    b    0
    dtype: int64)ÚtemplateÚdataframe_examplesÚseries_examplesa
Compute {fname} of group values.
 
Parameters
----------
numeric_only : bool, default {no}
    Include only float, int, boolean columns.
 
    .. versionchanged:: 2.0.0
 
        numeric_only no longer accepts ``None``.
 
min_count : int, default {mc}
    The required number of valid values to perform the operation. If fewer
    than ``min_count`` non-NA values are present the result will be NA.
 
Returns
-------
Series or DataFrame
    Computed {fname} of values within each group.
 
Examples
--------
{example}
a:
Compute {fname} of group values.
 
Parameters
----------
numeric_only : bool, default {no}
    Include only float, int, boolean columns.
 
    .. versionchanged:: 2.0.0
 
        numeric_only no longer accepts ``None``.
 
min_count : int, default {mc}
    The required number of valid values to perform the operation. If fewer
    than ``min_count`` non-NA values are present the result will be NA.
 
engine : str, default None {e}
    * ``'cython'`` : Runs rolling apply through C-extensions from cython.
    * ``'numba'`` : Runs rolling apply through JIT compiled code from numba.
        Only available when ``raw`` is set to ``True``.
    * ``None`` : Defaults to ``'cython'`` or globally setting ``compute.use_numba``
 
engine_kwargs : dict, default None {ek}
    * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
    * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
        and ``parallel`` dictionary keys. The values must either be ``True`` or
        ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
        ``{{'nopython': True, 'nogil': False, 'parallel': False}}`` and will be
        applied to both the ``func`` and the ``apply`` groupby aggregation.
 
Returns
-------
Series or DataFrame
    Computed {fname} of values within each group.
 
Examples
--------
{example}
aþ
Apply a ``func`` with arguments to this %(klass)s object and return its result.
 
Use `.pipe` when you want to improve readability by chaining together
functions that expect Series, DataFrames, GroupBy or Resampler objects.
Instead of writing
 
>>> h = lambda x, arg2, arg3: x + 1 - arg2 * arg3
>>> g = lambda x, arg1: x * 5 / arg1
>>> f = lambda x: x ** 4
>>> df = pd.DataFrame([["a", 4], ["b", 5]], columns=["group", "value"])
>>> h(g(f(df.groupby('group')), arg1=1), arg2=2, arg3=3)  # doctest: +SKIP
 
You can write
 
>>> (df.groupby('group')
...    .pipe(f)
...    .pipe(g, arg1=1)
...    .pipe(h, arg2=2, arg3=3))  # doctest: +SKIP
 
which is much more readable.
 
Parameters
----------
func : callable or tuple of (callable, str)
    Function to apply to this %(klass)s object or, alternatively,
    a `(callable, data_keyword)` tuple where `data_keyword` is a
    string indicating the keyword of `callable` that expects the
    %(klass)s object.
args : iterable, optional
       Positional arguments passed into `func`.
kwargs : dict, optional
         A dictionary of keyword arguments passed into `func`.
 
Returns
-------
the return type of `func`.
 
See Also
--------
Series.pipe : Apply a function with arguments to a series.
DataFrame.pipe: Apply a function with arguments to a dataframe.
apply : Apply function to each group instead of to the
    full %(klass)s object.
 
Notes
-----
See more `here
<https://pandas.pydata.org/pandas-docs/stable/user_guide/groupby.html#piping-function-calls>`_
 
Examples
--------
%(examples)s
Call function producing a same-indexed %(klass)s on each group.
 
Returns a %(klass)s having the same indexes as the original object
filled with the transformed values.
 
Parameters
----------
f : function, str
    Function to apply to each group. See the Notes section below for requirements.
 
    Accepted inputs are:
 
    - String
    - Python function
    - Numba JIT function with ``engine='numba'`` specified.
 
    Only passing a single function is supported with this engine.
    If the ``'numba'`` engine is chosen, the function must be
    a user defined function with ``values`` and ``index`` as the
    first and second arguments respectively in the function signature.
    Each group's index will be passed to the user defined function
    and optionally available for use.
 
    If a string is chosen, then it needs to be the name
    of the groupby method you want to use.
*args
    Positional arguments to pass to func.
engine : str, default None
    * ``'cython'`` : Runs the function through C-extensions from cython.
    * ``'numba'`` : Runs the function through JIT compiled code from numba.
    * ``None`` : Defaults to ``'cython'`` or the global setting ``compute.use_numba``
 
engine_kwargs : dict, default None
    * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
    * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
      and ``parallel`` dictionary keys. The values must either be ``True`` or
      ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
      ``{'nopython': True, 'nogil': False, 'parallel': False}`` and will be
      applied to the function
 
**kwargs
    Keyword arguments to be passed into func.
 
Returns
-------
%(klass)s
 
See Also
--------
%(klass)s.groupby.apply : Apply function ``func`` group-wise and combine
    the results together.
%(klass)s.groupby.aggregate : Aggregate using one or more
    operations over the specified axis.
%(klass)s.transform : Call ``func`` on self producing a %(klass)s with the
    same axis shape as self.
 
Notes
-----
Each group is endowed the attribute 'name' in case you need to know
which group you are working on.
 
The current implementation imposes three requirements on f:
 
* f must return a value that either has the same shape as the input
  subframe or can be broadcast to the shape of the input subframe.
  For example, if `f` returns a scalar it will be broadcast to have the
  same shape as the input subframe.
* if this is a DataFrame, f must support application column-by-column
  in the subframe. If f also supports application to the entire subframe,
  then a fast path is used starting from the second chunk.
* f must not mutate groups. Mutation is not supported and may
  produce unexpected results. See :ref:`gotchas.udf-mutation` for more details.
 
When using ``engine='numba'``, there will be no "fall back" behavior internally.
The group data and group index will be passed as numpy arrays to the JITed
user defined function, and no alternative execution attempts will be tried.
 
.. versionchanged:: 1.3.0
 
    The resulting dtype will reflect the return value of the passed ``func``,
    see the examples below.
 
.. versionchanged:: 2.0.0
 
    When using ``.transform`` on a grouped DataFrame and the transformation function
    returns a DataFrame, pandas now aligns the result's index
    with the input's index. You can call ``.to_numpy()`` on the
    result of the transformation function to avoid alignment.
 
Examples
--------
%(example)saP
Aggregate using one or more operations over the specified axis.
 
Parameters
----------
func : function, str, list, dict or None
    Function to use for aggregating the data. If a function, must either
    work when passed a {klass} or when passed to {klass}.apply.
 
    Accepted combinations are:
 
    - function
    - string function name
    - list of functions and/or function names, e.g. ``[np.sum, 'mean']``
    - None, in which case ``**kwargs`` are used with Named Aggregation. Here the
      output has one column for each element in ``**kwargs``. The name of the
      column is keyword, whereas the value determines the aggregation used to compute
      the values in the column.
 
      Can also accept a Numba JIT function with
      ``engine='numba'`` specified. Only passing a single function is supported
      with this engine.
 
      If the ``'numba'`` engine is chosen, the function must be
      a user defined function with ``values`` and ``index`` as the
      first and second arguments respectively in the function signature.
      Each group's index will be passed to the user defined function
      and optionally available for use.
 
    .. deprecated:: 2.1.0
 
        Passing a dictionary is deprecated and will raise in a future version
        of pandas. Pass a list of aggregations instead.
*args
    Positional arguments to pass to func.
engine : str, default None
    * ``'cython'`` : Runs the function through C-extensions from cython.
    * ``'numba'`` : Runs the function through JIT compiled code from numba.
    * ``None`` : Defaults to ``'cython'`` or globally setting ``compute.use_numba``
 
engine_kwargs : dict, default None
    * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
    * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
      and ``parallel`` dictionary keys. The values must either be ``True`` or
      ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
      ``{{'nopython': True, 'nogil': False, 'parallel': False}}`` and will be
      applied to the function
 
**kwargs
    * If ``func`` is None, ``**kwargs`` are used to define the output names and
      aggregations via Named Aggregation. See ``func`` entry.
    * Otherwise, keyword arguments to be passed into func.
 
Returns
-------
{klass}
 
See Also
--------
{klass}.groupby.apply : Apply function func group-wise
    and combine the results together.
{klass}.groupby.transform : Transforms the Series on each group
    based on the given function.
{klass}.aggregate : Aggregate using one or more
    operations over the specified axis.
 
Notes
-----
When using ``engine='numba'``, there will be no "fall back" behavior internally.
The group data and group index will be passed as numpy arrays to the JITed
user defined function, and no alternative execution attempts will be tried.
 
Functions that mutate the passed object can produce unexpected
behavior or errors and are not supported. See :ref:`gotchas.udf-mutation`
for more details.
 
.. versionchanged:: 1.3.0
 
    The resulting dtype will reflect the return value of the passed ``func``,
    see the examples below.
{examples}a÷
Aggregate using one or more operations over the specified axis.
 
Parameters
----------
func : function, str, list, dict or None
    Function to use for aggregating the data. If a function, must either
    work when passed a {klass} or when passed to {klass}.apply.
 
    Accepted combinations are:
 
    - function
    - string function name
    - list of functions and/or function names, e.g. ``[np.sum, 'mean']``
    - dict of axis labels -> functions, function names or list of such.
    - None, in which case ``**kwargs`` are used with Named Aggregation. Here the
      output has one column for each element in ``**kwargs``. The name of the
      column is keyword, whereas the value determines the aggregation used to compute
      the values in the column.
 
      Can also accept a Numba JIT function with
      ``engine='numba'`` specified. Only passing a single function is supported
      with this engine.
 
      If the ``'numba'`` engine is chosen, the function must be
      a user defined function with ``values`` and ``index`` as the
      first and second arguments respectively in the function signature.
      Each group's index will be passed to the user defined function
      and optionally available for use.
 
*args
    Positional arguments to pass to func.
engine : str, default None
    * ``'cython'`` : Runs the function through C-extensions from cython.
    * ``'numba'`` : Runs the function through JIT compiled code from numba.
    * ``None`` : Defaults to ``'cython'`` or globally setting ``compute.use_numba``
 
engine_kwargs : dict, default None
    * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
    * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
      and ``parallel`` dictionary keys. The values must either be ``True`` or
      ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
      ``{{'nopython': True, 'nogil': False, 'parallel': False}}`` and will be
      applied to the function
 
**kwargs
    * If ``func`` is None, ``**kwargs`` are used to define the output names and
      aggregations via Named Aggregation. See ``func`` entry.
    * Otherwise, keyword arguments to be passed into func.
 
Returns
-------
{klass}
 
See Also
--------
{klass}.groupby.apply : Apply function func group-wise
    and combine the results together.
{klass}.groupby.transform : Transforms the Series on each group
    based on the given function.
{klass}.aggregate : Aggregate using one or more
    operations over the specified axis.
 
Notes
-----
When using ``engine='numba'``, there will be no "fall back" behavior internally.
The group data and group index will be passed as numpy arrays to the JITed
user defined function, and no alternative execution attempts will be tried.
 
Functions that mutate the passed object can produce unexpected
behavior or errors and are not supported. See :ref:`gotchas.udf-mutation`
for more details.
 
.. versionchanged:: 1.3.0
 
    The resulting dtype will reflect the return value of the passed ``func``,
    see the examples below.
{examples}có&—eZdZdZdd„Zd„Zdd„Zy)Ú GroupByPlotzE
    Class implementing the .plot attribute for groupby objects.
    có—||_y©N)Ú_groupby)ÚselfÚgroupbys  úNH:\Change_password\venv_build\Lib\site-packages\pandas/core/groupby/groupby.pyÚ__init__zGroupByPlot.__init__ás    €Øˆ óc󀇇—ˆˆfd„}d|_|jj||jj«S)Ncó(•—|j‰i‰¤ŽSrk)Úplot)rmÚargsÚkwargss €€roÚfzGroupByPlot.__call__.<locals>.fåsø€Ø4—9‘9˜dÐ- fÑ-Ð -rqrt)Ú__name__rlÚ_python_apply_generalÚ _selected_obj)rmrurvrws `` roÚ__call__zGroupByPlot.__call__äs2ù€õ    .ðˆŒ
؏}‰}×2Ñ2°1°d·m±m×6QÑ6QÓRÐRrqc󇇗ˆˆfd„}|S)Ncóv•‡‡—ˆˆˆfd„}‰jj|‰jj«S)Ncó<•—t|j‰«‰i‰¤ŽSrk)Úgetattrrt)rmrurvÚnames €€€rorwz0GroupByPlot.__getattr__.<locals>.attr.<locals>.fís ø€Ø/”w˜tŸy™y¨$Ó/°Ð@¸Ñ@Ð@rq)rlryrz)rurvrwr€rms`` €€roÚattrz%GroupByPlot.__getattr__.<locals>.attrìs,ú€ö Að—=‘=×6Ñ6°q¸$¿-¹-×:UÑ:UÓVÐ Vrq©)rmr€rs`` roÚ __getattr__zGroupByPlot.__getattr__ësù€õ    Wð ˆ rqN)rnÚGroupByÚreturnÚNone©r€Ústr)rxÚ
__module__Ú __qualname__Ú__doc__rpr{rƒr‚rqroririÛs„ñó òSôrqricó¼—eZdZUejhd£zZded<ded<dZded<dZd    ed
<d ed <edd „«Z    edd„«Z
ee dd„««Z ee d d„««Z ee dd„««Zee d!d„««Zed„«Zed„«Zeed„««Zed"d„«Zeded«¬«ee«                d#d„««Zed$d%d„«Zed&d„«Zy)'Ú BaseGroupBy> ÚobjÚaxisÚkeysÚsortÚlevelÚdropnaÚgrouperÚas_indexÚobservedÚ
exclusionsÚ
group_keysrrúops.BaseGrouperÚ_grouperNú_KeysArgType | NonerúIndexLabel | Noner’Úboolr˜có,—t|j«Srk)ÚlenÚgroups©rms roÚ__len__zBaseGroupBy.__len__s€ä4—;‘;ÓÐrqcó,—tj|«Srk)ÚobjectÚ__repr__r¡s ror¥zBaseGroupBy.__repr__s€ô‰˜tÓ$Ð$rqcóŽ—tjt|«j›dtt «¬«|j S)NzI.grouper is deprecated and will be removed in a future version of pandas.)ÚcategoryÚ
stacklevel)ÚwarningsÚwarnÚtyperxÚ FutureWarningr,ršr¡s ror”zBaseGroupBy.groupers?€ô     ‰ ܐD‹z×"Ñ"Ð#ð$(ð (ä"Ü'Ó)õ        
ð }‰}Ðrqcó.—|jjS)aI
        Dict {group name -> group labels}.
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 3], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        dtype: int64
        >>> ser.groupby(level=0).groups
        {'a': ['a', 'a'], 'b': ['b']}
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 2, 3], [1, 5, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"])
        >>> df
           a  b  c
        0  1  2  3
        1  1  5  6
        2  7  8  9
        >>> df.groupby(by=["a"]).groups
        {1: [0, 1], 7: [2]}
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3, 4], index=pd.DatetimeIndex(
        ...                 ['2023-01-01', '2023-01-15', '2023-02-01', '2023-02-15']))
        >>> ser
        2023-01-01    1
        2023-01-15    2
        2023-02-01    3
        2023-02-15    4
        dtype: int64
        >>> ser.resample('MS').groups
        {Timestamp('2023-01-01 00:00:00'): 2, Timestamp('2023-02-01 00:00:00'): 4}
        )ršr r¡s ror zBaseGroupBy.groups's€ð\}‰}×#Ñ#Ð#rqcó.—|jjSrk)ršÚngroupsr¡s ror¯zBaseGroupBy.ngroupsWs€ð}‰}×$Ñ$Ð$rqcó.—|jjS)aæ
        Dict {group name -> group indices}.
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 3], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        dtype: int64
        >>> ser.groupby(level=0).indices
        {'a': array([0, 1]), 'b': array([2])}
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 2, 3], [1, 5, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["owl", "toucan", "eagle"])
        >>> df
                a  b  c
        owl     1  2  3
        toucan  1  5  6
        eagle   7  8  9
        >>> df.groupby(by=["a"]).indices
        {1: array([0, 1]), 7: array([2])}
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3, 4], index=pd.DatetimeIndex(
        ...                 ['2023-01-01', '2023-01-15', '2023-02-01', '2023-02-15']))
        >>> ser
        2023-01-01    1
        2023-01-15    2
        2023-02-01    3
        2023-02-15    4
        dtype: int64
        >>> ser.resample('MS').indices
        defaultdict(<class 'list'>, {Timestamp('2023-01-01 00:00:00'): [0, 1],
        Timestamp('2023-02-01 00:00:00'): [2, 3]})
        )ršÚindicesr¡s ror±zBaseGroupBy.indices\s€ð`}‰}×$Ñ$Ð$rqc󆇠   ‡
—d„}t|«dk(rgSt|j«dkDrtt|j««}nd}|d}t    |t
«rtt    |t
«s d}t |«‚t|«t|«k(s    |Dcgc]}|j|‘Œc}S|Dcgc]
}||«‘Œ c}Š
ˆ
fd„|D«}n||«Š    ˆ    fd„|D«}|Dcgc]}|jj|g«‘Œ c}Scc}w#t$r}d}t |«|‚d}~wwxYwcc}wcc}w)zd
        Safe get multiple indices, translate keys for
        datelike to underlying repr.
        có|—t|tj«rd„St|tj«rd„Sd„S)Ncó—t|«Srk)r©Úkeys roú<lambda>zABaseGroupBy._get_indices.<locals>.get_converter.<locals>.<lambda>™s
€¤9¨S£>€rqcó,—t|«jSrk)rÚasm8rµs ror·zABaseGroupBy._get_indices.<locals>.get_converter.<locals>.<lambda>›s€¤9¨S£>×#6Ñ#6€rqcó—|Srkr‚rµs ror·zABaseGroupBy._get_indices.<locals>.get_converter.<locals>.<lambda>s€ 3€rq)Ú
isinstanceÚdatetimeÚnpÚ
datetime64)Úss roÚ get_converterz/BaseGroupBy._get_indices.<locals>.get_converter•s4€ô˜!œX×.Ñ.Ô/Ù1Ð1ܘAœrŸ}™}Ô-Ù6Ð6á&Ð&rqrNz<must supply a tuple to get_group with multiple grouping keyszHmust supply a same-length tuple to get_group with multiple grouping keysc3óV•K—|] }td„t‰|«D««–—Œ"y­w)c3ó2K—|]\}}||«–—Œy­wrkr‚)Ú.0rwÚns   roú    <genexpr>z5BaseGroupBy._get_indices.<locals>.<genexpr>.<genexpr>¹sèø€ÒB¡D A q™1˜QŸ4ÑBùs‚N)ÚtupleÚzip)rÃr€Ú
converterss  €rorÅz+BaseGroupBy._get_indices.<locals>.<genexpr>¹s#øèø€ÒUÀt”UÑB¬C°
¸DÓ,AÔB×BÑUùsƒ&)c3ó.•K—|] }‰|«–—Œy­wrkr‚)rÃr€Ú    converters  €rorÅz+BaseGroupBy._get_indices.<locals>.<genexpr>½søèø€Ò7¨‘Y˜t—_Ñ7ùsƒ)    rŸr±ÚnextÚiterr»rÆÚ
ValueErrorÚKeyErrorÚget) rmÚnamesrÀÚ index_sampleÚ name_sampleÚmsgr€Úerrr¿rÊrÈs          @@roÚ _get_indiceszBaseGroupBy._get_indicesŽs2ù€ò    'ô ˆu‹:˜Š?؈Iä ˆt|‰|Ó ˜qÒ  Ü¤ T§\¡\Ó 2Ó3‰LàˆLà˜A‘hˆ Ü l¤EÔ *ܘk¬5Ô1ØTÜ  “oÐ%ܐ{Ó#¤s¨<Ó'8Ò8ð    3à;@ÖA°4˜DŸL™L¨Ó.ÒAÐAð5AÖA¨q™-¨Õ*ÒAˆJÛUÈuÔU‰Eñ& lÓ3ˆIÛ7°Ô7ˆEà7<Ö=¨t— ‘ × Ñ   rÕ*Ò=Ð=ùò!BøÜò3ð6ðô% S›/¨sÐ2ûð 3üòBùò>s6ÂDÂDÂ3DÂ:D9Ã/#D>ÄDÄ    D6Ä#D1Ä1D6có,—|j|g«dS)zQ
        Safe get index, translate keys for datelike to underlying repr.
        r)rÕ)rmr€s  roÚ
_get_indexzBaseGroupBy._get_indexÁs€ð
× Ñ  $ Ó(¨Ñ+Ð+rqcóò—t|jt«r |jS|j:t    |j«r|j|jS|j
S|jSrk)r»rŽr\Ú
_selectionr1Ú_obj_with_exclusionsr¡s rorzzBaseGroupBy._selected_objÈs]€ô d—h‘h¤Ô 'Ø—8‘8ˆOà ?‰?Ð &ܘ4Ÿ?™?Ô+ð—x‘x §¡Ñ0Ð0ð
×,Ñ,Ð ,àx‰xˆrqcó6—|jj«Srk)rŽÚ_dir_additionsr¡s rorÜzBaseGroupBy._dir_additionsÝs€àx‰x×&Ñ&Ó(Ð(rqr„a†        >>> df = pd.DataFrame({'A': 'a b a b'.split(), 'B': [1, 2, 3, 4]})
        >>> df
           A  B
        0  a  1
        1  b  2
        2  a  3
        3  b  4
 
        To get the difference between each groups maximum and minimum value in one
        pass, you can do
 
        >>> df.groupby('A').pipe(lambda x: x.max() - x.min())
           B
        A
        a  2
        b  2)ÚklassÚexamplescó6—tj||g|¢­i|¤ŽSrk)ÚcomÚpipe)rmÚfuncrurvs    rorázBaseGroupBy.pipeás€ô:x‰x˜˜dÐ4 TÒ4¨VÑ4Ð4rqcóˆ—|j}|j}t|«rt|«dk(st|«rft|«dk(rXt    |t
«rt|«dk(r|d}n4t    |t
«s$t jdtt«¬«|j|«}t|«s t|«‚|€7|jdk(r|n td«|f}|jj|St jdtt«¬«|j!||j¬«S)aA
        Construct DataFrame from group with provided name.
 
        Parameters
        ----------
        name : object
            The name of the group to get as a DataFrame.
        obj : DataFrame, default None
            The DataFrame to take the DataFrame out of.  If
            it is None, the object groupby was called on will
            be used.
 
            .. deprecated:: 2.1.0
                The obj is deprecated and will be removed in a future version.
                Do ``df.iloc[gb.indices.get(name)]``
                instead of ``gb.get_group(name, obj=df)``.
 
        Returns
        -------
        same type as obj
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 3], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        dtype: int64
        >>> ser.groupby(level=0).get_group("a")
        a    1
        a    2
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 2, 3], [1, 5, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["owl", "toucan", "eagle"])
        >>> df
                a  b  c
        owl     1  2  3
        toucan  1  5  6
        eagle   7  8  9
        >>> df.groupby(by=["a"]).get_group((1,))
                a  b  c
        owl     1  2  3
        toucan  1  5  6
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3, 4], index=pd.DatetimeIndex(
        ...                 ['2023-01-01', '2023-01-15', '2023-02-01', '2023-02-15']))
        >>> ser
        2023-01-01    1
        2023-01-15    2
        2023-02-01    3
        2023-02-15    4
        dtype: int64
        >>> ser.resample('MS').get_group('2023-01-01')
        2023-01-01    1
        2023-01-15    2
        dtype: int64
        érzµWhen grouping with a length-1 list-like, you will need to pass a length-1 tuple to get_group in a future version of pandas. Pass `(name,)` instead of `name` to silence this warning.©r¨NzŠobj is deprecated and will be removed in a future version. Do ``df.iloc[gb.indices.get(name)]`` instead of ``gb.get_group(name, obj=df)``.©r)rr’r4rŸr»rÆr©rªr¬r,r×rÎrÚslicerzÚilocÚ_take_with_is_copy)rmr€rŽrr’ÚindsÚindexers       roÚ    get_groupzBaseGroupBy.get_groups€ðLy‰yˆØ—
‘
ˆä ˜Ô ¤C¨£J°!¢OÜ ˜Ô ¤3 t£9°¢>ô˜$¤Ô&¬3¨t«9¸ª>à˜A‘w‘Ü ¤eÔ,Ü— ‘ ð$ô"Ü/Ó1õ ð‰˜tÓ$ˆÜ4Œyܘ4“.Ð  à ˆ;Ø"Ÿi™i¨1šn‘d´5¸³;ÀÐ2EˆGØ×%Ñ%×*Ñ*¨7Ñ3Ð 3ä M‰Mð=ôÜ+Ó-õ  ð×)Ñ)¨$°T·Y±YÐ)Ó?Ð ?rqcó`—|j}|j}|jj|j|j
¬«}t |«r2t|«dk(r$tjdtt«¬«t|t«rt|«dk(r    d„|D«}|S)aB
        Groupby iterator.
 
        Returns
        -------
        Generator yielding sequence of (name, subsetted object)
        for each group
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 3], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        dtype: int64
        >>> for x, y in ser.groupby(level=0):
        ...     print(f'{x}\n{y}\n')
        a
        a    1
        a    2
        dtype: int64
        b
        b    3
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 2, 3], [1, 5, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"])
        >>> df
           a  b  c
        0  1  2  3
        1  1  5  6
        2  7  8  9
        >>> for x, y in df.groupby(by=["a"]):
        ...     print(f'{x}\n{y}\n')
        (1,)
           a  b  c
        0  1  2  3
        1  1  5  6
        (7,)
           a  b  c
        2  7  8  9
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3, 4], index=pd.DatetimeIndex(
        ...                 ['2023-01-01', '2023-01-15', '2023-02-01', '2023-02-15']))
        >>> ser
        2023-01-01    1
        2023-01-15    2
        2023-02-01    3
        2023-02-15    4
        dtype: int64
        >>> for x, y in ser.resample('MS'):
        ...     print(f'{x}\n{y}\n')
        2023-01-01 00:00:00
        2023-01-01    1
        2023-01-15    2
        dtype: int64
        2023-02-01 00:00:00
        2023-02-01    3
        2023-02-15    4
        dtype: int64
        ræräzÏCreating a Groupby object with a length-1 list-like level parameter will yield indexes as tuples in a future version. To keep indexes as scalars, create Groupby objects with a scalar level parameter instead.råc3ó,K—|] \}}|f|f–—Œy­wrkr‚)rÃr¶Úgroups   rorÅz'BaseGroupBy.__iter__.<locals>.<genexpr>Ãsèø€Ò?©*¨#¨u˜v˜u”oÑ?ùs‚)rr’ršÚ get_iteratorrzrr4rŸr©rªr¬r,r»Úlist)rmrr’Úresults    roÚ__iter__zBaseGroupBy.__iter__ks€ðPy‰yˆØ—
‘
ˆØ—‘×+Ñ+¨D×,>Ñ,>ÀTÇYÁYÐ+ÓOˆä ˜Ô ¤3 u£:°¢?ä M‰Mð4ôÜ+Ó-õ  ô dœDÔ !¤c¨$£i°1¢ná?¸Ô?ˆF؈ rq)r…Úint)r…rˆ)r…r™)r…zdict[Hashable, np.ndarray])r…z$dict[Hashable, npt.NDArray[np.intp]])r…zset[str])râz/Callable[..., T] | tuple[Callable[..., T], str]r…r#rk©r…úDataFrame | Series)r…z#Iterator[tuple[Hashable, NDFrameT]])rxr‰rŠrLÚ _hidden_attrsÚ__annotations__rr’rr¢r¥Úpropertyr”r r¯r±rÕr×r*rzrÜr)r
r(Ú_pipe_templaterárìrór‚rqrorrþsª…Ø ×.Ñ.ò 2ñ €Mð ƒMØÓØ $€DÐ
Ó$Ø#€EÐ Ó#ØÓà
ò ó ð ð ò%ó ð%ð Ø òóó ðð Ø ò,$óó ð,$ð\ Ø ò%óó ð%ð Ø ò.%óó ð.%ð` ñ0>ó ð0>ðd ñ,ó ð,ð  Øñóó ðð& ò)ó ð)ñØÙð ó
ôñ,ˆnÓð5à=ð5ð
 
ò 5óó-ð.5ð óh@ó ðh@ðT òXó ñXrqrÚOutputFrameOrSeries)Úboundc ó—eZdZUdZded<ded<edddddddddejdf                                                                                                     did    „«Zdjd
„Z    edkd „«Z
edld „«Z e        dm            dnd„«Z e                dod„«Z edpd„«Zedqd„«Ze    dr            dsd„«Z        dm                    dtd„Zedud„«Z                        dvd„Zeddœd„«Zeddœd„«Zeedj1ded¬««ddœdwd„«Ze            dx                                            dyd„«Ze        dzdd!œ                            d{d"„«Z                                        d|d#„Ze            d}                            d~d$„«Z    d                    d€d%„Zeddd&œd'„«Zedqd(„«Z ed)„«Z!edd‚d*„«Z"ee#dƒd+„««Z$ee%d,¬-«e%e&¬.«dd„d/„«««Z'ee%d,¬-«e%e&¬.«dd„d0„«««Z(ee%d,¬-«e%e&¬.«d…d1„«««Z)ee%d,¬-«e%e&¬.«            d†                    d‡d2„«««Z*edˆd‰d3„«Z+ee%d,¬-«e%e&¬.«                dŠ                            d‹d5„«««Z,ee%d,¬-«e%e&¬.«                dŠ                            d‹d6„«««Z-e                    dŒ                                            dd7„«Z.edŽdd8„«Z/ee%d,¬-«e%e&¬.«dd9„«««Z0ee1e2d:d ddde3d;«¬<«                d‘                            d’d=„««Z4ee1e5d>d de3d?«¬@«dd“dA„««Z6ee1e2dBd d dde3dC«¬<«                d”                            d’dD„««Z7ee1e2dEd d dde3dF«¬<«                d”                            d’dG„««Z8e    d•                            d–dH„«Z9e    d•                            d–dI„«Z:ed—dJ„«Z;e1e<jz«            d˜    d…dK„«Z=eddœd™dL„«Z>edšdM„«Z?ee%d,¬-«ee&«d›dN„«««Z@ee%d,¬-«ee&«dœdO„«««ZAedrddP„«ZBee%d,¬-«drdždQ„««ZCee%d,¬-«drdždR„««ZDee#e%d,¬-«e%e&¬.«dŸdS„««««ZE    dr                    d dT„ZFe            d¡                    d¢dU„«ZGee%d,¬-«dd£dV„««ZHee%d,¬-«dd£dW„««ZIee%d,¬-«e%e&¬.«dXddYd ejf                                            d¤dZ„«««ZJee%d,¬-«e%e&¬.«ejf            d¥d[„«««ZKee%d,¬-«e%e&¬.«ejf            d¥d\„«««ZLee%d,¬-«e%e&¬.«ejd f                    d¦d]„«««ZMee%d,¬-«e%e&¬.«ejd f                    d¦d^„«««ZNee%d,¬-«d4dejejdf                    d§d_„««ZOee%d,¬-«e%e&¬.«d4ejf                    d¨d`„«««ZPee%d,¬-«e%e&¬.«d4ejejdejf                            d©da„«««ZQee%d,¬-«e%e&¬.«dªd«db„«««ZRee%d,¬-«e%e&¬.«dªd«dc„«««ZSed¬dd„«ZTeeUj¬ddf                                    d­de„«ZWe                    d®                                    d¯df„«ZXd ejdd f                                            d°dg„ZYd±dh„ZZy)²r„a™
    Class for grouping and aggregating relational data.
 
    See aggregate, transform, and apply functions on this object.
 
    It's easiest to use obj.groupby(...) to use GroupBy, but you can also do:
 
    ::
 
        grouped = groupby(obj, ...)
 
    Parameters
    ----------
    obj : pandas object
    axis : int, default 0
    level : int, default None
        Level of MultiIndex
    groupings : list of Grouping objects
        Most users should ignore this
    exclusions : array-like, optional
        List of columns to exclude
    name : str
        Most users should ignore this
 
    Returns
    -------
    **Attributes**
    groups : dict
        {group name -> group labels}
    len(grouped) : int
        Number of groups
 
    Notes
    -----
    After grouping, see aggregate, apply, and transform functions. Here are
    some other brief notes about usage. When grouping by multiple groups, the
    result index will be a MultiIndex (hierarchical) by default.
 
    Iteration produces (key, group) tuples, i.e. chunking the data by group. So
    you can write code like:
 
    ::
 
        grouped = obj.groupby(keys, axis=axis)
        for key, group in grouped:
            # do something with the data
 
    Function calls on GroupBy, if not specially implemented, "dispatch" to the
    grouped data. So if you group a DataFrame and wish to invoke the std()
    method on each group, you can simply do:
 
    ::
 
        df.groupby(mapper).std()
 
    rather than
 
    ::
 
        df.groupby(mapper).aggregate(np.std)
 
    You can pass arguments to these "wrapped" functions, too.
 
    See the online documentation for full exposition on these topics and much
    more
    r™ršrr•NrTc     óx—||_t|t«sJt|««‚||_|s|dk7r t d«‚||_||_|    |_|
|_    | |_
|€4t|||||    | tjurdn| |j¬«\}}}| tjurBtd„|jD««r$t!j"dt$t'«¬«d} | |_||_|j-|«|_||_|rt3|«|_yt3«|_y)Nrz$as_index=False only valid for axis=0F)rr’r‘r–r“c3ó4K—|]}|j–—Œy­wrk©Ú_passed_categorical©rÃÚpings  rorÅz#GroupBy.__init__.<locals>.<genexpr>>sèø€ÒJ°4×+Õ+ÑJùó‚zÜThe default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.rå)rÙr»rOr«r’rÍr•rr‘r˜r“rSrÚ
no_defaultÚanyÚ    groupingsr©rªr¬r,r–rŽÚ_get_axis_numberrršÚ    frozensetr—) rmrŽrrr’r”r—Ú    selectionr•r‘r˜r–r“s              rorpzGroupBy.__init__s"€ð $ˆŒä˜#œwÔ'Ð2¬¨c«Ó2Ð'àˆŒ
áØqŠyÜ Ð!GÓHÐHà ˆŒ ؈Œ    ØˆŒ    Ø$ˆŒØˆŒ à ˆ?Ü'2ØØØØØØ"*¬c¯n©nÑ"<™À(Ø—{‘{ô(Ñ $ˆGZ ð ”s—~‘~Ñ %ÜÑJ¸×8IÑ8IÔJÔJÜ— ‘ ð8ô"Ü/Ó1õ ðˆHØ ˆŒ àˆŒØ×(Ñ(¨Ó.ˆŒ    ØˆŒ Ù3=œ) JÓ/ˆÄ9Ã;ˆrqcóº—||jvrtj||«S||jvr||St    dt |«j ›d|›d«‚)Nú'z' object has no attribute ')Ú_internal_names_setr¤Ú__getattribute__rŽÚAttributeErrorr«rx)rmrs  rorƒzGroupBy.__getattr__Osd€Ø 4×+Ñ+Ñ +Ü×*Ñ*¨4°Ó6Ð 6Ø 4—8‘8Ñ Ø˜‘:Ð äØ”T“
×#Ñ#Ð$Ð$?À¸vÀQÐ Gó
ð    
rqcó—|dk(r>tjt|«j›d|›dtt «¬«ytjdt|«j›d|›dtt «¬«y)Nräú.zo with axis=1 is deprecated and will be removed in a future version. Operate on the un-grouped DataFrame insteadråzThe 'axis' keyword in z\ is deprecated and will be removed in a future version. Call without passing 'axis' instead.)r©rªr«rxr¬r,)rmrr€s   roÚ_deprecate_axiszGroupBy._deprecate_axisYs|€à 1Š9Ü M‰Mܘ“:×&Ñ&Ð' q¨¨ð/$ð$ôÜ+Ó-ö  ô M‰MØ(¬¨d«×)<Ñ)<Ð(=¸Q¸t¸fðE7ð7ôÜ+Ó-ö  rqcó
‡‡‡    —tt|j«|«Š    tj‰    «}d‰vrF‰dt
j ur1|jj‰d«}|j||«nd‰vr|dk(rn|dk(rd‰d<nd‰d<d|jvrB‰jdd«!‰jd«t
j ur|j‰d<ˆˆ    ˆfd„}||_ |tjvr|j!||j"«S|tj$v}|j!||j|| ¬«}|j&j(r|r|j+|«}|S)z<Compute the result of an operation by using GroupBy's apply.rÚskewÚfillnaNrcó•—‰|g‰¢­i‰¤ŽSrkr‚)Úxrurwrvs €€€roÚcurriedz&GroupBy._op_via_apply.<locals>.curried†sø€ÙQÐ(˜Ò( Ñ(Ð (rq)Ú is_transformÚnot_indexed_same)rr«rÚÚinspectÚ    signaturerrrŽrrÚ
parametersrÏrrxrPÚplotting_methodsryrzÚtransformation_kernelsršÚhas_dropped_naÚ_set_result_index_ordered)
rmr€rurvÚsigrrrròrws
  ``     @roÚ _op_via_applyzGroupBy._op_via_applylssú€ô ”D˜×2Ñ2Ó3°TÓ :ˆÜ×Ñ Ó"ˆà VÑ   v¡´c·n±nÑ DØ—8‘8×,Ñ,¨V°F©^Ó<ˆDØ ×  Ñ    tÕ ,Ø vÑ ðvŠ~ØØ˜Ò!à!%v’à!"v‘ð S—^‘^Ñ #؏z‰z˜& $Ó'Ð/°6·:±:¸fÓ3EÌÏÉÑ3WØ!%§¡v‘ö    )ð
 ˆÔð ”4×(Ñ(Ñ (Ø×-Ñ-¨g°t×7IÑ7IÓJÐ Jàœt×:Ñ:Ð:ˆ Ø×+Ñ+Ø Ø × %Ñ %Ø%Ø!-Ð-ð    ,ó
ˆð =‰=× 'Ò '©Lð×3Ñ3°FÓ;ˆF؈ rqFcóš—ddlm}|jrž|sœ|jr\|jj
}|jj }|jj}|||j|||d¬«}nattt|«««}    |||j|    ¬«}n-|s|||j¬«}|jj|j«}
|jr#|jjd} | dk7} |
| }
|
j rƒ|j"|jj%|
«s[t'j(|
j*«} |j,j/| «\}}|j1||j¬«}n3|j3|
|jd¬«}n|||j¬«}|j4j6d    k(r|j4j8}n$t;|j<«r |j<}nd}t?|t@«r    |||_|S)
Nr©ÚconcatF)rrÚlevelsrÐr‘)rrræéÿÿÿÿ©rÚcopyrä)!Úpandas.core.reshape.concatr&r˜r•ršÚ result_indexr'rÐrrñÚrangerŸrzÚ    _get_axisr“Ú
group_infoÚhas_duplicatesÚaxesÚequalsr>Úunique1dÚ_valuesÚindexÚget_indexer_non_uniqueÚtakeÚreindexrŽÚndimr€r1rÙr»r\)rmÚvaluesrrr&r˜Ú group_levelsÚ group_namesròrÚaxÚlabelsÚmaskÚtargetrëÚ_r€s                 roÚ_concat_objectszGroupBy._concat_objects£sÈ€õ    6à ?Š?¡<؏}Š}à!Ÿ]™]×7Ñ7
Ø#Ÿ}™}×3Ñ3 Ø"Ÿm™m×1Ñ1 áØØŸ™Ø#Ø'Ø%Øô ’ôœE¤# f£+Ó.Ó/Ù ¨T¯Y©Y¸TÔB’â!Ù˜F¨¯©Ô3ˆFà×#Ñ#×-Ñ-¨d¯i©iÓ8ˆB؏{Š{ØŸ™×1Ñ1°!Ñ4Ø ‘|Ø˜‘Xð× Ò ¨¯©°T·Y±YÑ)?×)FÑ)FÀrÔ)Jä#×,Ñ,¨R¯Z©ZÓ8Ø#Ÿ\™\×@Ñ@ÀÓH‘
˜ØŸ™ W°4·9±9˜Ó=‘àŸ™¨°·±À˜ÓG‘ñ˜F¨¯©Ô3ˆFà 8‰8=‰=˜AÒ Ø—8‘8—=‘=‰DÜ ˜Ÿ™Ô )Ø—?‘?‰DàˆDä fœfÔ %¨$Ð*:؈FŒKàˆ rqcóh—|jj|j«}|jjr6|jj
s |j ||jd¬«}|St|jj««}|j ||jd¬«}|j|j¬«}|jj
r/|jtt|««|j¬«}|j ||jd¬«}|S)NFr)ræ) rŽr.rršÚ is_monotonicr Úset_axisrWÚ result_ilocsÚ
sort_indexr8rYrŸ)rmròÚobj_axisÚoriginal_positionss    ror!z!GroupBy._set_result_index_orderedçsç€ð—8‘8×%Ñ% d§i¡iÓ0ˆà =‰=× %Ò %¨d¯m©m×.JÒ.Jà—_‘_ X°D·I±IÀE_ÓJˆF؈Mô# 4§=¡=×#=Ñ#=Ó#?Ó@ÐØ—‘Ð!3¸$¿)¹)È%ÓPˆØ×"Ñ"¨¯    ©    Ð"Ó2ˆØ =‰=× 'Ò 'ð—^‘^¤J¬s°8«}Ó$=ÀDÇIÁI^ÓNˆFØ—‘ °·    ±    ÀÓFˆàˆ rqc
óü—t|t«r|j«}|j}t    t |j j«t |j j««t |j jDcgc]}|j‘Œc}««D]G\}}}||vsŒ |r|jd||«Œ"d}tj|tt«¬«ŒI|Scc}w)NrzéA grouping was used that is not in the columns of the DataFrame and so was excluded from the result. This grouping will be included in a future version of pandas. Add the grouping as a column of the DataFrame to silence this warning.©Úmessager§r¨)r»r\Úto_frameÚcolumnsrÇÚreversedršrÐÚget_group_levelsrÚin_axisÚinsertr©rªr¬r,)rmròrNÚgrpr€ÚlevrQrÓs        roÚ_insert_inaxis_grouperzGroupBy._insert_inaxis_groupersՀä fœfÔ %Ø—_‘_Ó&ˆFð—.‘.ˆÜ"%Ü T—]‘]×(Ñ(Ó )Ü T—]‘]×3Ñ3Ó5Ó 6Ü ¨T¯]©]×-DÑ-DÖE cc—k“kÒEÓ Fó#
ò    Ñ ˆD#wð˜7Ò"ÙØ—M‘M ! T¨3Õ/ðYðô —M‘MØ #Ü!.Ü#3Ó#5öð#    ð.ˆ ùò)FsÂC9cóì—|jdk(rd|j}|jj|jj«r)|jjj «|_|S)Nrä)rr#r5r2rŽr*)rmròs  roÚ_maybe_transpose_resultzGroupBy._maybe_transpose_result!sO€à 9‰9˜Š>à—X‘XˆF؏|‰|×"Ñ" 4§8¡8§>¡>Ô2ð $Ÿx™xŸ~™~×2Ñ2Ó4” ؈ rqcóL—|jsJ|j|«}|j«}tt    |j
j ««}n|j
j}| t||«}||_    |j|«}|j||¬«S)zÛ
        Wraps the output of GroupBy aggregations into the expected result.
 
        Parameters
        ----------
        result : Series, DataFrame
 
        Returns
        -------
        Series or DataFrame
        ©Úqs) r•rUÚ _consolidaterWr-ršr¯r,Ú_insert_quantile_levelr5rWÚ_reindex_output)rmròrZr5Úress     roÚ_wrap_aggregated_outputzGroupBy._wrap_aggregated_output,s—€ð(}Š}ð×0Ñ0°Ó8ˆFØ×(Ñ(Ó*ˆFÜœ% § ¡ × 5Ñ 5Ó6Ó7‰Eð—M‘M×.Ñ.ˆEà ˆ>ô+¨5°"Ó5ˆEàˆŒ ð×*Ñ*¨6Ó2ˆØ×#Ñ# C¨BÐ#Ó/Ð/rqcó—t|«‚rk©r&)rmÚdatar:rrs     roÚ_wrap_applied_outputzGroupBy._wrap_applied_outputVs€ô" $Ó'Ð'rqcóZ—|jj\}}}|jj}|jj}|j    ||j
¬«j «}|j}t|t«rat|jj«dkDr td«‚|jjdj}    |j|    «}|j    |«j «}
tj ||«\} } | | |
|fS)Nræräz_Grouping with more than 1 grouping labels and a MultiIndex is not supported with engine='numba'r)ršr/Ú    _sort_idxÚ _sorted_idsr7rÚto_numpyr5r»rXrŸrÚNotImplementedErrorr€Úget_level_valuesrÚgenerate_slices) rmrbÚidsrAr¯Ú sorted_indexÚ
sorted_idsÚ sorted_dataÚ
index_dataÚ    group_keyÚsorted_index_dataÚstartsÚendss              roÚ _numba_prepzGroupBy._numba_prepbs€àŸ-™-×2Ñ2‰ˆˆQØ—}‘}×.Ñ.ˆ Ø—]‘]×.Ñ.ˆ
à—i‘i  °4·9±9iÓ=×FÑFÓHˆ à—Z‘Zˆ
Ü j¤*Ô -ܐ4—=‘=×*Ñ*Ó+¨aÒ/Ü)ðHóð🠙 ×/Ñ/°Ñ2×7Ñ7ˆIØ#×4Ñ4°YÓ?ˆJØ&ŸO™O¨LÓ9×BÑBÓDÐä×*Ñ*¨:°wÓ?‰ ˆà Ø Ø Ø ð    
ð    
rqc ó¬—|js td«‚|jdk(r td«‚|j}|jdk(r|n|j «}t j||dfit|«¤Ž}|jj\}}    }    |jj}
|jj|f||
dœ|¤Ž} |jj| jd<|j!| | j¬«} |jdk(r$| j#d«} |j$| _| S|j&| _| S)    zp
        Perform groupby with a standard numerical aggregation function (e.g. mean)
        with Numba.
        z<as_index=False is not supported. Use .reset_index() instead.räzaxis=1 is not supported.éT)r>r¯)r1rN)r•rhrrÚr9rMr@Úgenerate_shared_aggregatorr^ršr/r¯Ú_mgrÚapplyr,r1Ú_constructor_from_mgrÚsqueezer€rN) rmrâÚ dtype_mappingÚ engine_kwargsÚaggregator_kwargsrbÚdfÚ
aggregatorrkrAr¯Úres_mgrròs              roÚ_numba_agg_generalzGroupBy._numba_agg_general}s<€ð}Š}Ü%ØNóð ð 9‰9˜Š>Ü%Ð&@ÓAÐ Aà×(Ñ(ˆØ—Y‘Y !’^‰T¨¯©«ˆä×8Ñ8Ø Ø Ø ñ
ô   Ó.ñ    
ˆ
ð—M‘M×,Ñ,‰    ˆˆQØ—-‘-×'Ñ'ˆà"—'‘'—-‘-Ø ð
Ø"¨Gñ
Ø7Hñ
ˆðŸ-™-×4Ñ4ˆ ‰ Q‰Ø×)Ñ)¨'¸¿ ¹ Ð)ÓEˆà 9‰9˜Š>Ø—^‘^ IÓ.ˆFØŸ)™)ˆFŒKðˆ ð"Ÿ\™\ˆFŒN؈ rq)r}c    ó8—|j}|jdk(r|n|j«}|j|«\}}}    }
t    j
|«t    j |fit||«¤Ž} | |
|    ||t|j«g|¢­Ž} | jtj|    «d¬«} |j} |jdk(rd|ji}| j«} nd|ji}|j | fd| i|¤ŽS)a(
        Perform groupby transform routine with the numba engine.
 
        This routine mimics the data splitting routine of the DataSplitter class
        to generate the indices of each group in the sorted data and then passes the
        data and indices into a Numba jitted function.
        rvrrærär€rNr5)rÚr9rMrtrQÚ validate_udfÚgenerate_numba_transform_funcr^rŸrNr7r½Úargsortr5r€ÚravelÚ _constructor)rmrâr}rurvrbrrrrsrlrnÚnumba_transform_funcròr5Ú result_kwargss               roÚ_transform_with_numbazGroupBy._transform_with_numbaªs€ð×(Ñ(ˆØ—Y‘Y !’^‰T¨¯©«ˆà26×2BÑ2BÀ2Ó2FÑ/ˆl KÜ×јDÔ!Ü%×CÑCØ ñ 
Ü% m°VÓ<ñ 
Ðñ&Ø Ø Ø Ø Ü —
‘
‹Oð 
ð ò 
ˆð—‘œRŸZ™Z¨ Ó5¸AÓ>ˆØ—
‘
ˆØ 9‰9˜Š>Ø# T§Y¡YÐ/ˆMØ—\‘\“^‰Fà&¨¯ © Ð5ˆMØ ˆt× Ñ  ÑF¨uÐF¸ ÑFÐFrqc    óp—|j}|jdk(r|n|j«}|j|«\}}}    }
t    j
|«t    j |fit||«¤Ž} | |
|    ||t|j«g|¢­Ž} |jj} |jdk(rd|ji}| j«} nd|ji}|j| fd| i|¤Ž}|js*|j!|«}t#t|««|_|S)a*
        Perform groupby aggregation routine with the numba engine.
 
        This routine mimics the data splitting routine of the DataSplitter class
        to generate the indices of each group in the sorted data and then passes the
        data and indices into a Numba jitted function.
        rvrär€rNr5)rÚr9rMrtrQr„Úgenerate_numba_agg_funcr^rŸrNršr,r€r‡rˆr•rUrZr5)rmrâr}rurvrbrrrrsrlrnÚnumba_agg_funcròr5rŠr^s                roÚ_aggregate_with_numbazGroupBy._aggregate_with_numbaÎs'€ð×(Ñ(ˆØ—Y‘Y !’^‰T¨¯©«ˆà26×2BÑ2BÀ2Ó2FÑ/ˆl KÜ×јDÔ!Ü×7Ñ7Ø ñ
Ü% m°VÓ<ñ
ˆñ Ø Ø Ø Ø Ü —
‘
‹Oð 
ð ò 
ˆð— ‘ ×*Ñ*ˆØ 9‰9˜Š>Ø# T§Y¡YÐ/ˆMØ—\‘\“^‰Fà&¨¯ © Ð5ˆM؈d×Ñ ÑE¨eÐE°}ÑEˆØ}Š}Ø×-Ñ-¨cÓ2ˆCÜ%¤c¨#£hÓ/ˆCŒI؈
rqreÚ    dataframerf)ÚinputrÞ)Úinclude_groupsc󇇇—‰}tj‰«Š|‰k7r tj|}t|||«t    ‰t
«rNt |‰«r3t|‰«}t|«r|‰i‰¤ŽS‰s‰rtd‰›«‚|Std‰›d«‚‰s‰r,t‰«rt‰«ˆˆˆfd„«}n td«‚‰}|s|j||j«Stdd«5    |j||j«}    t    |j t"«s„|j$€x|jj&|jj&k7rKt)j*t,j/t1|«j2d«t4t7«¬«ddd«|    S#t$r(|j||j«cYcddd«SwxYw#1swY    SxYw)    Nz"Cannot pass arguments to property z$apply func should be callable, not 'r có•—‰|g‰¢­i‰¤ŽSrkr‚)Úgrurârvs €€€rorwzGroupBy.apply.<locals>.fsø€á Ð3 DÒ3¨FÑ3Ð3rqz6func must be a callable if args or kwargs are suppliedzmode.chained_assignmentryrK)ràÚis_builtin_funcÚ_builtin_table_aliasrAr»rˆÚhasattrrÚcallablerÍÚ    TypeErrorr    ryrÚrrzrŽr\rÙÚshaper©rªÚ_apply_groupings_deprÚformatr«rxr¬r,)
rmrâr’rurvÚ    orig_funcÚaliasr^rwròs
 ` ``     roryz GroupBy.applyösòú€ð ˆ    Ü×"Ñ" 4Ó(ˆØ ˜Ò Ü×,Ñ,¨YÑ7ˆEÜ " 4¨°EÔ :ä dœCÔ  Üt˜TÔ"ܘd DÓ)Ü˜C”=Ù Ð/¨Ñ/Ð/Ù™VÜ$Ð'IÈ$ÈÐ%PÓQÐQؐ
ô Ð"FÀtÀfÈAРNÓOÐOá ‘VܘŒ~ät“õ4óñ4ô!ØLóððˆAáØ×-Ñ-¨a°×1JÑ1JÓKÐ KôÐ5°tÓ <ñ    Pð PØ×3Ñ3°A°t×7IÑ7IÓJä" 4§8¡8¬VÔ4ØŸ™Ð/Ø×*Ñ*×0Ñ0°D×4MÑ4M×4SÑ4SÒSä—M‘MÜ 5× <Ñ <Ü  ›J×/Ñ/°ó!ô"/Ü#3Ó#5õ ÷    Pð4ˆ øôò     Pð×1Ñ1°!°T×5NÑ5NÓOÑO÷1    Pñ    Pð     Pú÷    Pð4ˆ ús+Ã:G4Ã<B:GÇ%G1Ç%G4Ç0G1Ç1G4Ç4G>có†—|jj|||j«\}}|€|}|j||||«S)aÊ
        Apply function f in python space
 
        Parameters
        ----------
        f : callable
            Function to apply
        data : Series or DataFrame
            Data to apply f to
        not_indexed_same: bool, optional
            When specified, overrides the value of not_indexed_same. Apply behaves
            differently when the result index is equal to the input index, but
            this can be coincidental leading to value-dependent behavior.
        is_transform : bool, default False
            Indicator for whether the function is actually a transform
            and should not have group keys prepended.
        is_agg : bool, default False
            Indicator for whether the function is an aggregation. When the
            result is empty, we don't want to warn for this case.
            See _GroupBy._python_agg_general.
 
        Returns
        -------
        Series or DataFrame
            data after applying f
        )ršÚapply_groupwiserrc)rmrwrbrrÚis_aggr:Úmutateds        roryzGroupBy._python_apply_general<sP€ðFŸ-™-×7Ñ7¸¸4ÀÇÁÓK‰ˆØ Ð #Ø&Ð à×(Ñ(Ø Ø Ø Ø ó    
ð    
rqr()Únpfuncc ój—|jd||||dœ|¤Ž}|j|jd¬«S)N)ÚhowÚaltÚ numeric_onlyÚ    min_countrn©Úmethodr‚©Ú_cython_agg_generalÚ __finalize__rŽ)rmr¨r©rŸr¤rvròs       roÚ _agg_generalzGroupBy._agg_generaljsM€ð*×)Ñ)ð
ØØØ%Øñ    
ð
ñ 
ˆð×"Ñ" 4§8¡8°IÐ"Ó>Ð>rqcóN—|€J‚|jdk(rt|d¬«}nHt|j|j¬«}|j
ddk(sJ‚|j dd…df}    |jj||d¬«}|j}
|
tk(r|jtd¬«}n.t|
«r#|
j«} | j||
¬«}t!||¬ «S#t$r*}d    |›d
|j›d }    t|«|    «|‚d}~wwxYw) zn
        Fallback to pure-python aggregation if _cython_operation raises
        NotImplementedError.
        NräF©r*©ÚdtyperT)Úpreserve_dtypezagg function failed [how->z,dtype->ú])r9)r9r\rNr#r³r›rèršÚ
agg_seriesÚ    Exceptionr«r¤Úastyper8Úconstruct_array_typeÚ_from_sequencer[) rmr¦r:r9r§ÚserrÚ
res_valuesrÔrÓr³Ústring_array_clss             roÚ_agg_py_fallbackzGroupBy._agg_py_fallback}s%€ðˆÐˆà ;‰;˜!Ò ä˜ eÔ,‰Cô˜6Ÿ8™8¨6¯<©<Ô8ˆBð—8‘8˜A‘; !Ò#Ð #Ð#ð—'‘'š!˜Q˜$‘-ˆCð
    *ØŸ™×1Ñ1°#°sÈ4Ð1ÓPˆJð —    ‘    ˆØ ”FŠ?Ø#×*Ñ*¬6¸Ð*Ó>‰JÜ ˜UÔ #à$×9Ñ9Ó;Ð Ø)×8Ñ8¸È5Ð8ÓQˆJô " *°4Ô8Ð8øô#ò    *Ø.¨s¨e°8¸C¿I¹I¸;ÀaÐHˆCà”$s“)˜C“. cÐ )ûð    *úsÁ+C1Ã1    D$Ã:%DÄD$c 󠇇‡‡‡‡
—‰j|‰¬«Š
dˆˆ
ˆˆˆˆfd„ }‰
j|«}‰j|«}‰dvr‰j|«}‰j    |«}    ‰j
dk(r|    j d¬«}    |    S)N©r¨r€có•—    ‰jjd|‰f‰jdz
‰dœ‰¤Ž}|S#t$r‰dvrt    |t
«rn‰‰dvr‚YnwxYw‰€J‚‰j ‰|‰j‰¬«}|S)NÚ    aggregaterä©rr©©rÚall)rrÅÚstdÚsem)r9r§)ršÚ_cython_operationr9rhr»rHr¾)r:ròr§rbr¦rvr©rms  €€€€€€roÚ
array_funcz/GroupBy._cython_agg_general.<locals>.array_funcºs³ø€ð Ø8˜Ÿ™×8Ñ8ØØØð🙠Q™Ø'ñ ð ñ ð& øô'ò     ð ˜.Ñ(¬Z¸Ä Ô-LØØ[ CÐ+GÑ$GØùð     úð?Ð "?Ø×*Ñ*¨3°¸T¿Y¹YÈCÐ*ÓPˆF؈Msƒ/4´%AÁA©ÚidxminÚidxmaxräFr±©r:rr…r)Ú_get_data_to_aggregateÚgrouped_reduceÚ_wrap_agged_managerÚ_wrap_idxmax_idxminr_rÚ infer_objects) rmr¦r§r¨r©rvrÉÚnew_mgrr^Úoutrbs ``` ``    @ror­zGroupBy._cython_agg_general¬s’ý€ð×*Ñ*¸ È3Ð*ÓOˆ÷    ò    ð6×%Ñ% jÓ1ˆØ×&Ñ& wÓ/ˆØ Ð&Ñ &Ø×*Ñ*¨3Ó/ˆCØ×*Ñ*¨3Ó/ˆØ 9‰9˜Š>Ø×#Ñ#¨Ð#Ó/ˆC؈
rqc ó—t|«‚rkra)rmr¦r¨rrvs     roÚ_cython_transformzGroupBy._cython_transformÞs€ô" $Ó'Ð'rq)Úenginer}cóŠ—|}tj|«xs|}||k7r t|||«t|t«s|j
|||g|¢­i|¤ŽS|t jvrd|›d}t|«‚|t jvs|t jvr|
||d<||d<t||«|i|¤ŽStj|dd«5|dvr+ttd|«}|j|dg|¢­i|¤Ž}n|
||d<||d<t||«|i|¤Ž}ddd«|j!«S#1swYŒxYw)Nr z2' is not a valid function name for transform(name)r×r}r•TrÊ)ràÚget_cython_funcrAr»rˆÚ_transform_generalrPÚtransform_kernel_allowlistrÍÚcythonized_kernelsrrÚ temp_setattrrr Ú_idxmax_idxminÚ_wrap_transform_fast_result)    rmrâr×r}rurvržrÓròs             roÚ
_transformzGroupBy._transformãs€€ðˆ    Ü×"Ñ" 4Ó(Ò0¨DˆØ ˜Ò Ü " 4¨°DÔ 9ä˜$¤Ô$Ø*4×*Ñ*¨4°¸ÐXÈÒXÐQWÑXÐ Xà œ×8Ñ8Ñ 8ؐdVÐMÐNˆCܘS“/Ð !Ø ”T×,Ñ,Ñ ,°¼×8SÑ8SÑ0SàÐ!Ø#)xÑ Ø*7Ñ'Ø&”7˜4 Ó&¨Ð7°Ñ7Ð 7ô×!Ñ! $¨
°DÓ9ñ
BðÐ/Ñ/ܤÐ(:Ñ ;¸TÓBDØ0˜T×0Ñ0°°tÐM¸dÒMÀfÑM‘FàÐ)Ø+1˜˜xÑ(Ø2?˜˜Ñ/Ø0œW T¨4Ó0°$ÐA¸&ÑAF÷
Bð×3Ñ3°FÓ;Ð ;÷
Bð
Bús ÃAD9Ä9Ecóz—|j}|jj\}}}|j|jj|j
d¬«}|j jdk(rJtj|j|«}|j||j|j¬«}|S|jdk(rdn |j
}|j|j|«}|j!|||fidd¬«}|j#|j%|j
«|¬«}|S)    z7
        Fast transform path for aggregations.
        Fr)rä©r5r€rT)Ú
allow_dupsr*ræ)rÚršr/r8r,rrŽr9r>Útake_ndr4rˆr5r€r1r7Ú_reindex_with_indexersrEr.)    rmròrŽrkrArÔÚoutputrÚnew_axs             rorßz#GroupBy._wrap_transform_fast_result s€ð
×'Ñ'ˆð—M‘M×,Ñ,‰    ˆˆQØ—‘ § ¡ × :Ñ :ÀÇÁÐQVÓWˆà 8‰8=‰=˜AÒ ä×$Ñ$ V§^¡^°SÓ9ˆCØ×%Ñ% c°·±ÀÇÁÐ%ÓJˆFðˆ 🠙  qÒ(‘1¨d¯i©iˆDð—[‘[ Ñ&×+Ñ+¨CÓ0ˆFØ×2Ñ2ؘ }Ð%°$¸Uð3óˆFð—_‘_ S§]¡]°4·9±9Ó%=ÀD_ÓIˆF؈ rqcóx—t|«dk(rtjgd¬«}n(tjtj|««}|r)|j
j ||j¬«}|Stjt|j
j«t¬«}|jd«d||jt«<tj|t|j
j dd«dgz«j"}|j
j%|«}|S)NrÚint64r²ræFTrä)rŸr½Úarrayr‘Ú concatenaterzr7rÚemptyr5rÚfillr¸rôÚtilerñr›r#Úwhere)rmr±r“Úfilteredr?s     roÚ _apply_filterzGroupBy._apply_filter,sð€ä ˆw‹<˜1Ò Ü—h‘h˜r¨Ô1‰Gä—g‘gœbŸn™n¨WÓ5Ó6ˆGÙ Ø×)Ñ)×.Ñ.¨w¸T¿Y¹YÐ.ÓGˆHðˆô —8‘8œC × 2Ñ 2× 8Ñ 8Ó9ÄÔFˆDØ I‰IeÔ Ø(,ˆD—‘¤Ó$Ñ %ä—7‘7˜4¤ d×&8Ñ&8×&>Ñ&>¸q¸rÐ&BÓ!CÀqÀcÑ!IÓJ×LÑLˆDØ×)Ñ)×/Ñ/°Ó5ˆH؈rqcóà—|jj\}}}t||«}||t|«}}|dk(r%t    j
dtj ¬«Stjd|dd|ddk7f}t    jtjt    j|«d|f«}|j«}    |r|    t    j|    ||«z}    n2t    j|    tj|dddf|«|    z
}    |jjrHt    j|dk(tj|    jtj d¬««}    n!|    jtj d¬«}    t    j
|tj"¬«}
t    j$|tj"¬«|
|<|    |
S)    a.
        Parameters
        ----------
        ascending : bool, default True
            If False, number in reverse, from length of group - 1 to 0.
 
        Notes
        -----
        this is currently implementing sort=False
        (though the default is sort=True) for groupby in general
        rr²TNr(räFr±)ršr/r]rŸr½rìréÚr_ÚdiffÚnonzeroÚcumsumÚrepeatr rïÚnanr¸Úfloat64ÚintpÚarange) rmÚ    ascendingrkrAr¯ÚsorterÚcountÚrunÚreprÔÚrevs            roÚ_cumcount_arrayzGroupBy._cumcount_array=sx€ðŸ-™-×2Ñ2‰ˆˆQÜ'¨¨WÓ5ˆØ˜‘[¤# c£(ˆUˆà AŠ:Ü—8‘8˜A¤R§X¡XÔ.Ð .äe‰eD˜#˜c˜r˜( c¨!¨" gÑ-Ð-Ñ.ˆÜg‰g”b—e‘eœBŸJ™J s›O¨AÑ.°Ð5Ñ6Ó7ˆØˆtm‰m‹oˆá Ø ”2—9‘9˜S ™X sÓ+Ñ +‰Cä—)‘)˜C¤§¡ c¨!¨" g¨t mÑ 4Ñ5°sÓ;¸cÑAˆCà =‰=× 'Ò 'Ü—(‘(˜3 "™9¤b§f¡f¨c¯j©j¼¿¹È%¨jÓ.PÓQ‰Cà—*‘*œRŸX™X¨E*Ó2ˆCäh‰hu¤B§G¡GÔ,ˆÜ—i‘i ¬R¯W©WÔ5ˆˆF‰ ؐ3‰xˆrqcóƗt|jt«r|jjSt|jt«sJ‚|jj
Srk)r»rŽrNÚ_constructor_slicedr\rˆr¡s roÚ_obj_1d_constructorzGroupBy._obj_1d_constructoresF€ô d—h‘h¤    Ô *Ø—8‘8×/Ñ/Ð /ܘ$Ÿ(™(¤FÔ+Ð+Ð+؏x‰x×$Ñ$Ð$rqrn©r€)Úsee_alsocó2‡—|jdˆfd„‰¬«S)aÌ
        Return True if any value in the group is truthful, else False.
 
        Parameters
        ----------
        skipna : bool, default True
            Flag to ignore nan values during truth testing.
 
        Returns
        -------
        Series or DataFrame
            DataFrame or Series of boolean values, where a value is True if any element
            is True within its respective group, False otherwise.
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 0], index=lst)
        >>> ser
        a    1
        a    2
        b    0
        dtype: int64
        >>> ser.groupby(level=0).any()
        a     True
        b    False
        dtype: bool
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 0, 3], [1, 0, 6], [7, 1, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["ostrich", "penguin", "parrot"])
        >>> df
                 a  b  c
        ostrich  1  0  3
        penguin  1  0  6
        parrot   7  1  9
        >>> df.groupby(by=["a"]).any()
               b      c
        a
        1  False   True
        7   True   True
        rcó>•—t|d¬«j‰¬«S©NFr±)Úskipna)r\r©rr s €ror·zGroupBy.any.<locals>.<lambda>¢óø€œ& ¨Ô/×3Ñ3¸6Ð3ÓB€rq©r§r ©r­©rmr s `rorz GroupBy.anyns'ø€ðd×'Ñ'Ø ÛBØð(ó
ð    
rqcó2‡—|jdˆfd„‰¬«S)aÑ
        Return True if all values in the group are truthful, else False.
 
        Parameters
        ----------
        skipna : bool, default True
            Flag to ignore nan values during truth testing.
 
        Returns
        -------
        Series or DataFrame
            DataFrame or Series of boolean values, where a value is True if all elements
            are True within its respective group, False otherwise.
        %(see_also)s
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 0], index=lst)
        >>> ser
        a    1
        a    2
        b    0
        dtype: int64
        >>> ser.groupby(level=0).all()
        a     True
        b    False
        dtype: bool
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 0, 3], [1, 5, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["ostrich", "penguin", "parrot"])
        >>> df
                 a  b  c
        ostrich  1  0  3
        penguin  1  5  6
        parrot   7  8  9
        >>> df.groupby(by=["a"]).all()
               b      c
        a
        1  False   True
        7   True   True
        rÅcó>•—t|d¬«j‰¬«Sr
)r\rÅr s €ror·zGroupBy.all.<locals>.<lambda>Ûr rqrrrs `rorÅz GroupBy.all¦s'ø€ðf×'Ñ'Ø ÛBØð(ó
ð    
rqcó|‡‡‡    ‡
—|j«}|jj\Š}Š
‰dk7Š    |jdk(Šd    ˆˆˆ    ˆ
fd„ }|j    |«}|j |«}t j|dd«5|j|«}ddd«|jd¬«S#1swYŒxYw)
af
        Compute count of group, excluding missing values.
 
        Returns
        -------
        Series or DataFrame
            Count of values within each group.
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, np.nan], index=lst)
        >>> ser
        a    1.0
        a    2.0
        b    NaN
        dtype: float64
        >>> ser.groupby(level=0).count()
        a    2
        b    0
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, np.nan, 3], [1, np.nan, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["cow", "horse", "bull"])
        >>> df
                a      b    c
        cow     1    NaN    3
        horse    1    NaN    6
        bull    7    8.0    9
        >>> df.groupby("a").count()
            b   c
        a
        1   0   2
        7   1   1
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3, 4], index=pd.DatetimeIndex(
        ...                 ['2023-01-01', '2023-01-15', '2023-02-01', '2023-02-15']))
        >>> ser
        2023-01-01    1
        2023-01-15    2
        2023-02-01    3
        2023-02-15    4
        dtype: int64
        >>> ser.resample('MS').count()
        2023-01-01    2
        2023-02-01    2
        Freq: MS, dtype: int64
        r(räcóT•—|jdk(r ‰t|«jdd«z}n‰t|«z}tj|‰‰¬«}t |t «r@t|dtj|jdtj¬«¬«St |t«rDt |jt«s*td«}t!|«j#|d|¬«S‰r*|jdk(sJ‚|jddk(sJ‚|dS|S)    Nrär()r>Úmax_binrr²)r?zint64[pyarrow]rv)r9r;ÚreshaperÚcount_level_2dr»rCrGr½Úzerosr›Úbool_rBr³rIr:r«rº)ÚbvaluesÚmaskedÚcountedr³rkÚ    is_seriesr?r¯s    €€€€roÚhfunczGroupBy.count.<locals>.hfunc     s ø€à|‰|˜qҠठg£×!6Ñ!6°q¸"Ó!=Р=Ñ=‘ठg£ Ñ.ä×(Ñ(¨¸ÀWÔMˆGܘ'¤?Ô3Ü#ؘA‘J¤R§X¡X¨g¯m©m¸AÑ.>ÄbÇhÁhÔ%Oôðô˜GÔ%8Ô9Ä*Ø— ‘ œ{ôCô%Ð%5Ó6Ü˜G“}×3Ñ3°G¸A±JÀeÐ3ÓLÐLÙØ—|‘| qÒ(Ð(Ð(Ø—}‘} QÑ'¨1Ò,Ð,Ð,ؘq‘zÐ!؈Nrqr–TNr©Ú
fill_value)rrr…r)
rÎršr/r9rÏrÐràrÝr_r]) rmrbrArrÓÚnew_objròrkrr?r¯s        @@@@rorþz GroupBy.countßs¼û€ðv×*Ñ*Ó,ˆØŸ-™-×2Ñ2‰ˆˆQØb‰yˆà—I‘I ‘Nˆ    ÷    ð    ð0×%Ñ% eÓ,ˆØ×*Ñ*¨7Ó3ˆô × Ñ ˜d J°Ó 5ñ    ;Ø×1Ñ1°'Ó:ˆF÷    ;ð×#Ñ# F°qÐ#Ó9Ð9÷    ;ð    ;ús ÂB2Â2B;cóԇ—t|«r)ddlm}|j|tj
|d¬«S|j dˆfd„‰¬«}|j|jd¬«S)    aW
        Compute mean of groups, excluding missing values.
 
        Parameters
        ----------
        numeric_only : bool, default False
            Include only float, int, boolean columns.
 
            .. versionchanged:: 2.0.0
 
                numeric_only no longer accepts ``None`` and defaults to ``False``.
 
        engine : str, default None
            * ``'cython'`` : Runs the operation through C-extensions from cython.
            * ``'numba'`` : Runs the operation through JIT compiled code from numba.
            * ``None`` : Defaults to ``'cython'`` or globally setting
              ``compute.use_numba``
 
            .. versionadded:: 1.4.0
 
        engine_kwargs : dict, default None
            * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
            * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
              and ``parallel`` dictionary keys. The values must either be ``True`` or
              ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
              ``{{'nopython': True, 'nogil': False, 'parallel': False}}``
 
            .. versionadded:: 1.4.0
 
        Returns
        -------
        pandas.Series or pandas.DataFrame
        %(see_also)s
        Examples
        --------
        >>> df = pd.DataFrame({'A': [1, 1, 2, 1, 2],
        ...                    'B': [np.nan, 2, 3, 4, 5],
        ...                    'C': [1, 2, 1, 1, 2]}, columns=['A', 'B', 'C'])
 
        Groupby one column and return the mean of the remaining columns in
        each group.
 
        >>> df.groupby('A').mean()
             B         C
        A
        1  3.0  1.333333
        2  4.0  1.500000
 
        Groupby two columns and return the mean of the remaining column.
 
        >>> df.groupby(['A', 'B']).mean()
                 C
        A B
        1 2.0  2.0
          4.0  1.0
        2 3.0  1.0
          5.0  2.0
 
        Groupby one column and return the mean of only particular column in
        the group.
 
        >>> df.groupby('A')['B'].mean()
        A
        1    3.0
        2    4.0
        Name: B, dtype: float64
        r)Ú grouped_mean©Ú min_periodsÚmeancó>•—t|d¬«j‰¬«S©NFr±)r¨)r\r&©rr¨s €ror·zGroupBy.mean.<locals>.<lambda>    sø€œf Q¨UÔ3×8Ñ8ÀlÐ8ÓS€rq©r§r¨rnrª)    r_Úpandas.core._numba.kernelsr#r‚r@Úfloat_dtype_mappingr­r®rŽ)rmr¨r×r}r#ròs `    ror&z GroupBy.meanD    swø€ôZ ˜6Ô "Ý ?à×*Ñ*ØÜ×,Ñ,ØØð    +óð ð×-Ñ-ØÛSØ)ð.óˆFð
×&Ñ& t§x¡x¸    Ð&ÓBÐ Brqcól‡—|jdˆfd„‰¬«}|j|jd¬«S)aþ
        Compute median of groups, excluding missing values.
 
        For multiple groupings, the result index will be a MultiIndex
 
        Parameters
        ----------
        numeric_only : bool, default False
            Include only float, int, boolean columns.
 
            .. versionchanged:: 2.0.0
 
                numeric_only no longer accepts ``None`` and defaults to False.
 
        Returns
        -------
        Series or DataFrame
            Median of values within each group.
 
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'a', 'b', 'b', 'b']
        >>> ser = pd.Series([7, 2, 8, 4, 3, 3], index=lst)
        >>> ser
        a     7
        a     2
        a     8
        b     4
        b     3
        b     3
        dtype: int64
        >>> ser.groupby(level=0).median()
        a    7.0
        b    3.0
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = {'a': [1, 3, 5, 7, 7, 8, 3], 'b': [1, 4, 8, 4, 4, 2, 1]}
        >>> df = pd.DataFrame(data, index=['dog', 'dog', 'dog',
        ...                   'mouse', 'mouse', 'mouse', 'mouse'])
        >>> df
                 a  b
          dog    1  1
          dog    3  4
          dog    5  8
        mouse    7  4
        mouse    7  4
        mouse    8  2
        mouse    3  1
        >>> df.groupby(level=0).median()
                 a    b
        dog    3.0  4.0
        mouse  7.0  3.0
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3, 3, 4, 5],
        ...                 index=pd.DatetimeIndex(['2023-01-01',
        ...                                         '2023-01-10',
        ...                                         '2023-01-15',
        ...                                         '2023-02-01',
        ...                                         '2023-02-10',
        ...                                         '2023-02-15']))
        >>> ser.resample('MS').median()
        2023-01-01    2.0
        2023-02-01    4.0
        Freq: MS, dtype: float64
        Úmediancó>•—t|d¬«j‰¬«Sr()r\r.r)s €ror·z GroupBy.median.<locals>.<lambda>í    sø€œ& ¨Ô/×6Ñ6ÀLÐ6ÓQ€rqr*rnrªr¬)rmr¨ròs ` ror.zGroupBy.median¢    s@ø€ðR×)Ñ)Ø ÛQØ%ð*ó
ˆð
×"Ñ" 4§8¡8°IÐ"Ó>Ð>rqräc    óć—t|«r=ddlm}tj|j |t j|d‰¬««S|jdˆfd„|‰¬«S)aŒ    
        Compute standard deviation of groups, excluding missing values.
 
        For multiple groupings, the result index will be a MultiIndex.
 
        Parameters
        ----------
        ddof : int, default 1
            Degrees of freedom.
 
        engine : str, default None
            * ``'cython'`` : Runs the operation through C-extensions from cython.
            * ``'numba'`` : Runs the operation through JIT compiled code from numba.
            * ``None`` : Defaults to ``'cython'`` or globally setting
              ``compute.use_numba``
 
            .. versionadded:: 1.4.0
 
        engine_kwargs : dict, default None
            * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
            * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
              and ``parallel`` dictionary keys. The values must either be ``True`` or
              ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
              ``{{'nopython': True, 'nogil': False, 'parallel': False}}``
 
            .. versionadded:: 1.4.0
 
        numeric_only : bool, default False
            Include only `float`, `int` or `boolean` data.
 
            .. versionadded:: 1.5.0
 
            .. versionchanged:: 2.0.0
 
                numeric_only now defaults to ``False``.
 
        Returns
        -------
        Series or DataFrame
            Standard deviation of values within each group.
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'a', 'b', 'b', 'b']
        >>> ser = pd.Series([7, 2, 8, 4, 3, 3], index=lst)
        >>> ser
        a     7
        a     2
        a     8
        b     4
        b     3
        b     3
        dtype: int64
        >>> ser.groupby(level=0).std()
        a    3.21455
        b    0.57735
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = {'a': [1, 3, 5, 7, 7, 8, 3], 'b': [1, 4, 8, 4, 4, 2, 1]}
        >>> df = pd.DataFrame(data, index=['dog', 'dog', 'dog',
        ...                   'mouse', 'mouse', 'mouse', 'mouse'])
        >>> df
                 a  b
          dog    1  1
          dog    3  4
          dog    5  8
        mouse    7  4
        mouse    7  4
        mouse    8  2
        mouse    3  1
        >>> df.groupby(level=0).std()
                      a         b
        dog    2.000000  3.511885
        mouse  2.217356  1.500000
        r©Ú grouped_var©r%ÚddofrÆcó>•—t|d¬«j‰¬«S©NFr±)r4)r\rÆ©rr4s €ror·zGroupBy.std.<locals>.<lambda>Z
óø€œf Q¨UÔ3×7Ñ7¸TÐ7ÓB€rq©r§r¨r4)    r_r+r2r½Úsqrtr‚r@r,r­©rmr4r×r}r¨r2s `    rorÆz GroupBy.stdò    spø€ôr ˜6Ô "Ý >ä—7‘7Ø×'Ñ'ØÜ×0Ñ0Ø!Ø !Øð (óóð ð×+Ñ+ØÛBØ)Øð    ,óð rqc󞇗t|«r*ddlm}|j|tj
|d‰¬«S|j dˆfd„|‰¬«S)a    
        Compute variance of groups, excluding missing values.
 
        For multiple groupings, the result index will be a MultiIndex.
 
        Parameters
        ----------
        ddof : int, default 1
            Degrees of freedom.
 
        engine : str, default None
            * ``'cython'`` : Runs the operation through C-extensions from cython.
            * ``'numba'`` : Runs the operation through JIT compiled code from numba.
            * ``None`` : Defaults to ``'cython'`` or globally setting
              ``compute.use_numba``
 
            .. versionadded:: 1.4.0
 
        engine_kwargs : dict, default None
            * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
            * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
              and ``parallel`` dictionary keys. The values must either be ``True`` or
              ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
              ``{{'nopython': True, 'nogil': False, 'parallel': False}}``
 
            .. versionadded:: 1.4.0
 
        numeric_only : bool, default False
            Include only `float`, `int` or `boolean` data.
 
            .. versionadded:: 1.5.0
 
            .. versionchanged:: 2.0.0
 
                numeric_only now defaults to ``False``.
 
        Returns
        -------
        Series or DataFrame
            Variance of values within each group.
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'a', 'b', 'b', 'b']
        >>> ser = pd.Series([7, 2, 8, 4, 3, 3], index=lst)
        >>> ser
        a     7
        a     2
        a     8
        b     4
        b     3
        b     3
        dtype: int64
        >>> ser.groupby(level=0).var()
        a    10.333333
        b     0.333333
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = {'a': [1, 3, 5, 7, 7, 8, 3], 'b': [1, 4, 8, 4, 4, 2, 1]}
        >>> df = pd.DataFrame(data, index=['dog', 'dog', 'dog',
        ...                   'mouse', 'mouse', 'mouse', 'mouse'])
        >>> df
                 a  b
          dog    1  1
          dog    3  4
          dog    5  8
        mouse    7  4
        mouse    7  4
        mouse    8  2
        mouse    3  1
        >>> df.groupby(level=0).var()
                      a          b
        dog    4.000000  12.333333
        mouse  4.916667   2.250000
        rr1r3Úvarcó>•—t|d¬«j‰¬«Sr6)r\r=r7s €ror·zGroupBy.var.<locals>.<lambda>Å
r8rqr9)r_r+r2r‚r@r,r­r;s `    ror=z GroupBy.var_
sdø€ôr ˜6Ô "Ý >à×*Ñ*ØÜ×,Ñ,ØØØð +óð ð×+Ñ+ØÛBØ)Øð    ,óð rqc    óÀ    —|jdk(r td«‚|rdnd}|j}|j}|jj
D    chc]}    |    j sŒ|    j’Œ}
}    t|t«r|j} | |
vrgn|g} n™t|j«} |@t|«}|t|
«z}|rtd|›d«‚|| z
}|rtd|›d«‚| }t|j«D cgc] \}} | |
vr| |vr|jdd…|f‘Œ"} }} t|jj
«}| D]C}t!|||j|j"d    |¬
«\}}}|t|j
«z }ŒE|j%||j"|j&|j(¬ «}t+t|j-««}||_t/d „|D««r[|Dcgc]}|j0‘Œ}}t3j4||Dcgc]}|j‘Œc}¬ «}|j7|d¬«}|r|j9|d¬«}|j"rŽ|j:j<}t?tA|««|j:_tt?tA|jj
«««}|jC|d    ¬«}||j:_|r­tt?tA|jj
«|j:jD««}|j%|j:jG|«|j"|j(d    ¬«jId«}||z}|jKd«}|jLr|}nã|j:} tOjP| j<«}!||!vrtd|›d«‚||_| jSt?tA|!«««|_|jU«}"|jj
djjjV}#tY|!|#¬«j[tA|!«|«}$|$|"_ |"}|j]|jd¬«Scc}    wcc} }wcc}wcc}w)zø
        Shared implementation of value_counts for SeriesGroupBy and DataFrameGroupBy.
 
        SeriesGroupBy additionally supports a bins argument. See the docstring of
        DataFrameGroupBy.value_counts for a description of arguments.
        räz1DataFrameGroupBy.value_counts only handles axis=0Ú
proportionrþNzKeys z0 in subset cannot be in the groupby column keys.z) in subset do not exist in the DataFrame.F)r¶rr‘r–r“)r‘r–r“c3ózK—|]3}t|jttf«xr |j –—Œ5y­wrk)r»Úgrouping_vectorrDrVÚ    _observed)rÃÚgroupings  rorÅz(GroupBy._value_counts.<locals>.<genexpr> sCèø€ò
ðô x×/Ñ/´+Ô?OÐ1PÓ Qò 'Ø×&Ñ&Ð&ó 'ñ
ùs‚9;©rÐrrÚstable)rüÚkind)r’Úsort_remaining)r‘r“r–ÚsumgzColumn label 'z' is duplicate of result columnr²Ú value_countsrª)/rrhrŽrÚršrrQr€r»r\ÚsetrNrÍÚ    enumeraterèrñrSr‘rnr–r“rÚsizerÚ _result_indexrXÚ from_productr8Ú sort_valuesr5rÐr-rŸrGÚnlevelsÚ    droplevelÚ    transformrr•ràÚfill_missing_namesÚ    set_namesÚ reset_indexr³rWrRr®)%rmÚsubsetÚ    normalizer‘rür“r€rrŽrDÚ in_axis_namesÚ_namerÚ unique_colsÚ    subsettedÚclashingÚ doesnt_existÚidxrr¶r”rAÚgbÚ result_seriesrÚ levels_listÚ multi_indexrÐÚ index_levelr'Úindexed_group_sizeròr5rNÚ result_frameÚ
orig_dtypeÚcolss%                                     roÚ _value_countszGroupBy._value_countsÊ
s­€ð 9‰9˜Š>Ü%ØCóð ñ )‰|¨gˆà X‰XˆØ×'Ñ'ˆð+/¯-©-×*AÑ*Aö
Ø&ÀX×EUÓEUˆHM‹Mð
ˆ ð
ô cœ6Ô "Ø—H‘HˆEØ -Ñ/‘2°c°U‰Dä˜cŸk™kÓ*ˆKØÐ!Ü ›K    Ø$¤s¨=Ó'9Ñ9ÙÜ$Ø ˜zð*3ð3óðð )¨;Ñ6 ÙÜ$Ø  ˜~ð.2ð3óðð
(    ô
#,¨C¯K©KÓ"8÷ñC˜Ø  Ñ-°%¸9Ñ2Dð—‘š˜C˜Ó ðˆDñô˜Ÿ™×0Ñ0Ó1ˆ    Øò        1ˆCÜ'ØØØ—Y‘YØ—Y‘YØØô ‰MˆGQ˜ð œ˜g×/Ñ/Ó0Ñ 0‰Ið        1ðZ‰ZØ Ø—‘Ø—]‘]Ø—;‘;ð    ó
ˆô œV R§W¡W£YÓ/ˆ Ø!ˆ Ôô ñ
ð&ô
ô
ð
;DÖD°$˜4×-Ó-ÐDˆKÐDÜ$×1Ñ1ظ)Ö#D°$ D§I£IÒ#DôˆKð*×1Ñ1°+È!Ð1ÓLˆMá à)×5Ñ5Ø#¨(ð6óˆMð 9Š9à!×'Ñ'×-Ñ-ˆEä(-¬c°%«jÓ(9ˆM× Ñ Ô %Üœu¤S¨¯©×)@Ñ)@Ó%AÓBÓCˆKØ)×4Ñ4Ø!°%ð5óˆMð).ˆM× Ñ Ô %á ôÜ”c˜$Ÿ-™-×1Ñ1Ó2°M×4GÑ4G×4OÑ4OÓPóˆFð"/×!6Ñ!6Ø×#Ñ#×-Ñ-¨fÓ5Ø—Y‘YØ—{‘{àð "7ó"÷ ‰i˜Óð ð Ð/Ñ /ˆMð*×0Ñ0°Ó5ˆMð =Š=Ø"‰Fð"×'Ñ'ˆEÜ×,Ñ,¨U¯[©[Ó9ˆGؐw‰Ü  >°$°Ð7VÐ!WÓXÐXØ!%ˆMÔ Ø"'§/¡/´%¼¸G» Ó2EÓ"FˆMÔ Ø(×4Ñ4Ó6ˆLØŸ™×0Ñ0°Ñ3×7Ñ7×?Ñ?×EÑEˆJܘ¨
Ô3×:Ñ:¼3¸w»<ÈÓNˆDØ#'ˆLÔ  Ø!ˆFØ×"Ñ" 4§8¡8°NÐ"ÓCÐCùòm
ùó2ùòHEùâ#DsÁS Á#S Ä
%SÈSÈ0S
có‡—|rr|jjdk(rYt|jj«s:t    t |«j ›d|›d|jj›«‚|jdˆfd„|‰¬«S)a+
        Compute standard error of the mean of groups, excluding missing values.
 
        For multiple groupings, the result index will be a MultiIndex.
 
        Parameters
        ----------
        ddof : int, default 1
            Degrees of freedom.
 
        numeric_only : bool, default False
            Include only `float`, `int` or `boolean` data.
 
            .. versionadded:: 1.5.0
 
            .. versionchanged:: 2.0.0
 
                numeric_only now defaults to ``False``.
 
        Returns
        -------
        Series or DataFrame
            Standard error of the mean of values within each group.
 
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([5, 10, 8, 14], index=lst)
        >>> ser
        a     5
        a    10
        b     8
        b    14
        dtype: int64
        >>> ser.groupby(level=0).sem()
        a    2.5
        b    3.0
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 12, 11], [1, 15, 2], [2, 5, 8], [2, 6, 12]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tuna", "salmon", "catfish", "goldfish"])
        >>> df
                   a   b   c
            tuna   1  12  11
          salmon   1  15   2
         catfish   2   5   8
        goldfish   2   6  12
        >>> df.groupby("a").sem()
              b  c
        a
        1    1.5  4.5
        2    0.5  2.0
 
        For Resampler:
 
        >>> ser = pd.Series([1, 3, 2, 4, 3, 8],
        ...                 index=pd.DatetimeIndex(['2023-01-01',
        ...                                         '2023-01-10',
        ...                                         '2023-01-15',
        ...                                         '2023-02-01',
        ...                                         '2023-02-10',
        ...                                         '2023-02-15']))
        >>> ser.resample('MS').sem()
        2023-01-01    0.577350
        2023-02-01    1.527525
        Freq: MS, dtype: float64
        räz.sem called with numeric_only=z  and dtype rÇcó>•—t|d¬«j‰¬«Sr6)r\rÇr7s €ror·zGroupBy.sem.<locals>.<lambda>« sø€œ& ¨Ô/×3Ñ3¸Ð3Ó>€rqr9)rŽr9r5r³ršr«rxr­)rmr4r¨s ` rorÇz GroupBy.semZ sŠø€ñT ˜DŸH™HŸM™M¨QÒ.Ô7GÈÏÉÏÉÔ7WÜܘ“:×&Ñ&Ð'ð( Ø ,˜~¨[¸¿¹¿¹Ð8HðJóð ð×'Ñ'Ø Û>Ø%Øð    (ó
ð    
rqcóR—|jj«}d}t|jt«r›t|jj
t «rQt|jj
t«rd}nPt|jj
t«rd}n)d}n&t|jj
t«rd}t|jt«r(|j||jj¬«}n|j|«}||jdddd|¬«}tj|dd«5|j|d    ¬
«}ddd«|j s|j#d «j%«}|S#1swYŒ6xYw) a:
        Compute group sizes.
 
        Returns
        -------
        DataFrame or Series
            Number of rows in each group as a Series if as_index is True
            or a DataFrame if as_index is False.
        %(see_also)s
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([1, 2, 3], index=lst)
        >>> ser
        a     1
        a     2
        b     3
        dtype: int64
        >>> ser.groupby(level=0).size()
        a    2
        b    1
        dtype: int64
 
        >>> data = [[1, 2, 3], [1, 5, 6], [7, 8, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["owl", "toucan", "eagle"])
        >>> df
                a  b  c
        owl     1  2  3
        toucan  1  5  6
        eagle   7  8  9
        >>> df.groupby("a").size()
        a
        1    2
        7    1
        dtype: int64
 
        For Resampler:
 
        >>> ser = pd.Series([1, 2, 3], index=pd.DatetimeIndex(
        ...                 ['2023-01-01', '2023-01-15', '2023-02-01']))
        >>> ser
        2023-01-01    1
        2023-01-15    2
        2023-02-01    3
        dtype: int64
        >>> ser.resample('MS').size()
        2023-01-01    2
        2023-02-01    1
        Freq: MS, dtype: int64
        NÚnumpy_nullableÚpyarrowrF)rÒÚconvert_stringÚconvert_booleanÚconvert_floatingÚ dtype_backendr•TrrrM)ršrMr»rŽr\rêrBrKrJrCrr€Úconvert_dtypesràrÝr]r•ÚrenamerV)rmròrrs   rorMz GroupBy.size° s[€ðt—‘×#Ñ#Ó%ˆØEIˆ Ü d—h‘h¤Ô 'ܘ$Ÿ(™(Ÿ.™.Ô*=Ô>ܘdŸh™hŸn™nÔ.LÔMØ$(‘MÜ §¡§¡Ô0@ÔAØ$4‘Mà$-‘MܘDŸH™HŸN™N¬OÔ<Ø 0 ô d—h‘h¤Ô 'Ø×-Ñ-¨f¸4¿8¹8¿=¹=Ð-ÓI‰Fà×-Ñ-¨fÓ5ˆFà Ð $Ø×*Ñ*Ø#Ø$Ø %Ø!&Ø+ð +óˆFô× Ñ ˜d J°Ó 5ñ    @ð×)Ñ)¨&¸QÐ)Ó?ˆF÷    @ð}Š}ð—]‘] 6Ó*×6Ñ6Ó8ˆF؈ ÷    @ð    @ús ÅFÆF&rIa        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([1, 2, 3, 4], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        b    4
        dtype: int64
        >>> ser.groupby(level=0).sum()
        a    3
        b    7
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 2, 5], [2, 5, 8], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tiger", "leopard", "cheetah", "lion"])
        >>> df
                  a  b  c
          tiger   1  8  2
        leopard   1  2  5
        cheetah   2  5  8
           lion   2  6  9
        >>> df.groupby("a").sum()
             b   c
        a
        1   10   7
        2   11  17)ÚfnameÚnoÚmcÚeÚekÚexamplecó0—t|«r)ddlm}|j|tj
||¬«St j|dd«5|j||dtj¬«}ddd«|jdd¬«S#1swYŒxYw)    Nr)Ú grouped_sumr$r–TrI©r¨r©rŸr¤)r r«) r_r+r|r‚r@Údefault_dtype_mappingràrÝr¯r½rIr])rmr¨r©r×r}r|ròs       rorIz GroupBy.sum s¢€ôd ˜6Ô "Ý >à×*Ñ*ØÜ×.Ñ.ØØ%ð    +óð ô×!Ñ! $¨
°DÓ9ñ Ø×*Ñ*Ø!-Ø'ØÜŸ6™6ð    +ó÷ ð×'Ñ'¨¸1ÀUÐ'ÓKÐ K÷ ð ús Á $B  BÚproda        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([1, 2, 3, 4], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        b    4
        dtype: int64
        >>> ser.groupby(level=0).prod()
        a    2
        b   12
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 2, 5], [2, 5, 8], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tiger", "leopard", "cheetah", "lion"])
        >>> df
                  a  b  c
          tiger   1  8  2
        leopard   1  2  5
        cheetah   2  5  8
           lion   2  6  9
        >>> df.groupby("a").prod()
             b    c
        a
        1   16   10
        2   30   72)rurvrwrzcóH—|j||dtj¬«S)Nrr})r¯r½r)rmr¨r©s   rorz GroupBy.prodZ s-€ðT× Ñ Ø%°À&ÔQS×QXÑQXð!ó
ð    
rqÚmina         For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([1, 2, 3, 4], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        b    4
        dtype: int64
        >>> ser.groupby(level=0).min()
        a    1
        b    3
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 2, 5], [2, 5, 8], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tiger", "leopard", "cheetah", "lion"])
        >>> df
                  a  b  c
          tiger   1  8  2
        leopard   1  2  5
        cheetah   2  5  8
           lion   2  6  9
        >>> df.groupby("a").min()
            b  c
        a
        1   2  2
        2   5  8có²—t|«r*ddlm}|j|tj
||d¬«S|j ||dtj¬«S)Nr©Úgrouped_min_maxF©r%Úis_maxrr})    r_r+r„r‚r@Úidentity_dtype_mappingr¯r½r©rmr¨r©r×r}r„s      rorz GroupBy.minˆ sg€ôd ˜6Ô "Ý Bà×*Ñ*ØÜ×/Ñ/ØØ%Øð +óð ð×$Ñ$Ø)Ø#ØÜ—v‘vð    %óð rqÚmaxa         For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([1, 2, 3, 4], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        b    4
        dtype: int64
        >>> ser.groupby(level=0).max()
        a    2
        b    4
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 2, 5], [2, 5, 8], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tiger", "leopard", "cheetah", "lion"])
        >>> df
                  a  b  c
          tiger   1  8  2
        leopard   1  2  5
        cheetah   2  5  8
           lion   2  6  9
        >>> df.groupby("a").max()
            b  c
        a
        1   8  5
        2   6  9có²—t|«r*ddlm}|j|tj
||d¬«S|j ||dtj¬«S)NrrƒTr…r‰r})    r_r+r„r‚r@r‡r¯r½r‰rˆs      ror‰z GroupBy.maxÌ sg€ôd ˜6Ô "Ý Bà×*Ñ*ØÜ×/Ñ/ØØ%Øð +óð ð×$Ñ$Ø)Ø#ØÜ—v‘vð    %óð rqcó8—ddd„}|j||d||¬«S)a¥
        Compute the first entry of each column within each group.
 
        Defaults to skipping NA elements.
 
        Parameters
        ----------
        numeric_only : bool, default False
            Include only float, int, boolean columns.
        min_count : int, default -1
            The required number of valid values to perform the operation. If fewer
            than ``min_count`` valid values are present the result will be NA.
        skipna : bool, default True
            Exclude NA/null values. If an entire row/column is NA, the result
            will be NA.
 
            .. versionadded:: 2.2.1
 
        Returns
        -------
        Series or DataFrame
            First values within each group.
 
        See Also
        --------
        DataFrame.groupby : Apply a function groupby to each row or column of a
            DataFrame.
        pandas.core.groupby.DataFrameGroupBy.last : Compute the last non-null entry
            of each column.
        pandas.core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
 
        Examples
        --------
        >>> df = pd.DataFrame(dict(A=[1, 1, 3], B=[None, 5, 6], C=[1, 2, 3],
        ...                        D=['3/11/2000', '3/12/2000', '3/13/2000']))
        >>> df['D'] = pd.to_datetime(df['D'])
        >>> df.groupby("A").first()
             B  C          D
        A
        1  5.0  1 2000-03-11
        3  6.0  3 2000-03-13
        >>> df.groupby("A").first(min_count=2)
            B    C          D
        A
        1 NaN  1.0 2000-03-11
        3 NaN  NaN        NaT
        >>> df.groupby("A").first(numeric_only=True)
             B  C
        A
        1  5.0  1
        3  6.0  3
        có¨—dd„}t|t«r|j||¬«St|t«r||«St    t |««‚)Ncó¦—|jt|j«}t|«s |jjjS|dS)z-Helper function for first item that isn't NA.r©rêr=rŸr³Úna_value©rÚarrs  roÚfirstz2GroupBy.first.<locals>.first_compat.<locals>.firstJ s<€à—g‘gœe A§G¡G›nÑ-Ü˜3”xØŸ7™7Ÿ=™=×1Ñ1Ð1ؘ1‘v rqræ©rr\©r»rNryr\ršr«)rŽrr’s   roÚ first_compatz#GroupBy.first.<locals>.first_compatI sI€ó ô˜#œyÔ)Ø—y‘y ¨TyÓ2Ð2ܘC¤Ô(Ù˜S“zÐ!䤠S£    Ó*Ð*rqr’©r¨r©rŸr¤r ©r©rŽrrr©r¯)rmr¨r©r r•s     ror’z GroupBy.first s1€ôr     +ð× Ñ Ø%ØØØØð !ó
ð    
rqcó8—ddd„}|j||d||¬«S)aS
        Compute the last entry of each column within each group.
 
        Defaults to skipping NA elements.
 
        Parameters
        ----------
        numeric_only : bool, default False
            Include only float, int, boolean columns. If None, will attempt to use
            everything, then use only numeric data.
        min_count : int, default -1
            The required number of valid values to perform the operation. If fewer
            than ``min_count`` valid values are present the result will be NA.
        skipna : bool, default True
            Exclude NA/null values. If an entire row/column is NA, the result
            will be NA.
 
            .. versionadded:: 2.2.1
 
        Returns
        -------
        Series or DataFrame
            Last of values within each group.
 
        See Also
        --------
        DataFrame.groupby : Apply a function groupby to each row or column of a
            DataFrame.
        pandas.core.groupby.DataFrameGroupBy.first : Compute the first non-null entry
            of each column.
        pandas.core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
 
        Examples
        --------
        >>> df = pd.DataFrame(dict(A=[1, 1, 3], B=[5, None, 6], C=[1, 2, 3]))
        >>> df.groupby("A").last()
             B  C
        A
        1  5.0  2
        3  6.0  3
        có¨—dd„}t|t«r|j||¬«St|t«r||«St    t |««‚)Ncó¦—|jt|j«}t|«s |jjjS|dS)z,Helper function for last item that isn't NA.r(rŽrs  roÚlastz/GroupBy.last.<locals>.last_compat.<locals>.last s<€à—g‘gœe A§G¡G›nÑ-Ü˜3”xØŸ7™7Ÿ=™=×1Ñ1Ð1ؘ2‘wrqrær“r”)rŽrrs   roÚ last_compatz!GroupBy.last.<locals>.last_compatŽ sI€ó ô˜#œyÔ)Ø—y‘y ¨DyÓ1Ð1ܘC¤Ô(Ù˜C“yР䤠S£    Ó*Ð*rqrr–r—r˜r™)rmr¨r©r ržs     rorz GroupBy.last` s1€ô\     +ð× Ñ Ø%ØØØØð !ó
ð    
rqcóš—|jjdk(rŸ|j}t|j«}|s t d«‚|j jd|jddd¬«}gd¢}|jj||j j|¬    «}|j|«S|jd
„«}|S) aË
        Compute open, high, low and close values of a group, excluding missing values.
 
        For multiple groupings, the result index will be a MultiIndex
 
        Returns
        -------
        DataFrame
            Open, high, low and close values within each group.
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['SPX', 'CAC', 'SPX', 'CAC', 'SPX', 'CAC', 'SPX', 'CAC',]
        >>> ser = pd.Series([3.4, 9.0, 7.2, 5.2, 8.8, 9.4, 0.1, 0.5], index=lst)
        >>> ser
        SPX     3.4
        CAC     9.0
        SPX     7.2
        CAC     5.2
        SPX     8.8
        CAC     9.4
        SPX     0.1
        CAC     0.5
        dtype: float64
        >>> ser.groupby(level=0).ohlc()
             open  high  low  close
        CAC   9.0   9.4  0.5    0.5
        SPX   3.4   8.8  0.1    0.1
 
        For DataFrameGroupBy:
 
        >>> data = {2022: [1.2, 2.3, 8.9, 4.5, 4.4, 3, 2 , 1],
        ...         2023: [3.4, 9.0, 7.2, 5.2, 8.8, 9.4, 8.2, 1.0]}
        >>> df = pd.DataFrame(data, index=['SPX', 'CAC', 'SPX', 'CAC',
        ...                   'SPX', 'CAC', 'SPX', 'CAC'])
        >>> df
             2022  2023
        SPX   1.2   3.4
        CAC   2.3   9.0
        SPX   8.9   7.2
        CAC   4.5   5.2
        SPX   4.4   8.8
        CAC   3.0   9.4
        SPX   2.0   8.2
        CAC   1.0   1.0
        >>> df.groupby(level=0).ohlc()
            2022                 2023
            open high  low close open high  low close
        CAC  2.3  4.5  1.0   1.0  9.0  9.4  1.0   1.0
        SPX  1.2  8.9  1.2   2.0  3.4  8.8  3.4   8.2
 
        For Resampler:
 
        >>> ser = pd.Series([1, 3, 2, 4, 3, 5],
        ...                 index=pd.DatetimeIndex(['2023-01-01',
        ...                                         '2023-01-10',
        ...                                         '2023-01-15',
        ...                                         '2023-02-01',
        ...                                         '2023-02-10',
        ...                                         '2023-02-15']))
        >>> ser.resample('MS').ohlc()
                    open  high  low  close
        2023-01-01     1     3    1      2
        2023-02-01     4     5    3      5
        räzNo numeric types to aggregaterÂÚohlcrr(rÃ)ÚopenÚhighÚlowÚclose)r5rNcó"—|j«Srk)r )Úsgbs ror·zGroupBy.ohlc.<locals>.<lambda>ü s €¸C¿H¹H»J€rq) rŽr9rzr5r³r'ršrÈr4Ú_constructor_expanddimr,r]Ú_apply_to_column_groupbys)rmrŽÚ
is_numericr¼Ú    agg_namesròs      ror z GroupBy.ohlc¥ s¿€ðL 8‰8=‰=˜AÒ Ø×$Ñ$ˆCä)¨#¯)©)Ó4ˆJÙÜР?Ó@Ð@àŸ™×8Ñ8ؘSŸ[™[¨&°qÀBð9óˆJò9ˆIØ—X‘X×4Ñ4Ø $§-¡-×"<Ñ"<Àið5óˆFð×'Ñ'¨Ó/Ð /à×/Ñ/Ñ0FÓGˆØˆ rqcóF‡‡‡—|j}t|«dk(r]|j‰‰‰¬«}|jdk(r|}n|j    «}|j «j jddStj|dd«5|jˆˆˆfd„|d¬«}ddd«|jdk(r j Sj    «}|js*|j|«}tt|««|_|S#1swYŒlxYw)Nr©Ú percentilesÚincludeÚexcluderär•Tcó,•—|j‰‰‰¬«S)Nr¬)Údescribe)rr¯r®r­s €€€ror·z"GroupBy.describe.<locals>.<lambda>sø€˜!Ÿ*™*Ø +°WÀgð%ó€rq©r)rÚrŸr±r9ÚunstackrMr#rèràrÝryrr•rUrZr5)rmr­r®r¯rŽÚ    describedròs ```   ror±zGroupBy.describeÿ sú€ð×'Ñ'ˆä ˆs‹8qŠ=ØŸ ™ Ø'°À'ð%óˆIðx‰x˜1Š}Ø"‘à"×*Ñ*Ó,Ø—?‘?Ó$×&Ñ&×+Ñ+¨B¨QÐ/Ð /ä × Ñ ˜d J°Ó 5ñ    Ø×/Ñ/õðØ!%ð 0óˆF÷    ð 9‰9˜Š>Ø—8‘8ˆOð—‘Ó!ˆØ}Š}Ø×0Ñ0°Ó8ˆFÜ(¬¨V«Ó5ˆFŒLàˆ ÷#    ð    ús ÂDÄD có,—ddlm}|||g|¢­d|i|¤ŽS)aƒ
        Provide resampling when using a TimeGrouper.
 
        Given a grouper, the function resamples it according to a string
        "string" -> "frequency".
 
        See the :ref:`frequency aliases <timeseries.offset_aliases>`
        documentation for more details.
 
        Parameters
        ----------
        rule : str or DateOffset
            The offset string or object representing target grouper conversion.
        *args
            Possible arguments are `how`, `fill_method`, `limit`, `kind` and
            `on`, and other arguments of `TimeGrouper`.
        include_groups : bool, default True
            When True, will attempt to include the groupings in the operation in
            the case that they are columns of the DataFrame. If this raises a
            TypeError, the result will be computed with the groupings excluded.
            When False, the groupings will be excluded when applying ``func``.
 
            .. versionadded:: 2.2.0
 
            .. deprecated:: 2.2.0
 
               Setting include_groups to True is deprecated. Only the value
               False will be allowed in a future version of pandas.
 
        **kwargs
            Possible arguments are `how`, `fill_method`, `limit`, `kind` and
            `on`, and other arguments of `TimeGrouper`.
 
        Returns
        -------
        pandas.api.typing.DatetimeIndexResamplerGroupby,
        pandas.api.typing.PeriodIndexResamplerGroupby, or
        pandas.api.typing.TimedeltaIndexResamplerGroupby
            Return a new groupby object, with type depending on the data
            being resampled.
 
        See Also
        --------
        Grouper : Specify a frequency to resample with when
            grouping by a key.
        DatetimeIndex.resample : Frequency conversion and resampling of
            time series.
 
        Examples
        --------
        >>> idx = pd.date_range('1/1/2000', periods=4, freq='min')
        >>> df = pd.DataFrame(data=4 * [range(2)],
        ...                   index=idx,
        ...                   columns=['a', 'b'])
        >>> df.iloc[2, 0] = 5
        >>> df
                            a  b
        2000-01-01 00:00:00  0  1
        2000-01-01 00:01:00  0  1
        2000-01-01 00:02:00  5  1
        2000-01-01 00:03:00  0  1
 
        Downsample the DataFrame into 3 minute bins and sum the values of
        the timestamps falling into a bin.
 
        >>> df.groupby('a').resample('3min', include_groups=False).sum()
                                 b
        a
        0   2000-01-01 00:00:00  2
            2000-01-01 00:03:00  1
        5   2000-01-01 00:00:00  1
 
        Upsample the series into 30 second bins.
 
        >>> df.groupby('a').resample('30s', include_groups=False).sum()
                            b
        a
        0   2000-01-01 00:00:00  1
            2000-01-01 00:00:30  0
            2000-01-01 00:01:00  1
            2000-01-01 00:01:30  0
            2000-01-01 00:02:00  0
            2000-01-01 00:02:30  0
            2000-01-01 00:03:00  1
        5   2000-01-01 00:02:00  1
 
        Resample by month. Values are assigned to the month of the period.
 
        >>> df.groupby('a').resample('ME', include_groups=False).sum()
                    b
        a
        0   2000-01-31  3
        5   2000-01-31  1
 
        Downsample the series into 3 minute bins as above, but close the right
        side of the bin interval.
 
        >>> (
        ...     df.groupby('a')
        ...     .resample('3min', closed='right', include_groups=False)
        ...     .sum()
        ... )
                                 b
        a
        0   1999-12-31 23:57:00  1
            2000-01-01 00:00:00  2
        5   2000-01-01 00:00:00  1
 
        Downsample the series into 3 minute bins and close the right side of
        the bin interval, but label each bin using the right edge instead of
        the left.
 
        >>> (
        ...     df.groupby('a')
        ...     .resample('3min', closed='right', label='right', include_groups=False)
        ...     .sum()
        ... )
                                 b
        a
        0   2000-01-01 00:00:00  1
            2000-01-01 00:03:00  2
        5   2000-01-01 00:03:00  1
        r)Úget_resampler_for_groupingr’)Úpandas.core.resampler¶)rmÚruler’rurvr¶s      roÚresamplezGroupBy.resample%s5€õz    Dñ*Ø $ð
Øò
Ø.<ð
Ø@Fñ
ð    
rqcóh—ddlm}||jg|¢­|j|jdœ|¤ŽS)a§
        Return a rolling grouper, providing rolling functionality per group.
 
        Parameters
        ----------
        window : int, timedelta, str, offset, or BaseIndexer subclass
            Size of the moving window.
 
            If an integer, the fixed number of observations used for
            each window.
 
            If a timedelta, str, or offset, the time period of each window. Each
            window will be a variable sized based on the observations included in
            the time-period. This is only valid for datetimelike indexes.
            To learn more about the offsets & frequency strings, please see `this link
            <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
 
            If a BaseIndexer subclass, the window boundaries
            based on the defined ``get_window_bounds`` method. Additional rolling
            keyword arguments, namely ``min_periods``, ``center``, ``closed`` and
            ``step`` will be passed to ``get_window_bounds``.
 
        min_periods : int, default None
            Minimum number of observations in window required to have a value;
            otherwise, result is ``np.nan``.
 
            For a window that is specified by an offset,
            ``min_periods`` will default to 1.
 
            For a window that is specified by an integer, ``min_periods`` will default
            to the size of the window.
 
        center : bool, default False
            If False, set the window labels as the right edge of the window index.
 
            If True, set the window labels as the center of the window index.
 
        win_type : str, default None
            If ``None``, all points are evenly weighted.
 
            If a string, it must be a valid `scipy.signal window function
            <https://docs.scipy.org/doc/scipy/reference/signal.windows.html#module-scipy.signal.windows>`__.
 
            Certain Scipy window types require additional parameters to be passed
            in the aggregation function. The additional parameters must match
            the keywords specified in the Scipy window type method signature.
 
        on : str, optional
            For a DataFrame, a column label or Index level on which
            to calculate the rolling window, rather than the DataFrame's index.
 
            Provided integer column is ignored and excluded from result since
            an integer index is not used to calculate the rolling window.
 
        axis : int or str, default 0
            If ``0`` or ``'index'``, roll across the rows.
 
            If ``1`` or ``'columns'``, roll across the columns.
 
            For `Series` this parameter is unused and defaults to 0.
 
        closed : str, default None
            If ``'right'``, the first point in the window is excluded from calculations.
 
            If ``'left'``, the last point in the window is excluded from calculations.
 
            If ``'both'``, no points in the window are excluded from calculations.
 
            If ``'neither'``, the first and last points in the window are excluded
            from calculations.
 
            Default ``None`` (``'right'``).
 
        method : str {'single', 'table'}, default 'single'
            Execute the rolling operation per single column or row (``'single'``)
            or over the entire object (``'table'``).
 
            This argument is only implemented when specifying ``engine='numba'``
            in the method call.
 
        Returns
        -------
        pandas.api.typing.RollingGroupby
            Return a new grouper with our rolling appended.
 
        See Also
        --------
        Series.rolling : Calling object with Series data.
        DataFrame.rolling : Calling object with DataFrames.
        Series.groupby : Apply a function groupby to a Series.
        DataFrame.groupby : Apply a function groupby.
 
        Examples
        --------
        >>> df = pd.DataFrame({'A': [1, 1, 2, 2],
        ...                    'B': [1, 2, 3, 4],
        ...                    'C': [0.362, 0.227, 1.267, -0.562]})
        >>> df
              A  B      C
        0     1  1  0.362
        1     1  2  0.227
        2     2  3  1.267
        3     2  4 -0.562
 
        >>> df.groupby('A').rolling(2).sum()
            B      C
        A
        1 0  NaN    NaN
          1  3.0  0.589
        2 2  NaN    NaN
          3  7.0  0.705
 
        >>> df.groupby('A').rolling(2, min_periods=1).sum()
            B      C
        A
        1 0  1.0  0.362
          1  3.0  0.589
        2 2  3.0  1.267
          3  7.0  0.705
 
        >>> df.groupby('A').rolling(2, on='B').sum()
            B      C
        A
        1 0  1    NaN
          1  2  0.589
        2 2  3    NaN
          3  4  0.705
        r)rd)ršÚ    _as_index)Úpandas.core.windowrdrzršr•)rmrurvrds    roÚrollingzGroupBy.rollingªsE€õD    6áØ × Ñ ð
à ñ
ð—]‘]Ø—m‘mñ    
ð
ñ 
ð    
rqcóR—ddlm}||jg|¢­d|ji|¤ŽS)z¯
        Return an expanding grouper, providing expanding
        functionality per group.
 
        Returns
        -------
        pandas.api.typing.ExpandingGroupby
        r)rbrš)r¼rbrzrš)rmrurvrbs    roÚ    expandingzGroupBy.expanding6s=€õ    8áØ × Ñ ð
à ò
ð—]‘]ð
ðñ    
ð    
rqcóR—ddlm}||jg|¢­d|ji|¤ŽS)z©
        Return an ewm grouper, providing ewm functionality per group.
 
        Returns
        -------
        pandas.api.typing.ExponentialMovingWindowGroupby
        r)rcrš)r¼rcrzrš)rmrurvrcs    roÚewmz GroupBy.ewmKs>€õ    Fá-Ø × Ñ ð
à ò
ð—]‘]ð
ðñ    
ð    
rqcó0‡‡
—|€d}‰jj\}}}tj|d¬«j    tj
d¬«}|dk(r|ddd…}t tj|||‰j¬«Š
d ˆ
ˆfd    „ }‰j«}|j|«}‰j|«}    ‰jd
k(r'|    j}    ‰jj |    _‰jj"|    _|    S) a 
        Shared function for `pad` and `backfill` to call Cython method.
 
        Parameters
        ----------
        direction : {'ffill', 'bfill'}
            Direction passed to underlying Cython function. `bfill` will cause
            values to be filled backwards. `ffill` and any other values will
            default to a forward fill
        limit : int, default None
            Maximum number of consecutive values to fill. If `None`, this
            method will convert to -1 prior to passing to Cython
 
        Returns
        -------
        `Series` or `DataFrame` with filled values
 
        See Also
        --------
        pad : Returns Series with minimum number of char in object.
        backfill : Backward fill the missing values in the dataset.
        Nr(Ú    mergesort)rGFr±Úbfill)r>Ú sorted_labelsÚlimitr“cóþ•—t|«}|jdk(rOtj|jtj
¬«}‰||¬«t j||«St|tj«rY|j}‰jjrt|j«}tj|j|¬«}n0t|«j|j|j¬«}t!|«D]a\}}tj|jdtj
¬«}‰|||¬«t j||«||dd…f<Œc|S)Nrär²)rÔr?)r;r9r½rìr›rúr>rär»Úndarrayr³ršr r.r«Ú_emptyrL)    r:r?rër³rÔÚiÚ value_elementÚcol_funcrms           €€roÚblk_funczGroupBy._fill.<locals>.blk_funcˆsø€Ü˜“<ˆD؏{‰{˜aÒÜŸ(™( 6§<¡<´r·w±wÔ?Ù˜W¨4Õ0Ü!×)Ñ)¨&°'Ó:Ð:ô
˜f¤b§j¡jÔ1Ø"ŸL™LEØ—}‘}×3Ò3ä 8¸¿¹Ó F˜ÜŸ(™( 6§<¡<°uÔ=‘Cô ˜v›,×-Ñ-¨f¯l©lÀ&Ç,Á,Ð-ÓOCä(1°&Ó(9òKÑ$A}ä Ÿh™h v§|¡|°A¡¼b¿g¹gÔFGÙ ¨t°A©wÕ7Ü *× 2Ñ 2°=À'Ó JC˜š1˜’Ið    Kð

rqrärÍ)ršr/r½r†r¸rúrÚ
libgroupbyÚgroup_fillna_indexerr“rÎryrÐrr#rŽrNr5) rmÚ    directionrÆrkrArÅrÍÚmgrrr!rÌs `         @roÚ_fillz GroupBy._fill_síù€ð2 ˆ=؈Eà—M‘M×,Ñ,‰    ˆˆQÜŸ
™
 3¨[Ô9×@Ñ@ÄÇÁÈuÐ@ÓUˆ Ø ˜Ò Ø)©$¨B¨$Ñ/ˆMäÜ × +Ñ +ØØ'ØØ—;‘;ô 
ˆö    ð<×)Ñ)Ó+ˆØ—)‘)˜HÓ%ˆà×*Ñ*¨7Ó3ˆà 9‰9˜Š>à—i‘iˆGØ"Ÿh™h×.Ñ.ˆGŒOàŸ™Ÿ™ˆŒ ؈rqcó(—|jd|¬«S)a0    
        Forward fill the values.
 
        Parameters
        ----------
        limit : int, optional
            Limit of how many values to fill.
 
        Returns
        -------
        Series or DataFrame
            Object with missing values filled.
 
        See Also
        --------
        Series.ffill: Returns Series with minimum number of char in object.
        DataFrame.ffill: Object with missing values filled or None if inplace=True.
        Series.fillna: Fill NaN values of a Series.
        DataFrame.fillna: Fill NaN values of a DataFrame.
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> key = [0, 0, 1, 1]
        >>> ser = pd.Series([np.nan, 2, 3, np.nan], index=key)
        >>> ser
        0    NaN
        0    2.0
        1    3.0
        1    NaN
        dtype: float64
        >>> ser.groupby(level=0).ffill()
        0    NaN
        0    2.0
        1    3.0
        1    3.0
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> df = pd.DataFrame(
        ...     {
        ...         "key": [0, 0, 1, 1, 1],
        ...         "A": [np.nan, 2, np.nan, 3, np.nan],
        ...         "B": [2, 3, np.nan, np.nan, np.nan],
        ...         "C": [np.nan, np.nan, 2, np.nan, np.nan],
        ...     }
        ... )
        >>> df
           key    A    B   C
        0    0  NaN  2.0 NaN
        1    0  2.0  3.0 NaN
        2    1  NaN  NaN 2.0
        3    1  3.0  NaN NaN
        4    1  NaN  NaN NaN
 
        Propagate non-null values forward or backward within each group along columns.
 
        >>> df.groupby("key").ffill()
             A    B   C
        0  NaN  2.0 NaN
        1  2.0  3.0 NaN
        2  NaN  NaN 2.0
        3  3.0  NaN 2.0
        4  3.0  NaN 2.0
 
        Propagate non-null values forward or backward within each group along rows.
 
        >>> df.T.groupby(np.array([0, 0, 1, 1])).ffill().T
           key    A    B    C
        0  0.0  0.0  2.0  2.0
        1  0.0  2.0  3.0  3.0
        2  1.0  1.0  NaN  2.0
        3  1.0  3.0  NaN  NaN
        4  1.0  1.0  NaN  NaN
 
        Only replace the first NaN element within a group along rows.
 
        >>> df.groupby("key").ffill(limit=1)
             A    B    C
        0  NaN  2.0  NaN
        1  2.0  3.0  NaN
        2  NaN  NaN  2.0
        3  3.0  NaN  2.0
        4  3.0  NaN  NaN
        Úffill©rÆ©rÒ©rmrÆs  rorÔz GroupBy.ffill³s€ðvz‰z˜'¨ˆzÓ/Ð/rqcó(—|jd|¬«S)a²
        Backward fill the values.
 
        Parameters
        ----------
        limit : int, optional
            Limit of how many values to fill.
 
        Returns
        -------
        Series or DataFrame
            Object with missing values filled.
 
        See Also
        --------
        Series.bfill :  Backward fill the missing values in the dataset.
        DataFrame.bfill:  Backward fill the missing values in the dataset.
        Series.fillna: Fill NaN values of a Series.
        DataFrame.fillna: Fill NaN values of a DataFrame.
 
        Examples
        --------
 
        With Series:
 
        >>> index = ['Falcon', 'Falcon', 'Parrot', 'Parrot', 'Parrot']
        >>> s = pd.Series([None, 1, None, None, 3], index=index)
        >>> s
        Falcon    NaN
        Falcon    1.0
        Parrot    NaN
        Parrot    NaN
        Parrot    3.0
        dtype: float64
        >>> s.groupby(level=0).bfill()
        Falcon    1.0
        Falcon    1.0
        Parrot    3.0
        Parrot    3.0
        Parrot    3.0
        dtype: float64
        >>> s.groupby(level=0).bfill(limit=1)
        Falcon    1.0
        Falcon    1.0
        Parrot    NaN
        Parrot    3.0
        Parrot    3.0
        dtype: float64
 
        With DataFrame:
 
        >>> df = pd.DataFrame({'A': [1, None, None, None, 4],
        ...                    'B': [None, None, 5, None, 7]}, index=index)
        >>> df
                  A        B
        Falcon    1.0      NaN
        Falcon    NaN      NaN
        Parrot    NaN      5.0
        Parrot    NaN      NaN
        Parrot    4.0      7.0
        >>> df.groupby(level=0).bfill()
                  A        B
        Falcon    1.0      NaN
        Falcon    NaN      NaN
        Parrot    4.0      5.0
        Parrot    4.0      7.0
        Parrot    4.0      7.0
        >>> df.groupby(level=0).bfill(limit=1)
                  A        B
        Falcon    1.0      NaN
        Falcon    NaN      NaN
        Parrot    NaN      5.0
        Parrot    4.0      7.0
        Parrot    4.0      7.0
        rÄrÕrÖr×s  rorÄz GroupBy.bfills€ð\z‰z˜'¨ˆzÓ/Ð/rqcó—t|«S)aÞ
        Take the nth row from each group if n is an int, otherwise a subset of rows.
 
        Can be either a call or an index. dropna is not available with index notation.
        Index notation accepts a comma separated list of integers and slices.
 
        If dropna, will take the nth non-null row, dropna is either
        'all' or 'any'; this is equivalent to calling dropna(how=dropna)
        before the groupby.
 
        Parameters
        ----------
        n : int, slice or list of ints and slices
            A single nth value for the row or a list of nth values or slices.
 
            .. versionchanged:: 1.4.0
                Added slice and lists containing slices.
                Added index notation.
 
        dropna : {'any', 'all', None}, default None
            Apply the specified dropna operation before counting which row is
            the nth row. Only supported if n is an int.
 
        Returns
        -------
        Series or DataFrame
            N-th value within each group.
        %(see_also)s
        Examples
        --------
 
        >>> df = pd.DataFrame({'A': [1, 1, 2, 1, 2],
        ...                    'B': [np.nan, 2, 3, 4, 5]}, columns=['A', 'B'])
        >>> g = df.groupby('A')
        >>> g.nth(0)
           A   B
        0  1 NaN
        2  2 3.0
        >>> g.nth(1)
           A   B
        1  1 2.0
        4  2 5.0
        >>> g.nth(-1)
           A   B
        3  1 4.0
        4  2 5.0
        >>> g.nth([0, 1])
           A   B
        0  1 NaN
        1  1 2.0
        2  2 3.0
        4  2 5.0
        >>> g.nth(slice(None, -1))
           A   B
        0  1 NaN
        1  1 2.0
        2  2 3.0
 
        Index notation may also be used
 
        >>> g.nth[0, 1]
           A   B
        0  1 NaN
        1  1 2.0
        2  2 3.0
        4  2 5.0
        >>> g.nth[:-1]
           A   B
        0  1 NaN
        1  1 2.0
        2  2 3.0
 
        Specifying `dropna` allows ignoring ``NaN`` values
 
        >>> g.nth(0, dropna='any')
           A   B
        1  1 2.0
        2  2 3.0
 
        When the specified ``n`` is larger than any of the groups, an
        empty DataFrame is returned
 
        >>> g.nth(3, dropna='any')
        Empty DataFrame
        Columns: [A, B]
        Index: []
        )rUr¡s roÚnthz GroupBy.nth`s€ôx" $Ó'Ð'rqcóº—|sF|j|«}|jj\}}}||dk7z}|j|«}|St    |«s t d«‚|dvrt d|›d«‚t t|«}|jj||j¬«}t|«t|j«k(r |j}n‹|jj}    |jj|    j|j«}|jjr-|dk(}
t!j"|
t$|«} t'| d¬«}|jd    k(r3|j(j+||j,|j.¬
«} n(|j+||j,|j.¬
«} | j1|«S) Nr(z4dropna option only supported for an integer argumentrÄz_For a DataFrame or Series groupby.nth, dropna must be either None, 'any' or 'all', (was passed z).)r¦rÚInt64r²rä)r•r‘)Ú"_make_mask_from_positional_indexerršr/Ú_mask_selected_objr2rÍrrôrzr“rrŸÚ
codes_infoÚisinr5r r½rïrrWr#rnr•r‘rÚ) rmrÄr“r?rkrArÔÚdroppedr”rÚnullsr:Úgrbs              roÚ_nthz GroupBy._nth¾sš€ñ
Ø×:Ñ:¸1Ó=ˆDàŸ ™ ×0Ñ0‰IˆCAð˜3 "™9Ñ%ˆDà×)Ñ)¨$Ó/ˆC؈Jô˜!Œ}ÜÐSÓTÐ Tà ˜Ñ 'äðà%˜h bð*óð ô ”a‹LˆØ×$Ñ$×+Ñ+°¸T¿Y¹YÐ+ÓGˆô ˆw‹<œ3˜t×1Ñ1Ó2Ò 2à—m‘m‰Gð
—=‘=×%Ñ%ˆDØ—m‘m×.Ñ.¨t¯y©y¸¿¹Ó/GÑHˆG؏}‰}×+Ò+à 2™ ôŸ™ %¬¨WÓ5Ü ¨gÔ6à 9‰9˜Š>Ø—)‘)×#Ñ# G°d·m±mÈ$Ï)É)Ð#ÓT‰Cà—/‘/ '°D·M±MÈÏ    É    /ÓRˆC؏w‰wq‹zÐrqcóÀ‡‡‡‡‡‡‡—‰j|d¬«}‰j|«}‰jdk(rH‰jj    |j
‰j¬«}|j j
}n3‰jj    |‰j¬«}|j }tj|j|j«\}}    d ˆfd„ Š                                        d ˆfd„ Štj|tj¬«}
|
} t|«r(tj|gtj¬«}
d} ‰jj\} } Št!|
«Št#t$j&| |
‰||    ¬    «Šdˆˆˆˆˆfd
„ }|j(j+|«}‰j|«}‰j-|| ¬ «S)a
        Return group values at the given quantile, a la numpy.percentile.
 
        Parameters
        ----------
        q : float or array-like, default 0.5 (50% quantile)
            Value(s) between 0 and 1 providing the quantile(s) to compute.
        interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'}
            Method to use when the desired quantile falls between two points.
        numeric_only : bool, default False
            Include only `float`, `int` or `boolean` data.
 
            .. versionadded:: 1.5.0
 
            .. versionchanged:: 2.0.0
 
                numeric_only now defaults to ``False``.
 
        Returns
        -------
        Series or DataFrame
            Return type determined by caller of GroupBy object.
 
        See Also
        --------
        Series.quantile : Similar method for Series.
        DataFrame.quantile : Similar method for DataFrame.
        numpy.percentile : NumPy method to compute qth percentile.
 
        Examples
        --------
        >>> df = pd.DataFrame([
        ...     ['a', 1], ['a', 2], ['a', 3],
        ...     ['b', 1], ['b', 3], ['b', 5]
        ... ], columns=['key', 'val'])
        >>> df.groupby('key').quantile()
            val
        key
        a    2.0
        b    3.0
        ÚquantilerÀräræcó•—t|jt«st|j«rt    d|j›d«‚d}t|t
«rJt |j«r5|jttj¬«}|j}||fSt|j«r_t|t«r&|jttj¬«}n|}tjtj«}||fSt|j«r9t|t«r)|jttj¬«}||fSt|j«rTtj dt#‰«j$›dt&t)«¬«tj*|«}||fSt-|j«r|j}||fSt|t«rat/|j«rLtjtj0«}|jttj¬«}||fStj*|«}||fS)Nzdtype 'z'' does not support operation 'quantile')r³rzAllowing bool dtype in z˜.quantile is deprecated and will raise in a future version, matching the Series/DataFrame behavior. Cast to uint8 dtype before calling quantile instead.rå)r»r³rIr6ršrCr5rgÚfloatr½rør3rErér/r©rªr«rxr¬r,Úasarrayr9r0rù)ÚvalsÚ    inferencerÔrms   €roÚ pre_processorz'GroupBy.quantile.<locals>.pre_processor3sòø€Ü˜$Ÿ*™*¤kÔ2´oÀdÇjÁjÔ6QÜØ˜dŸj™j˜\Ð)PÐQóðð*.ˆIܘ$¤Ô0Ô5EÀdÇjÁjÔ5QØ—m‘m¬%¼"¿&¹&mÓAØ ŸJ™J    ðF˜    >Ð !ôE" $§*¡*Ô-ܘd¤NÔ3ØŸ-™-¬e¼b¿f¹f˜-ÓE‘CàCÜŸH™H¤R§X¡XÓ.    ð:˜    >Ð !ô9˜tŸz™zÔ*¬z¸$ÄÔ/OØ—m‘m¬%¼"¿&¹&mÓAð6˜    >Ð !ô5˜tŸz™zÔ*ä— ‘ Ø-¬d°4«j×.AÑ.AÐ-BðC0ð0ô"Ü/Ó1õ ô—j‘j Ó&ð ˜    >Ð !ô% T§Z¡ZÔ0Ø ŸJ™J    ð˜YÐ&ܘD¤.Ô1´nÀTÇZÁZÔ6PÜŸH™H¤R§Z¡ZÓ0    Ø—m‘m¬%¼"¿&¹&mÓAð˜    >Ð !ô—j‘j Ó&à˜    >Ð !rqcóf•—|rt|t«rƒ|€J‚‰dvrt|«s t||«St    j
«5t    j dt¬«t|«|j|j«|«cddd«St|«r‰dvs}t|«rE|jd«j|jj«}|j!|«St|t"j«sJ‚|j|«S|S#1swY|SxYw)N>ÚlinearÚmidpointÚignore)r§Úi8)r»rCr0rFr©Úcatch_warningsÚfilterwarningsÚRuntimeWarningr«r¸Ú numpy_dtyper3r9ÚviewÚ_ndarrayr³Ú_from_backing_datar½)rêrëÚ result_maskÚ    orig_valsÚ interpolations    €roÚpost_processorz(GroupBy.quantile.<locals>.post_processoras*ø€ò ä˜i¬Ô9Ø&Ð2Ð2Ð2à$Ð(>Ñ>Ä~Ø!ôHô -¨T°;Ó?Ð?ô
&×4Ñ4Ó6ñä$×3Ñ3°HÄ~ÕVØ#2¤4¨    £?Ø $§ ¡ Ø$-×$9Ñ$9ó!"ð!,ó    $÷ñô% YÔ/Ø%Ð)?Ñ?ä*¨9Ô5ð $Ÿ{™{¨4Ó0×5Ñ5Ø%×.Ñ.×4Ñ4ó ˜ð
 )×;Ñ;Ø ó ðô& i´·±Ô:Ð:Ð:ØŸ;™; yÓ1Ð1àˆK÷;ð:ˆKús ÁAD&Ä&D0r²N)r>rZrûrrrscóÔ•—|}t|t«r4|j}tj‰ ‰ ftj
¬«}n t |«}d}t|j«}‰|«\}}d}|jdk(r|jd}tj|‰ ‰ ftj¬«}|r|jd«}|jdk(r‰
|d||||¬«n&t|«D]}    ‰
||    ||    ||    d|¬«Œ|jdk(r%|jd«}|'|jd«}n|j!|‰ ‰ z«}‰ ||||«S)Nr²rärvrrñ)r:r?rùÚis_datetimelikeÚK)r»rCÚ_maskr½rrr;r9r³r9r›rìrùrör-r‡r)r:rúr?rùrþrêrëÚncolsrÔrÊrâr¯Únqsrürìs          €€€€€rorÍz"GroupBy.quantile.<locals>.blk_func¥sXø€ØˆIܘ&¤/Ô2Ø—|‘|Ü Ÿh™h¨° ~¼R¿X¹XÔF‘ ä˜F“|Ø" ä1°&·,±,Ó?ˆOá+¨FÓ3‰OˆD)àˆE؏y‰y˜AŠ~ØŸ
™
 1™ ä—(‘(˜E 7¨CÐ0¼¿
¹
ÔCˆCáØ—y‘y “ày‰y˜AŠ~áØ˜‘FØØØ +Ø$3ö ô˜u›òAÙØ˜A™Ø# A™wØ! !™WØ$(Ø(7ö ððy‰y˜AŠ~Ø—i‘i “nØÐ*Ø"-×"3Ñ"3°CÓ"8‘Kà—k‘k %¨°3©Ó7á! # y°+¸yÓIÐ IrqrY)rêrr…z"tuple[np.ndarray, DtypeObj | None])
rêú
np.ndarrayrëzDtypeObj | Nonerùznp.ndarray | Nonerúrr…rrÍ)rÎrÐrršÚ _get_splitterr#Ú _sorted_datarrjÚ_slabelsr¯r½rêrùr7r/rŸrrÎÚgroup_quantilerxrÏr_)rmÚqrûr¨rÑrŽÚsplitterÚsdatarrrsrZÚpass_qsrkrArÍrr^râr¯rrürìs` `              @@@@@roræzGroupBy.quantileøs²þ€ð`×)Ñ)°|È*Ð)ÓUˆØ×&Ñ& sÓ+ˆØ 9‰9˜Š>Ø—}‘}×2Ñ2°3·5±5¸t¿y¹yÐ2ÓIˆHØ×)Ñ)×+Ñ+‰Eà—}‘}×2Ñ2°3¸T¿Y¹YÐ2ÓGˆHØ×)Ñ)ˆEä×*Ñ*¨8×+<Ñ+<¸h×>NÑ>NÓO‰ ˆõ,    "ð\0    Øð0    à&ð0    ð+ð0    ð!ð    0    ð
õ 0    ôdX‰XaœrŸz™zÔ *ˆØ%'ˆÜ QŒ<Ü—‘˜1˜#¤R§Z¡ZÔ0ˆB؈GàŸ-™-×2Ñ2‰ˆˆQÜ"‹gˆäÜ × %Ñ %ØØØ'ØØô 
ˆ÷0    Jñ0    Jðd—*‘*×+Ñ+¨HÓ5ˆà×&Ñ& wÓ/ˆØ×+Ñ+¨C°GÐ+Ó<Ð<rqcó—|j}|j|j«}|jjd}|jj
r9t j|dk(t j|«}t j}nt j}td„|jjD««rt|d¬«dz
}|j|||¬«}|s|jdz
|z
}|S)a
        Number each group from 0 to the number of groups - 1.
 
        This is the enumerative complement of cumcount.  Note that the
        numbers given to the groups match the order in which the groups
        would be seen when iterating over the groupby object, not the
        order they are first observed.
 
        Groups with missing keys (where `pd.isna()` is True) will be labeled with `NaN`
        and will be skipped from the count.
 
        Parameters
        ----------
        ascending : bool, default True
            If False, number in reverse, from number of group - 1 to 0.
 
        Returns
        -------
        Series
            Unique numbers for each group.
 
        See Also
        --------
        .cumcount : Number the rows in each group.
 
        Examples
        --------
        >>> df = pd.DataFrame({"color": ["red", None, "red", "blue", "blue", "red"]})
        >>> df
           color
        0    red
        1   None
        2    red
        3   blue
        4   blue
        5    red
        >>> df.groupby("color").ngroup()
        0    1.0
        1    NaN
        2    1.0
        3    0.0
        4    0.0
        5    1.0
        dtype: float64
        >>> df.groupby("color", dropna=False).ngroup()
        0    1
        1    2
        2    1
        3    0
        4    0
        5    1
        dtype: int64
        >>> df.groupby("color", dropna=False).ngroup(ascending=False)
        0    1
        1    0
        2    1
        3    2
        4    2
        5    1
        dtype: int64
        rr(c3ó4K—|]}|j–—Œy­wrkrrs  rorÅz!GroupBy.ngroup.<locals>.<genexpr>'sèø€ÒL¨Dˆt×'Õ'ÑLùrÚdense)Ú ties_methodrär²)rÚr.rršr/r r½rïrørùrérrrrr¯)rmrürŽr5Úcomp_idsr³ròs       roÚngroupzGroupBy.ngroupÜs̀ð@×'Ñ'ˆØ— ‘ ˜dŸi™iÓ(ˆØ—=‘=×+Ñ+¨AÑ.ˆð =‰=× 'Ò 'Ü—x‘x ¨B¡´·±¸ÓAˆHÜ—J‘J‰Eä—H‘HˆEä ÑL°D·M±M×4KÑ4KÔLÔ Lä˜x°WÔ=ÀÑAˆHà×)Ñ)¨(°EÀÐ)ÓGˆÙØ—\‘\ AÑ%¨Ñ.ˆF؈ rqcó”—|jj|j«}|j|¬«}|j    ||«S)aƒ
        Number each item in each group from 0 to the length of that group - 1.
 
        Essentially this is equivalent to
 
        .. code-block:: python
 
            self.apply(lambda x: pd.Series(np.arange(len(x)), x.index))
 
        Parameters
        ----------
        ascending : bool, default True
            If False, number in reverse, from length of group - 1 to 0.
 
        Returns
        -------
        Series
            Sequence number of each element within each group.
 
        See Also
        --------
        .ngroup : Number the groups themselves.
 
        Examples
        --------
        >>> df = pd.DataFrame([['a'], ['a'], ['a'], ['b'], ['b'], ['a']],
        ...                   columns=['A'])
        >>> df
           A
        0  a
        1  a
        2  a
        3  b
        4  b
        5  a
        >>> df.groupby('A').cumcount()
        0    0
        1    1
        2    2
        3    0
        4    1
        5    3
        dtype: int64
        >>> df.groupby('A').cumcount(ascending=False)
        0    3
        1    2
        2    1
        3    1
        4    0
        5    0
        dtype: int64
        )rü)rÚr.rrr)rmrür5Ú    cumcountss    roÚcumcountzGroupBy.cumcount0sE€ðn×)Ñ)×3Ñ3°D·I±IÓ>ˆØ×(Ñ(°9Ð(Ó=ˆ    Ø×'Ñ'¨    °5Ó9Ð9rqÚaverageÚkeepcód‡‡    —|dvr d}t|«‚‰tjur.|jj    ‰«Š|j ‰d«ndŠ||||dœŠ    ‰dk7r:‰    j d«‰    d<ˆˆ    fd„}|j||jd    ¬
«}|S|j    d d ‰d œ‰    ¤ŽS)a
        Provide the rank of values within each group.
 
        Parameters
        ----------
        method : {'average', 'min', 'max', 'first', 'dense'}, default 'average'
            * average: average rank of group.
            * min: lowest rank in group.
            * max: highest rank in group.
            * first: ranks assigned in order they appear in the array.
            * dense: like 'min', but rank always increases by 1 between groups.
        ascending : bool, default True
            False for ranks by high (1) to low (N).
        na_option : {'keep', 'top', 'bottom'}, default 'keep'
            * keep: leave NA values where they are.
            * top: smallest rank if ascending.
            * bottom: smallest rank if descending.
        pct : bool, default False
            Compute percentage rank of data within each group.
        axis : int, default 0
            The axis of the object over which to compute the rank.
 
            .. deprecated:: 2.1.0
                For axis=1, operate on the underlying object instead. Otherwise
                the axis keyword is not necessary.
 
        Returns
        -------
        DataFrame with ranking of values within each group
        %(see_also)s
        Examples
        --------
        >>> df = pd.DataFrame(
        ...     {
        ...         "group": ["a", "a", "a", "a", "a", "b", "b", "b", "b", "b"],
        ...         "value": [2, 4, 2, 3, 5, 1, 2, 4, 1, 5],
        ...     }
        ... )
        >>> df
          group  value
        0     a      2
        1     a      4
        2     a      2
        3     a      3
        4     a      5
        5     b      1
        6     b      2
        7     b      4
        8     b      1
        9     b      5
        >>> for method in ['average', 'min', 'max', 'dense', 'first']:
        ...     df[f'{method}_rank'] = df.groupby('group')['value'].rank(method)
        >>> df
          group  value  average_rank  min_rank  max_rank  dense_rank  first_rank
        0     a      2           1.5       1.0       2.0         1.0         1.0
        1     a      4           4.0       4.0       4.0         3.0         4.0
        2     a      2           1.5       1.0       2.0         1.0         2.0
        3     a      3           3.0       3.0       3.0         2.0         3.0
        4     a      5           5.0       5.0       5.0         4.0         5.0
        5     b      1           1.5       1.0       2.0         1.0         1.0
        6     b      2           3.0       3.0       3.0         2.0         3.0
        7     b      4           4.0       4.0       4.0         3.0         4.0
        8     b      1           1.5       1.0       2.0         1.0         2.0
        9     b      5           5.0       5.0       5.0         4.0         5.0
        >ÚtoprÚbottomz3na_option must be one of 'keep', 'top', or 'bottom'Úrankr)rrüÚ    na_optionÚpctrr«có.•—|jd‰ddœ‰¤ŽS)NF)rr¨r‚©r©rrrvs €€ror·zGroupBy.rank.<locals>.<lambda>Êsø€˜&˜!Ÿ&™&ÐI d¸ÑIÀ&ÑI€rqT©rF)r¨rr)
rÍrrrŽrrÚpopryrzrÖ)
rmr«rürrrrÓrwròrvs
     `   @rorz GroupBy.rankksßù€ðX Ð5Ñ 5ØGˆCܘS“/Ð !à ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    vÕ .àˆDð"Ø"Ø"Øñ    
ˆð 1Š9à%Ÿz™z¨-Ó8ˆF8Ñ ÜIˆAØ×/Ñ/ؐ4×%Ñ%°Dð0óˆFðˆMà%ˆt×%Ñ%Ø ð
àØñ
ðñ    
ð    
rqcó4‡‡—tjd|‰ddg«‰tjur.|jj ‰«Š|j ‰d«ndЉdk7r$ˆˆfd„}|j||jd¬«S|jdi‰¤ŽS)    aê
        Cumulative product for each group.
 
        Returns
        -------
        Series or DataFrame
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([6, 2, 0], index=lst)
        >>> ser
        a    6
        a    2
        b    0
        dtype: int64
        >>> ser.groupby(level=0).cumprod()
        a    6
        a   12
        b    0
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 2, 5], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["cow", "horse", "bull"])
        >>> df
                a   b   c
        cow     1   8   2
        horse   1   2   5
        bull    2   6   9
        >>> df.groupby("a").groups
        {1: ['cow', 'horse'], 2: ['bull']}
        >>> df.groupby("a").cumprod()
                b   c
        cow     8   2
        horse  16  10
        bull    6   9
        Úcumprodr¨r rcó,•—|jdd‰i‰¤ŽS©Nrr‚©r#rs €€ror·z!GroupBy.cumprod.<locals>.<lambda>sø€˜)˜!Ÿ)™)Ñ8¨Ð8°Ñ8€rqTr r&©
ÚnvÚvalidate_groupby_funcrrrŽrrryrzrÖ©rmrrurvrws ` ` ror#zGroupBy.cumprod×s•ù€ô`     × Ñ  ¨D°&¸>È8Ð:TÔUØ ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    yÕ 1àˆDà 1Š9Ü8ˆAØ×-Ñ-¨a°×1CÑ1CÐRVÐ-ÓWÐ Wà%ˆt×%Ñ%Ñ:°6Ñ:Ð:rqcó4‡‡—tjd|‰ddg«‰tjur.|jj ‰«Š|j ‰d«ndЉdk7r$ˆˆfd„}|j||jd¬«S|jdi‰¤ŽS)    aø
        Cumulative sum for each group.
 
        Returns
        -------
        Series or DataFrame
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b']
        >>> ser = pd.Series([6, 2, 0], index=lst)
        >>> ser
        a    6
        a    2
        b    0
        dtype: int64
        >>> ser.groupby(level=0).cumsum()
        a    6
        a    8
        b    0
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 2, 5], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["fox", "gorilla", "lion"])
        >>> df
                  a   b   c
        fox       1   8   2
        gorilla   1   2   5
        lion      2   6   9
        >>> df.groupby("a").groups
        {1: ['fox', 'gorilla'], 2: ['lion']}
        >>> df.groupby("a").cumsum()
                  b   c
        fox       8   2
        gorilla  10   7
        lion      6   9
        rör¨r rcó,•—|jdd‰i‰¤ŽSr%©rörs €€ror·z GroupBy.cumsum.<locals>.<lambda>Lsø€˜(˜!Ÿ(™(Ñ7¨Ð7°Ñ7€rqTr r-r'r*s ` ` rorözGroupBy.cumsums•ù€ô`     × Ñ  ¨4°¸.È(Ð9SÔTØ ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    xÕ 0àˆDà 1Š9Ü7ˆAØ×-Ñ-¨a°×1CÑ1CÐRVÐ-ÓWÐ Wà%ˆt×%Ñ%Ñ9°&Ñ9Ð9rqc óL‡—|jdd«}‰tjur.|jj    ‰«Š|j ‰d«ndЉdk7r7ˆfd„}|j }|r|j«}|j||d¬«S|jd||¬«S)a`
        Cumulative min for each group.
 
        Returns
        -------
        Series or DataFrame
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'a', 'b', 'b', 'b']
        >>> ser = pd.Series([1, 6, 2, 3, 0, 4], index=lst)
        >>> ser
        a    1
        a    6
        a    2
        b    3
        b    0
        b    4
        dtype: int64
        >>> ser.groupby(level=0).cummin()
        a    1
        a    1
        a    1
        b    3
        b    0
        b    0
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 0, 2], [1, 1, 5], [6, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["snake", "rabbit", "turtle"])
        >>> df
                a   b   c
        snake   1   0   2
        rabbit  1   1   5
        turtle  6   6   9
        >>> df.groupby("a").groups
        {1: ['snake', 'rabbit'], 6: ['turtle']}
        >>> df.groupby("a").cummin()
                b   c
        snake   0   2
        rabbit  0   2
        turtle  6   9
        r TÚcumminrcóD•—tjj|‰«Srk)r½ÚminimumÚ
accumulate©rrs €ror·z GroupBy.cummin.<locals>.<lambda>’óø€œ"Ÿ*™*×/Ñ/°°4Ó8€rqr ©r¨r ©
rÏrrrŽrrrzÚ_get_numeric_dataryrÖ©rmrr¨rvr rwrŽs `     ror/zGroupBy.cumminQóªø€ðr—‘˜H dÓ+ˆØ ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    xÕ 0àˆDà 1Š9Û8ˆAØ×$Ñ$ˆCÙØ×+Ñ+Ó-Ø×-Ñ-¨a°À4Ð-ÓHÐ Hà×%Ñ%Ø  <¸ð&ó
ð    
rqc óL‡—|jdd«}‰tjur.|jj    ‰«Š|j ‰d«ndЉdk7r7ˆfd„}|j }|r|j«}|j||d¬«S|jd||¬«S)aV
        Cumulative max for each group.
 
        Returns
        -------
        Series or DataFrame
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'a', 'b', 'b', 'b']
        >>> ser = pd.Series([1, 6, 2, 3, 1, 4], index=lst)
        >>> ser
        a    1
        a    6
        a    2
        b    3
        b    1
        b    4
        dtype: int64
        >>> ser.groupby(level=0).cummax()
        a    1
        a    6
        a    6
        b    3
        b    3
        b    4
        dtype: int64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 8, 2], [1, 1, 0], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["cow", "horse", "bull"])
        >>> df
                a   b   c
        cow     1   8   2
        horse   1   1   0
        bull    2   6   9
        >>> df.groupby("a").groups
        {1: ['cow', 'horse'], 2: ['bull']}
        >>> df.groupby("a").cummax()
                b   c
        cow     8   2
        horse   8   2
        bull    6   9
        r TÚcummaxrcóD•—tjj|‰«Srk)r½Úmaximumr2r3s €ror·z GroupBy.cummax.<locals>.<lambda>Ýr4rqr r5r6r8s `     ror;zGroupBy.cummaxœr9rqc    ó0‡‡‡‡—‰tjur.|jj‰«Š|j    ‰d«ndŠt |«rB‰dk(r t d«‚tt|«}t|«dk(r t d«‚ddl
m }d}nFt|«std|›d    t|«›d
«‚|r t d «‚tt|«g}d }g}|D]™Št‰«std‰›d    t‰«›d
«‚tt‰«Š‰€‰dk7r'ˆˆˆˆfd„}    |j!|    |j"d¬«}
n¹‰tjurd Š|j$j&\} } } t)j*t| «t(j,¬«}t/j0|| | ‰«|j2}|j5|j6|j8|j6|fi‰d¬«}
|rKt;|
t<«rtt>|
jA««}
|
jC|r|›d‰›nd‰›«}
|jEttFt<tHf|
««Œœt|«dk(r|dS|d¬«S)aY
        Shift each group by periods observations.
 
        If freq is passed, the index will be increased using the periods and the freq.
 
        Parameters
        ----------
        periods : int | Sequence[int], default 1
            Number of periods to shift. If a list of values, shift each group by
            each period.
        freq : str, optional
            Frequency string.
        axis : axis to shift, default 0
            Shift direction.
 
            .. deprecated:: 2.1.0
                For axis=1, operate on the underlying object instead. Otherwise
                the axis keyword is not necessary.
 
        fill_value : optional
            The scalar value to use for newly introduced missing values.
 
            .. versionchanged:: 2.1.0
                Will raise a ``ValueError`` if ``freq`` is provided too.
 
        suffix : str, optional
            A string to add to each shifted column if there are multiple periods.
            Ignored otherwise.
 
        Returns
        -------
        Series or DataFrame
            Object shifted within each group.
 
        See Also
        --------
        Index.shift : Shift values of Index.
 
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([1, 2, 3, 4], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        b    4
        dtype: int64
        >>> ser.groupby(level=0).shift(1)
        a    NaN
        a    1.0
        b    NaN
        b    3.0
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 2, 3], [1, 5, 6], [2, 5, 8], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tuna", "salmon", "catfish", "goldfish"])
        >>> df
                   a  b  c
            tuna   1  2  3
          salmon   1  5  6
         catfish   2  5  8
        goldfish   2  6  9
        >>> df.groupby("a").shift(1)
                      b    c
            tuna    NaN  NaN
          salmon    2.0  3.0
         catfish    NaN  NaN
        goldfish    5.0  8.0
        Úshiftrräz:If `periods` contains multiple shifts, `axis` cannot be 1.z0If `periods` is an iterable, it cannot be empty.r%TzPeriods must be integer, but z is rz/Cannot specify `suffix` if `periods` is an int.FNcó,•—|j‰‰‰‰«Srk)r?)rrr ÚfreqÚperiods €€€€ror·zGroupBy.shift.<locals>.<lambda>`sø€˜aŸg™gؘD $¨
ó€rqr r²)r rãrAræ)%rrrŽrrr4rÍrrrŸr+r&r2ršr«rôryrzršr/r½rrérÎÚgroup_shift_indexerrÚrårr1r»r\rrMÚ
add_suffixÚappendrrN)rmÚperiodsrArr Úsuffixr&rDÚshifted_dataframesrwÚshiftedrkrAr¯Ú res_indexerrŽrBs  ```           @ror?z GroupBy.shiftçs—û€ðl ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    wÕ /àˆDä ˜Ô  ØqŠyÜ ØPóðôœ8 WÓ-ˆGܐ7‹|˜qÒ Ü Ð!SÓTÐTÝ 9à‰Jä˜gÔ&ÜØ3°G°9¸DÄÀgÃÀÈqÐQóðñÜ Ð!RÓSÐSÜœC Ó)Ð*ˆG؈JàÐØó#    OˆFܘfÔ%ÜØ3°F°8¸4ÄÀVà ¸~ÈQÐOóðôœ#˜vÓ&ˆFØÐ 4¨1¢9öð×4Ñ4ؐt×)Ñ)¸ð5ó‘𤧡Ñ/Ø!%JØ"&§-¡-×":Ñ":‘Q˜Ü Ÿh™h¤s¨3£x´r·x±xÔ@ ä×.Ñ.¨{¸CÀÈ&ÔQà×/Ñ/à×4Ñ4Ø—Y‘Y §¡¨$¯)©)Ñ!4°kРBÐCØ)Ø#ð5óñ ܘg¤vÔ.Ü"¤8¨W×-=Ñ-=Ó-?Ó@GØ!×,Ñ,Ù,2vh˜a ˜xÑ(¸!¸F¸8¸ óð × %Ñ %¤d¬5´¼Ð1BÑ+CÀWÓ&MÖ NðG#    OôNÐ%Ó&¨!Ò+ð ˜qÑ !ð    
ñÐ*°Ô3ð    
rqcó@‡‡—‰tjur.|jj‰«Š|j    ‰d«ndЉdk7r|j ˆˆfd„«S|j }|j‰¬«}ddg}|jdk(r$|j|vr|jd«}||z
S|jj«Dcgc] \}}||vsŒ |‘Œ}}}t|«r |j|Dcic]}|d“Œc}«}||z
Scc}}wcc}w)    a?
        First discrete difference of element.
 
        Calculates the difference of each element compared with another
        element in the group (default is element in previous row).
 
        Parameters
        ----------
        periods : int, default 1
            Periods to shift for calculating difference, accepts negative values.
        axis : axis to shift, default 0
            Take difference over rows (0) or columns (1).
 
            .. deprecated:: 2.1.0
                For axis=1, operate on the underlying object instead. Otherwise
                the axis keyword is not necessary.
 
        Returns
        -------
        Series or DataFrame
            First differences.
        %(see_also)s
        Examples
        --------
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'a', 'b', 'b', 'b']
        >>> ser = pd.Series([7, 2, 8, 4, 3, 3], index=lst)
        >>> ser
        a     7
        a     2
        a     8
        b     4
        b     3
        b     3
        dtype: int64
        >>> ser.groupby(level=0).diff()
        a    NaN
        a   -5.0
        a    6.0
        b    NaN
        b   -1.0
        b    0.0
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = {'a': [1, 3, 5, 7, 7, 8, 3], 'b': [1, 4, 8, 4, 4, 2, 1]}
        >>> df = pd.DataFrame(data, index=['dog', 'dog', 'dog',
        ...                   'mouse', 'mouse', 'mouse', 'mouse'])
        >>> df
                 a  b
          dog    1  1
          dog    3  4
          dog    5  8
        mouse    7  4
        mouse    7  4
        mouse    8  2
        mouse    3  1
        >>> df.groupby(level=0).diff()
                 a    b
          dog  NaN  NaN
          dog  2.0  3.0
          dog  2.0  4.0
        mouse  NaN  NaN
        mouse  0.0  0.0
        mouse  1.0 -2.0
        mouse -5.0 -1.0
        rôrcó*•—|j‰‰¬«S)N)rFr)rô)rrrFs €€ror·zGroupBy.diff.<locals>.<lambda>Ösø€¨¯©°wÀT¨Ó(J€rq)rFÚint8Úint16räÚfloat32)rrrŽrrryrÚr?r9r³r¸ÚdtypesÚitemsrŸ)    rmrFrrŽrIÚ dtypes_to_f32Úcr³Ú    to_coerces     ``      rorôz GroupBy.diff„sù€ðV ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    vÕ .àˆDà 1Š9Ø—:‘:ÔJÓKÐ Kà×'Ñ'ˆØ—*‘* W*Ó-ˆð  Ð)ˆ Ø 8‰8qŠ=؏y‰y˜MÑ)Ø!Ÿ.™.¨Ó3ð W‰}Ðð    ,/¯:©:×+;Ñ+;Ó+=×X™x˜q %ÀÈ-ÒAWšÐXˆIÑXܐ9Œ~Ø!Ÿ.™.À    Ö)J¸1¨!¨Y©,Ò)JÓKàW‰}Ðùó    Yùâ)Jsà DÃDÃ?
DcóR‡‡‡‡‡—‰tjdfvs‰tjur;tjdt    |«j
›dt t«¬«‰tjura‰tjurMtd„|D««r;tjdt    |«j
›dt t«¬«dЉtjurdЉtjur.|jj‰«Š|j‰d    «nd
Љ€‰d
k7r'ˆˆˆˆˆfd „}|j||jd ¬ «S‰€dŠd
Št|‰«‰¬«}|jd
k(r2|j!|j"j$|j&¬«}n;|j(j!|j"j$|j&¬«}|j+‰‰¬«}    |jdk(r |    j(}    ||    z dz
S)a­
        Calculate pct_change of each value to previous entry in group.
 
        Returns
        -------
        Series or DataFrame
            Percentage changes within each group.
        %(see_also)s
        Examples
        --------
 
        For SeriesGroupBy:
 
        >>> lst = ['a', 'a', 'b', 'b']
        >>> ser = pd.Series([1, 2, 3, 4], index=lst)
        >>> ser
        a    1
        a    2
        b    3
        b    4
        dtype: int64
        >>> ser.groupby(level=0).pct_change()
        a         NaN
        a    1.000000
        b         NaN
        b    0.333333
        dtype: float64
 
        For DataFrameGroupBy:
 
        >>> data = [[1, 2, 3], [1, 5, 6], [2, 5, 8], [2, 6, 9]]
        >>> df = pd.DataFrame(data, columns=["a", "b", "c"],
        ...                   index=["tuna", "salmon", "catfish", "goldfish"])
        >>> df
                   a  b  c
            tuna   1  2  3
          salmon   1  5  6
         catfish   2  5  8
        goldfish   2  6  9
        >>> df.groupby("a").pct_change()
                    b  c
            tuna    NaN    NaN
          salmon    1.5  1.000
         catfish    NaN    NaN
        goldfish    0.2  0.125
        NzDThe 'fill_method' keyword being not None and the 'limit' keyword in z½.pct_change are deprecated and will be removed in a future version. Either fill in any non-leading NA values prior to calling pct_change or specify 'fill_method=None' to not fill NA values.råc3órK—|]/\}}|j«jj«–—Œ1y­wrk)r;r:r)rÃrArSs   rorÅz%GroupBy.pct_change.<locals>.<genexpr>-s.èø€ò/Ù,2¨A¨s—‘“
×!Ñ!×%Ñ%×'ñ/ùs‚57z#The default fill_method='ffill' in z¼.pct_change is deprecated and will be removed in a future version. Either fill in any non-leading NA values prior to calling pct_change or specify 'fill_method=None' to not fill NA values.rÔÚ
pct_changercó0•—|j‰‰‰‰‰¬«S)N)rFÚ fill_methodrÆrAr)rW)rrrYrArÆrFs €€€€€ror·z$GroupBy.pct_change.<locals>.<lambda>Fs$ø€˜!Ÿ,™,ØØ'ØØØð 'ó€rqTr rÕ)r˜)rFrArä)rrr©rªr«rxr¬r,rrŽrrryrzrrrnršÚcodesr˜r#r?)
rmrFrYrÆrArrwÚfilledÚfill_grprIs
 `````    rorWzGroupBy.pct_changeèsêü€ðt œsŸ~™~¨tÐ4Ñ 4¸ÄSÇ^Á^Ñ8SÜ M‰MØVܘ“:×&Ñ&Ð'ð(ðô
Ü+Ó-õ ð œ#Ÿ.™.Ñ (ØœŸ™Ñ&¬3ñ/Ø6:ô/ô,ô— ‘ Ø9ܘD“z×*Ñ*Ð+ð,HðHô
"Ü/Ó1õð"ˆKØ ”C—N‘NÑ "؈Eà ”s—~‘~Ñ %Ø—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    |Õ 4àˆDð Ð ˜t qšy÷ˆAð×-Ñ-¨a°×1CÑ1CÐRVÐ-ÓWÐ Wà Ð Ø!ˆK؈EØ+”˜˜{Ó+°%Ô8ˆØ 9‰9˜Š>Ø—~‘~ d§m¡m×&9Ñ&9ÀdÇoÁo~ÓV‰Hà—x‘x×'Ñ'¨¯ © ×(;Ñ(;ÈÏÉÐ'ÓXˆHØ—.‘.¨°t.Ó<ˆØ 9‰9˜Š>Ø—i‘iˆGؘѠ AÑ%Ð%rqcóZ—|jtd|««}|j|«S)a‘
        Return first n rows of each group.
 
        Similar to ``.apply(lambda x: x.head(n))``, but it returns a subset of rows
        from the original DataFrame with original index and order preserved
        (``as_index`` flag is ignored).
 
        Parameters
        ----------
        n : int
            If positive: number of entries to include from start of each group.
            If negative: number of entries to exclude from end of each group.
 
        Returns
        -------
        Series or DataFrame
            Subset of original Series or DataFrame as determined by n.
        %(see_also)s
        Examples
        --------
 
        >>> df = pd.DataFrame([[1, 2], [1, 4], [5, 6]],
        ...                   columns=['A', 'B'])
        >>> df.groupby('A').head(1)
           A  B
        0  1  2
        2  5  6
        >>> df.groupby('A').head(-1)
           A  B
        0  1  2
        N©rÝrçrÞ©rmrÄr?s   roÚheadz GroupBy.head\s,€ðF×6Ñ6´u¸TÀ1³~ÓFˆØ×&Ñ& tÓ,Ð,rqcó„—|r|jt| d««}n|jg«}|j|«S)a°
        Return last n rows of each group.
 
        Similar to ``.apply(lambda x: x.tail(n))``, but it returns a subset of rows
        from the original DataFrame with original index and order preserved
        (``as_index`` flag is ignored).
 
        Parameters
        ----------
        n : int
            If positive: number of entries to include from end of each group.
            If negative: number of entries to exclude from start of each group.
 
        Returns
        -------
        Series or DataFrame
            Subset of original Series or DataFrame as determined by n.
        %(see_also)s
        Examples
        --------
 
        >>> df = pd.DataFrame([['a', 1], ['a', 2], ['b', 1], ['b', 2]],
        ...                   columns=['A', 'B'])
        >>> df.groupby('A').tail(1)
           A  B
        1  a  2
        3  b  2
        >>> df.groupby('A').tail(-1)
           A  B
        1  a  2
        3  b  2
        Nr^r_s   roÚtailz GroupBy.tail‚sA€ñH Ø×:Ñ:¼5À!ÀÀT»?ÓK‰Dà×:Ñ:¸2Ó>ˆDà×&Ñ& tÓ,Ð,rqcóº—|jjd}||dk7z}|jdk(r|j|S|jjdd…|fS)a
        Return _selected_obj with mask applied to the correct axis.
 
        Parameters
        ----------
        mask : np.ndarray[bool]
            Boolean mask to apply.
 
        Returns
        -------
        Series or DataFrame
            Filtered _selected_obj.
        rr(N)ršr/rrzrè)rmr?rks   rorÞzGroupBy._mask_selected_obj­s]€ðm‰m×&Ñ& qÑ)ˆØs˜b‘yÑ!ˆà 9‰9˜Š>Ø×%Ñ% dÑ+Ð +à×%Ñ%×*Ñ*ª1¨d¨7Ñ3Ð 3rqcó—|jj}t|«dk(r|S|jr|St    d„|D««s|S|Dcgc]}|j
‘Œ}}|jj }||j|«|dgz}tj||¬«}    |jr|    j«}    |jr˜|jj|j«|    ddd|i}
t!«rP|dk(rJt#|t$«r1t#|j&t(«rd    |
d<|j*di|
¤ŽSt#|t,«rùt    d
„|j.D««rÝ|j.} t1j2|j.d k(«d } | D]8} |j5| |j6dd…| fj9t:««Œ:|j*di|
¤Ž}| D]V} |j6dd…| f}|j5| |j=|d k(d    «j9| j6| ««ŒX|S|j*di|
¤ŽSt?|«Dcgc] \}}|j@sŒ||jBf‘Œ"}}}t|«d kDr'tE|Ž\}}|jGtI|«d¬ «}|jK|jjL«j+|    d|¬«}t|«d kDr|jO¬«}|jOd¬«Scc}wcc}}w)aI
        If we have categorical groupers, then we might want to make sure that
        we have a fully re-indexed output to the levels. This means expanding
        the output space to accommodate all values in the cartesian product of
        our groups, regardless of whether they were observed in the data or
        not. This will expand the output space if there are missing groups.
 
        The method returns early without modifying the input if the number of
        groupings is less than 2, self.observed == True or none of the groupers
        are categorical.
 
        Parameters
        ----------
        output : Series or DataFrame
            Object resulting from grouping and applying an operation.
        fill_value : scalar, default np.nan
            Value to use for unobserved categories if self.observed is False.
        qs : np.ndarray[float64] or None, default None
            quantile values, only relevant for quantile.
 
        Returns
        -------
        Series or DataFrame
            Object (potentially) re-indexed to include all possible groups.
        räc3ó\K—|]$}t|jttf«–—Œ&y­wrk)r»rBrDrVrs  rorÅz*GroupBy._reindex_output.<locals>.<genexpr>ïs+èø€ò
àô t×+Ñ+¬kÔ;KÐ-L× Mñ
ùs‚*,NrEr*Fr rIÚc3ó<K—|]}t|t«–—Œy­wrk)r»rI)rÃr³s  rorÅz*GroupBy._reindex_output.<locals>.<genexpr> sèø€ò;Ø7<”J˜u¤k×2ñ;ùs‚Ústringr)r>r)r*r )r’T)Údropr‚)(ršrrŸr–rÚ _group_indexrÐrErXrOr‘rPr•rŽÚ_get_axis_namerrr»r\r³rIr8rNrPr½rõÚisetitemrèr¸r¤r?rLrQr€rÇrirñÚ    set_indexr,rV)rmrær rZr«rrrbrÐr5ÚdÚ orig_dtypesr±r_ÚcolrÊÚ in_axis_grpsÚg_numsÚg_namess                   ror]zGroupBy._reindex_outputÄs€ðB—M‘M×+Ñ+ˆ    Ü ˆy‹>˜QÒ ØˆMð]Š]؈Môñ
à!ô
ô
ðˆMà5>Ö?¨Tt×(Ó(Ð?ˆ Ð?Ø— ‘ ×#Ñ#ˆØ ˆ>ð × Ñ ˜rÔ "ؘT˜F‘NˆEÜ×'Ñ'¨ ¸5ÔAˆØ 9Š9Ø×%Ñ%Ó'ˆEà =‹=ð—‘×'Ñ'¨¯    ©    Ó2°EؘؘjðˆAô
"Õ#¨°%«Ü˜f¤fÔ-´*¸V¿\¹\Ì;Ô2WØ&(Al‘OØ)˜6Ÿ>™>Ñ.¨AÑ.Ð.Ü ¬    Ô2´sñ;Ø@FÇ Á ô;ô8ð#)§-¡-KÜ Ÿj™j¨¯©¸(Ñ)BÓCÀAÑFGØ&òQ˜ØŸ™¨¨V¯[©[º¸C¸Ñ-@×-GÑ-GÌÓ-OÕPðQà+˜VŸ^™^Ñ0¨aÑ0FØ&ò˜Ø$Ÿk™kª!¨S¨&Ñ1˜ØŸ™Ø §¡¨#°©(°BÓ!7×!>Ñ!>¸{×?OÑ?OÐPSÑ?TÓ!Uõðð
"MØ!6—>‘>Ñ& AÑ&Ð &ô-6°iÓ,@÷
Ù(  4ÀDÇLÃLˆQ—    ‘    ŠNð
ˆ ñ
ô ˆ|Ó ˜qÒ  Ü! <Ð0‰OˆFGØ—[‘[¬¨W« ¸A[Ó>ˆFð×!Ñ! $§-¡-×"<Ñ"<Ó=×EÑEØ ˜¨*ðFó
ˆô ˆ|Ó ˜qÒ  Ø×'Ñ'¨fÐ'Ó5ˆFà×!Ñ! tÐ!Ó,Ð,ùòE@ùób
sÁ L=É7MÊ Mcó¶—|jjr |jStj|||«}|,tj|j||j
¬«}t j|«}|jj|j|j
«}g}    |D]k\}
} |j|
} t| «} ||}n|€J‚t|| z«}tj| |||€dn| |¬«}|    j| |«Œmtj|    «}    |jj!|    |j
¬«S)ab
        Return a random sample of items from each group.
 
        You can use `random_state` for reproducibility.
 
        Parameters
        ----------
        n : int, optional
            Number of items to return for each group. Cannot be used with
            `frac` and must be no larger than the smallest group unless
            `replace` is True. Default is one if `frac` is None.
        frac : float, optional
            Fraction of items to return. Cannot be used with `n`.
        replace : bool, default False
            Allow or disallow sampling of the same row more than once.
        weights : list-like, optional
            Default None results in equal probability weighting.
            If passed a list-like then values must have the same length as
            the underlying DataFrame or Series object and will be used as
            sampling probabilities after normalization within each group.
            Values must be non-negative with at least one positive element
            within each group.
        random_state : int, array-like, BitGenerator, np.random.RandomState, np.random.Generator, optional
            If int, array-like, or BitGenerator, seed for random number generator.
            If np.random.RandomState or np.random.Generator, use as given.
 
            .. versionchanged:: 1.4.0
 
                np.random.Generator objects now accepted
 
        Returns
        -------
        Series or DataFrame
            A new object of same type as caller containing items randomly
            sampled within each group from the caller object.
 
        See Also
        --------
        DataFrame.sample: Generate random samples from a DataFrame object.
        numpy.random.choice: Generate a random sample from a given 1-D numpy
            array.
 
        Examples
        --------
        >>> df = pd.DataFrame(
        ...     {"a": ["red"] * 2 + ["blue"] * 2 + ["black"] * 2, "b": range(6)}
        ... )
        >>> df
               a  b
        0    red  0
        1    red  1
        2   blue  2
        3   blue  3
        4  black  4
        5  black  5
 
        Select one row at random for each distinct value in column a. The
        `random_state` argument can be used to guarantee reproducibility:
 
        >>> df.groupby("a").sample(n=1, random_state=1)
               a  b
        4  black  4
        2   blue  2
        1    red  1
 
        Set `frac` to sample fixed proportions rather than counts:
 
        >>> df.groupby("a")["b"].sample(frac=0.5, random_state=2)
        5    5
        2    2
        0    0
        Name: b, dtype: int64
 
        Control sample probabilities within groups by setting weights:
 
        >>> df.groupby("a").sample(
        ...     n=1,
        ...     weights=[1, 1, 1, 0, 0, 1],
        ...     random_state=1,
        ... )
               a  b
        5  black  5
        2   blue  2
        0    red  0
        Nræ)rMÚreplaceÚweightsÚ random_state)rzrìr?Úprocess_sampling_sizeÚpreprocess_weightsrràrwršrðr±rŸÚroundrEr½rër7)rmrÄÚfracrurvrwrMÚ weights_arrÚgroup_iteratorÚsampled_indicesr>rŽÚ grp_indicesÚ
group_sizeÚ sample_sizeÚ
grp_samples                ror?zGroupBy.sample9sP€ð| × Ñ × #Ò #à×%Ñ%Ð %Ü×+Ñ+¨A¨t°WÓ=ˆØ Ð Ü ×3Ñ3Ø×"Ñ" G°$·)±)ôˆKô×'Ñ'¨ Ó5ˆ àŸ™×3Ñ3°D×4FÑ4FÈÏ    É    ÓRˆàˆØ)ò    <‰KˆFCØŸ,™, vÑ.ˆKܘ[Ó)ˆJØÐØ"‘ àÐ'Ð'Ð'Ü# D¨:Ñ$5Ó6 äŸ™ØØ ØØ ' ™°[ÀÑ5MØ)ô ˆJð × "Ñ " ;¨zÑ#:Õ ;ð!    <ô$Ÿ.™.¨Ó9ˆØ×!Ñ!×&Ñ& ¸T¿Y¹YÐ&ÓGÐGrqcóx‡‡‡‡—‰tjur<‰€ |jŠ|jj    ‰«Š|j ‰‰«n |jŠ|j sYtd„|jjD««r2tj|jjDcgc]}t|j«‘Œc}«}t|jj«dk(r;t|jjdjj««}nt|jj «}||ksJ‚||k}    | xr|    }
|j"} |
r:t%| t&«r*‰r| j)«} t| j*«dkD}
|
ryt-d‰›d«‚‰sh|j"j/«jd¬«r>t1j2dt5|«j6›d    ‰›d
t8t;«¬ «‰dk(r0    ˆˆˆˆfd „} ‰| _|j=| |j"d ¬«} | S|jA‰d‰‰¬«} | Scc}w#t,$r0}‰dk(rdnd}d|›dt?|«vrt-d‰›d«d‚‚d}~wwxYw)aªCompute idxmax/idxmin.
 
        Parameters
        ----------
        how : {'idxmin', 'idxmax'}
            Whether to compute idxmin or idxmax.
        axis : {{0 or 'index', 1 or 'columns'}}, default None
            The axis to use. 0 or 'index' for row-wise, 1 or 'columns' for column-wise.
            If axis is not provided, grouper's axis is used.
        numeric_only : bool, default False
            Include only float, int, boolean columns.
        skipna : bool, default True
            Exclude NA/null values. If an entire row/column is NA, the result
            will be NA.
        ignore_unobserved : bool, default False
            When True and an unobserved group is encountered, do not raise. This used
            for transform where unobserved groups do not play an impact on the result.
 
        Returns
        -------
        Series or DataFrame
            idxmax or idxmin for the groupby operation.
        Nc3ó4K—|]}|j–—Œy­wrkrrs  rorÅz)GroupBy._idxmax_idxmin.<locals>.<genexpr>ásèø€ò%
Ø)-ˆD× $Õ $ñ%
ùrrärz
Can't get zZ of an empty group due to unobserved categories. Specify observed=True in groupby instead.ræzThe behavior of rzn with all-NA values, or any-NA and skipna=False, is deprecated. In a future version this will raise ValueErrorråcó2•—t|‰«}|‰‰‰¬«S)N)rr r¨)r)rr«rr¦r¨r s  €€€€rorâz$GroupBy._idxmax_idxmin.<locals>.func sø€Ü$ R¨Ó-FÙ! t°FÈÔVÐVrqTr²rÌÚargmaxÚargminzattempt to get z of an empty sequence)r¨r©rŸr )!rrrrŽrrr–rršrr½rrŸrjrBÚuniquer,rÚr»rNr7rNrÍr;r©rªr«rxr¬r,ryrˆr¯)rmr¦Úignore_unobservedrr r¨rÚ expected_lenÚ
result_lenÚhas_unobservedÚ    raise_errrbrâròrÔr€s ` ```          rorÞzGroupBy._idxmax_idxminºs´û€ð> ”s—~‘~Ñ %؈|Ø—y‘yØ—8‘8×,Ñ,¨TÓ2ˆDØ ×  Ñ    sÕ +à—9‘9ˆDà}‹}¤ñ%
Ø15·±×1HÑ1Hô%
õ"
ôŸ7™7Ø48·M±M×4KÑ4KÖL¨D”T×&Ñ&Õ'ÒLóˆLô4—=‘=×*Ñ*Ó+¨qÒ0Ü  §¡×!8Ñ!8¸Ñ!;×!KÑ!K×!RÑ!RÓ!TÓU‘
ô! §¡×!;Ñ!;Ó<
Ø Ò-Ð -Ð-Ø'¨,Ñ6ˆNà->Ð)>Ò)QÀ>ˆIð×,Ñ,ˆDÙœZ¨¬iÔ8ÙØ×1Ñ1Ó3DÜ § ¡ Ó-°Ñ1    áÜ Ø   ð&@ð@óðñØ×(Ñ(×-Ñ-Ó/×3Ñ3¸Ð3Ô>Ü— ‘ Ø&¤t¨D£z×':Ñ':Ð&;¸1¸S¸EðB9ð9ô"Ü/Ó1õ ð 1Š9ð ÷Wð!$” Ø×3Ñ3ؘ$×3Ñ3Àdð4óðˆMà×"Ñ"Ø%ØØØð    #ó
ˆð ˆ ùò}Møô\ò Ø#&¨(¢?‘x¸Ø$ T FÐ*?Ð@ÄCÈÃHÑLÜ$Ø$ S Eð*PðPóð ð ðûð úsÂ:I;È5-JÊ    J9Ê    +J4Ê4J9có—|jj|j«}|jdk(r|j    |j
«}|St |t«r|j«}|j}t |tj«sJ‚t|j
d¬«}t |t«rF|j|jj!|d|¬«|j"|j$¬«}|Si}t'|j(«D]&\}}|jj!|d|¬«||<Œ(|jj||j"¬«}|j*|_|S)NrF)ÚcompatT)Ú
allow_fillr râ)r5)rŽr.rrMr¸r³r»rXÚ to_flat_indexr4r½rÈr<r\rˆrêr7r5r€rLr#rN)    rmr^r5ròr:rrbÚkÚ column_valuess             rorÑzGroupBy._wrap_idxmax_idxmin%sI€Ø—‘×"Ñ" 4§9¡9Ó-ˆØ 8‰8qŠ=Ø—Z‘Z § ¡ Ó,ˆFð,ˆ ô)˜%¤Ô,Ø×+Ñ+Ó-Ø—[‘[ˆFܘf¤b§j¡jÔ1Ð 1Ð1Ü)¨%¯+©+¸eÔDˆHܘ#œvÔ&à×)Ñ)Ø—K‘K×$Ñ$ V¸ÈÐ$ÓRØŸ)™)ØŸ™ð*óðˆ ðÜ(1°&·(±(Ó(;òÑ$A}Ø#Ÿk™k×.Ñ.Ø%°$À8ð/óD˜’GððŸ™×.Ñ.¨t¸3¿9¹9Ð.ÓEØ!$§¡”؈ rq)rŽrrr›rrr’rœr”úops.BaseGrouper | Noner—zfrozenset[Hashable] | Noner
rœr•rr‘rr˜rr–zbool | lib.NoDefaultr“rr…r†)rrˆ)rrôr€rˆr…r†r‡)FF)rrrr)ròrûr…rû)ròúSeries | DataFramer…rN)ròrr…rrk)ròr•rZúnpt.NDArray[np.float64] | None)r:rñrrrr)rbrN)râr r|zdict[np.dtype, Any]r}údict[str, bool] | None)r’rr…r)NFF) rwr rbrörz bool | Nonerrr¢rr…r)Fr()r¨rr©rôrŸrˆr¤úCallable | None)
r¦rˆr:rr9rôr§r r…r)NFr()r¦rˆr§r˜r¨rr©rô)Fr)r¦rˆr¨rrr)T)rürr…r)r…r )r rr…r)r…r)FNN)r¨rr×ú!Literal['cython', 'numba'] | Noner}r—)F)r¨rr…r)räNNF)r4rôr×r™r}r—r¨r)NFTFT) rWzSequence[Hashable] | NonerXrr‘rrürr“rr…rö)räF)r4rôr¨rr…rrõ)FrNN)r¨rr©rôr×r™r}r—)r¨rr©rôr…r)Fr(NN)Fr(T)r¨rr©rôr rr…r)r…rN)NNN)r’rr…ra)r…rd)r…rb)r…rc)rÐzLiteral['ffill', 'bfill']rÆú
int | None)rÆrš)r…rU)rÄzPositionalIndexer | tupler“zLiteral['any', 'all', None]r…r)gà?rîF)rzfloat | AnyArrayLikerûrˆr¨r)rür) r«rˆrürrrˆrrrúAxisInt | lib.NoDefaultr…r)rúAxis | lib.NoDefaultr…r)rr›r¨rr…r)rFzint | Sequence[int]rrœrGú
str | None)rFrôrr›r…r)rFrôrYz$FillnaOptions | None | lib.NoDefaultrÆzint | None | lib.NoDefaultrrœ)é)rÄrôr…r)r?znpt.NDArray[np.bool_]r…r)
rærûr r"rZr–r«rr…rû)NNFNN)
rÄršr{z float | NonerurrvzSequence | Series | NonerwzRandomState | None) r¦zLiteral['idxmax', 'idxmin']r‰rrzAxis | None | lib.NoDefaultr rr¨rr…r)r^rr…r)[rxr‰rŠr‹rørrrrprƒrr#rBr!rUrWr_rcrtr‚r‹rr(Ú _apply_docsrryryr¯r¾r­rÖràrßrñrrùrr)Ú_common_see_alsorrÅrþr&r.rÆr=rirÇrMr+Ú#_groupby_agg_method_engine_templater
rIÚ_groupby_agg_method_templaterrr‰r’rr rNr±r¹r½r¿rÁrÒrÔrÄrÚrärærrrr#rör/r;r?rôrWr`rbrÞr½rør]r?rÞrÑr‚rqror„r„Ës¨…ñAðFÓØƒNà
ð%)ØØ#'Ø*.Ø15Ø'+ØØØØ),¯©Øð:Oà ð:Oð"ð:Oðð    :Oð
!ð :Oð (ð :Oð/ð:Oð%ð:Oðð:Oðð:Oðð:Oð'ð:Oðð:Oð
ò:Oó ð:Oóx
ð òó ðð$ ò1ó ð1ðl ð"'Ø"ð    AððAðò    Aó ðAðF ðØ)ðà    òó ðð2 òó ðð> òó ðð ð.2ð'0à"ð'0ð +ò'0ó ð'0ðZ"'Ø"ð (ðð(ðð    (ð
ó (ð ò
ó ð
ð4+àð+ð+ð+ð.ó    +ðZ Ø?Có!Gó ð!GðF Ø?Có"ó ð"ñNؐJÑ×&Ñ&ب Ð4HÑ(Ið    'ó    
óð
9=ô?ó ð
?ðB ð
)-Ø"Øð +
à ð+
ð!ð+
ð&ð    +
ð
ð +
ð ð +
ð
ò+
ó ð+
ðZ ð#Øð?ð #'ñ ?àð?ðð?ð
ð ?ð  ò ?ó ð?ð$-9Øð-9Ø )ð-9Ø14ð-9Ø;Cð-9à    ó-9ð^ ð $Ø"Øð /à ð/ðð/ðð    /ð
ò /ó ð/ðdEFð(Øð(Ø&*ð(Ø:Aó(ð
 Ø-1Àó'<ó ð'<ðR òó ðð< ñó ðð  ó#ó ð#ðN Ø ò%óó ð%ð ِyÔ!ÙÐ+Ô,ó3
ó-ó"ó ð3
ðj ِyÔ!ÙÐ+Ô,ó4
ó-ó"ó ð4
ðl ِyÔ!ÙÐ+Ô,ò`:ó-ó"ó ð`:ðD ِyÔ!ÙÐ+Ô,ð#Ø48Ø04ð    YCàðYCð2ðYCð.ò    YCó-ó"ó ðYCðv óM?ó ðM?ð^ ِyÔ!ÙÐ+Ô,ðØ48Ø04Ø"ð hàðhð2ðhð.ð    hð
ò hó-ó"ó ðhðT ِyÔ!ÙÐ+Ô,ðØ48Ø04Ø"ð fàðfð2ðfð.ð    fð
ò fó-ó"ó ðfðP ð-1ØØØØð MDà)ðMDððMDðð    MDð
ð MDð ð MDð
òMDó ðMDð^ óS
ó ðS
ðj ِyÔ!ÙÐ+Ô,ò\ó-ó"ó ð\ð| ÙØ+ØØ Ø Ø
Ø Ùð ó!
ô)ðX#ØØ48Ø04ð LàðLððLð2ð    Lð
.ò LóU)ó ðVLð< ÙØ$ØØ Ø Ùð ó!
ô 'óP
óQ'ó ðR
ð
 ÙØ+ØØ Ø Ø
Ø Ùð ó!
ô)ðX#ØØ48Ø04ð àðððð2ð    ð
.ò óU)ó ðVð2 ÙØ+ØØ Ø Ø
Ø Ùð ó!
ô)ðX#ØØ48Ø04ð àðððð2ð    ð
.ò óU)ó ðVð2 àNRðM
Ø ðM
Ø58ðM
ØGKðM
à    òM
ó ðM
ð^ àNRðB
Ø ðB
Ø58ðB
ØGKðB
à    òB
ó ðB
ðH òWó ðWñr    ˆ×    Ñ    ÓðØØð    #ð
 
ò #óð#ðJ Ø;?ôB
ó ðB
ðH òI
ó ðI
ðV ِyÔ!Ù ÐÓò
ó ó"ó ð
ð$ ِyÔ!Ù ÐÓò
ó ó"ó ð
ð" óQó ðQðf ِyÔ!óY0ó"ó ðY0ðv ِyÔ!óL0ó"ó ðL0ð\ Ø ÙyÔ!ÙÐ+Ô,òX(ó-ó"óó ðX(ðz/3ð8à $ð8ð,ð8ð
ó    8ðt ð#&Ø%Ø"ð    a=à ða=ðða=ðò    a=ó ða=ðF ِyÔ!óPó"ó ðPðd ِyÔ!ó7:ó"ó ð7:ðr ِyÔ!ÙÐ+Ô,ð ØØØØ(+¯©ð g
àðg
ððg
ðð    g
ð
ð g
ð &ð g
ð
òg
ó-ó"ó ðg
ðR ِyÔ!ÙÐ+Ô,à+.¯>©>ð8;Ø(ð8;à    ò8;ó-ó"ó ð8;ðt ِyÔ!ÙÐ+Ô,à+.¯>©>ð8:Ø(ð8:à    ò8:ó-ó"ó ð8:ðt ِyÔ!ÙÐ+Ô,ð),¯©Ø"ðF
à%ðF
ððF
ð
 
ò F
ó-ó"ó ðF
ðP ِyÔ!ÙÐ+Ô,ð),¯©Ø"ðF
à%ðF
ððF
ð
 
ò F
ó-ó"ó ðF
ðP ِyÔ!ð()Ø Ø%(§^¡^Ø—>‘>Ø!ð Y
à$ðY
ð#ð    Y
ð ò Y
ó"ó ðY
ðv ِyÔ!ÙÐ+Ô,àÀÇÁð_Øð_Ø&=ð_à    ò_ó-ó"ó ð_ðB ِyÔ!ÙÐ+Ô,ðØ<?¿N¹NØ,/¯N©NØ Ø%(§^¡^ð o&àðo&ð:ðo&ð*ð    o&ð #ò o&ó-ó"ó ðo&ðb ِyÔ!ÙÐ+Ô,ó!-ó-ó"ó ð!-ðF ِyÔ!ÙÐ+Ô,ó&-ó-ó"ó ð&-ðP ò4ó ð4ð, ð ŸV™VØ-1Ø!ð r-à#ðr-ððr-ð +ð    r-ð
ð r-ð
ò r-ó ðr-ðh ðØ!ØØ,0Ø+/ð ~Hà ð~Hðð~Hðð    ~Hð
*ð ~Hð )ò ~Hó ð~HðF#(Ø,/¯N©NØØ"ð ià (ðið ðið*ð    ið
ð ið ð ið
óiôVrqr„cóœ—t|t«r    ddlm}|}n't|t«r    ddlm}|}nt d|›«‚||||||¬«S)Nr)Ú SeriesGroupBy)ÚDataFrameGroupByzinvalid type: )rŽrrr”r˜)r»r\Úpandas.core.groupby.genericr¤rNr¥rš)rŽÚbyrr”r˜r¤rÝr¥s        roÚ get_groupbyr¨AsV€ô#”vÔÝ=à‰Ü    CœÔ    #Ý@à ‰ä˜.¨¨Ð.Ó/Ð/á Ø Ø Ø ØØô  ðrqcó¢—t|«}t|«j«\}}t||«}|jr–t t |«}t|j«|gz}|jDcgc]}tj||«‘Œc}tj|t|««gz}t |||jdgz¬«}|St|«}    ttj|    «|«}
||g}tj|
|«tj||    «g}t |||jdg¬«}|Scc}w)a
    Insert the sequence 'qs' of quantiles as the inner-most level of a MultiIndex.
 
    The quantile level in the MultiIndex is a repeated copy of 'qs'.
 
    Parameters
    ----------
    idx : Index
    qs : np.ndarray[float64]
 
    Returns
    -------
    MultiIndex
    N)r'rZrÐ)rŸrWÚ    factorizer-Ú    _is_multirrXrñr'rZr½r÷rîrÐrûr€) r_rZrÚ    lev_codesrTr'rrZÚmiÚnidxÚ    idx_codess            ror\r\^s€ô ˆb‹'€Cܘ2“Y×(Ñ(Ó*N€IˆsÜ$ Y°Ó4€Ià
‡}‚}Ü”:˜sÓ#ˆÜc—j‘jÓ! S EÑ)ˆØ,/¯I©IÖ6 q”—‘˜1˜cÕ"Ò6¼"¿'¹'À)ÌSÐQTËXÓ:VÐ9WÑWˆÜ ˜v¨U¸#¿)¹)ÀtÀfÑ:LÔ Mˆð €Iô 3‹xˆÜ(¬¯©°4«¸#Ó>ˆ    ØsˆÜ—‘˜9 cÓ*¬B¯G©G°I¸tÓ,DÐEˆÜ ˜v¨U¸3¿8¹8ÀTÐ:JÔ Kˆà €Iùò7sÁ7E a-{}.{} operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.)NrNT) rŽrOr§r›rrr”r”r˜rr…r„)r_rWrZznpt.NDArray[np.float64]r…rX)§r‹Ú
__future__rÚcollections.abcrrrrr¼Ú    functoolsrr    rÚtextwrapr
Útypingr r r rrrrr©Únumpyr½Úpandas._configrÚpandas._config.configrÚ pandas._libsrrÚpandas._libs.algosrÚpandas._libs.groupbyÚ_libsrnrÎÚpandas._libs.missingrÚpandas._typingrrrrrrrrr r!r"r#r$Úpandas.compat.numpyr%r(Ú pandas.errorsr&r'Úpandas.util._decoratorsr(r)r*r+Úpandas.util._exceptionsr,Úpandas.core.dtypes.castr-r.Úpandas.core.dtypes.commonr/r0r1r2r3r4r5r6r7r8r9r:Úpandas.core.dtypes.missingr;r<r=Ú pandas.corer>r?Úpandas.core._numbar@Úpandas.core.applyrAÚpandas.core.arraysrBrCrDrErFrGrHÚpandas.core.arrays.string_rIÚpandas.core.arrays.string_arrowrJrKÚpandas.core.baserLrMÚpandas.core.commonÚcoreÚcommonràÚpandas.core.framerNÚpandas.core.genericrOÚpandas.core.groupbyrPrQrRÚpandas.core.groupby.grouperrSÚpandas.core.groupby.indexingrTrUÚpandas.core.indexes.apirVrWrXrYrZÚpandas.core.internals.blocksr[Úpandas.core.seriesr\Úpandas.core.sortingr]Úpandas.core.util.numba_r^r_r`r·rar¼rbrcrdr rŸr¢r¡rúÚ_transform_templateÚ_agg_template_seriesÚ_agg_template_framerirñÚ _KeysArgTyperrûr„r¨r\rœr‚rqroú<module>rÝs—ðñõ#÷óó ÷óÝ÷÷ñóãå-Ý0÷õ'ß)Ð)Ý#÷÷÷õõ/÷÷óõ 5÷÷ ÷ ÷ ó ÷ñ÷ õ(Ý4÷÷ñõ3÷÷÷!РÝ'Ý'÷ñõ
4÷÷õõ<Ý%Ý6÷ñ
Ýå.÷ñð ÐðAðD@ðB2ñIw€ ðr Ðð4&'Ð#ðP5€ðn\Ðð|PÐðdMÐð`ô,óóðð2Ø ØˆNØ ˆhˆZ˜Ð !Ñ"؈8*˜hÐ&Ñ    'Ñ(Ø ˆHhÐ Ñð    !ñ€ ôF, ¨xÑ 8Ð:NôFñTÐ3¸7ÔCÐôsIˆk˜(Ñ#ôsIñlS€Wƒð#ØØ&*Øð Ø    ðàðð ðð$ð    ð
ð ð  ò óðó8ðHñrq