hyb
2025-11-10 e0a856b5072c5a09f3f6de6da85abf90e00ee704
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
Ë
nñúhuãó—dZddlmZddlZddlmZddlmZddlZddl    m
Z
ddl m Z m Z mZmZddlZddlmZmZmZddlmcmcmZdd    lmZdd
lmZdd lm Z m!Z!dd l"m#Z#m$Z$m%Z%m&Z&m'Z'dd l(m)Z)ddl*m+Z+m,Z,ddl-m.Z.ddl/m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:cm;Z<ddl=m>Z>m?Z?m@Z@mAZAddlBmCZCmDZDmEZEmFZFmGZGddlHmIZIddlJmKZKmLZLddlMmNZNmOZOddlPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZddl[m\Z\m]Z]m^Z^e r.ddl_m`Z`maZambZbddlcmdZdmeZemfZfmgZgmhZhmiZiddljmkZkmlZlddlmmnZndd lompZpdd!lqmrZrGd"„d#e8«ZsGd$„d%es«ZtGd&„d'es«ZuGd(„d)es«ZvGd*„d+ev«Zweujew_Gd,„d-etew«Zxy).zc
Provide a generic structure to support window functions,
similar to how we have a Groupby object.
é)Ú annotationsN)Ú    timedelta)Úpartial)Údedent)Ú TYPE_CHECKINGÚAnyÚCallableÚLiteral)Ú
BaseOffsetÚ    TimedeltaÚ    to_offset)Úimport_optional_dependency)Ú    DataError)Údeprecate_kwargÚdoc)Úensure_float64Úis_boolÚ
is_integerÚis_numeric_dtypeÚneeds_i8_conversion)Ú
ArrowDtype)Ú ABCDataFrameÚ    ABCSeries)Únotna)Úexecutor)Ú    factorize)ÚResamplerWindowApply)ÚExtensionArray)ÚSelectionMixin)Ú BaseIndexerÚFixedWindowIndexerÚGroupbyIndexerÚVariableWindowIndexer)Ú DatetimeIndexÚIndexÚ
MultiIndexÚ PeriodIndexÚTimedeltaIndex)Úconcat)Úget_jit_argumentsÚmaybe_use_numba)Úflex_binary_momentÚzsqrt)
Ú _shared_docsÚcreate_section_headerÚkwargs_numeric_onlyÚ kwargs_scipyÚ numba_notesÚtemplate_headerÚtemplate_returnsÚtemplate_see_alsoÚwindow_agg_numba_parametersÚwindow_apply_parameters)Ú'generate_manual_numpy_nan_agg_with_axisÚgenerate_numba_apply_funcÚgenerate_numba_table_func)ÚHashableÚIteratorÚSized)Ú    ArrayLikeÚAxisÚNDFrameTÚQuantileInterpolationÚWindowingRankTypeÚnpt)Ú    DataFrameÚSeries)ÚNDFrame©Ú BaseGrouper)Ú dtype_to_unitcóÊ—eZdZUdZgZded<e«Zded<ded<                                    d"dd    œ                                                                            d#d
„Zd$d „Z                                    d%d „Z
d&d'd „Z d(d„Z d)d„Z d*d+d„Zd&d„Zd,d„Zd„Zd-d„Zd.d„Zd/d„Zd0d„Zed1d„«Zd2d„Zd3d„Z    d&                    d4d„Z    d*                            d5d„Z        d6                            d7d„Z                                                d8d„Z        d9                            d:d„Z    d&            d;d „Zd!„Z e Z!y)<Ú
BaseWindowz7Provides utilities for performing windowing operations.ú    list[str]Ú _attributeszfrozenset[Hashable]Ú
exclusionsr%Ú_onN)Ú    selectionc óê—||_||_||_|    |_||_||_||_||_||j|«nd|_    |
|_
d|_ |j€G|jdk(r|jj|_ nÅ|jj|_ n©t|jt «r|j|_ n}t|jt"«rJ|j|jjvr(t!|j|j«|_ nt%d|j›d«‚| |_|j)«y)Nrzinvalid on specified as z3, must be a column (of DataFrame), an Index or None)ÚobjÚonÚclosedÚstepÚwindowÚ min_periodsÚcenterÚwin_typeÚ_get_axis_numberÚaxisÚmethodÚ _win_freq_i8ÚindexrOÚcolumnsÚ
isinstancer%rÚ
ValueErrorÚ
_selectionÚ    _validate) ÚselfrRrVrWrXrYr[rSrTrUr\rPs             úMH:\Change_password\venv_build\Lib\site-packages\pandas/core/window/rolling.pyÚ__init__zBaseWindow.__init__s'€ðˆŒØˆŒØˆŒ ؈Œ    ØˆŒ Ø&ˆÔ؈Œ Ø ˆŒ Ø26Ð2BC×(Ñ(¨Ô.ȈŒ    ØˆŒ Ø(,ˆÔØ 7‰7ˆ?؏y‰y˜AŠ~ØŸ8™8Ÿ>™>•ð Ÿ8™8×+Ñ+•Ü ˜Ÿ™¤Ô 'Ø—w‘wˆDHÜ ˜Ÿ™¤,Ô /°D·G±G¸t¿x¹x×?OÑ?OÑ4OܘTŸX™X d§g¡gÑ.Ó/ˆDHäØ*¨4¯7©7¨)ð4DðDóð ð
$ˆŒØ ‰Õócóš—|j t|j«s td«‚|jt    |j«s td«‚|jdkr td«‚t    |j
«r>|j|j
kDr%td|j›d|j
›«‚|j |j dvr td«‚t|jttf«std    t|«›«‚t|j
t«r°tj|j
j «j"j%«}tjt«j «j"j%«}||k7r+tt|j
«j&›d
«‚|j(d vr td «‚|j*;t    |j*«s td «‚|j*dkr td«‚yy)Nzcenter must be a booleanzmin_periods must be an integerrzmin_periods must be >= 0z min_periods z must be <= window )ÚrightÚbothÚleftÚneitherz3closed must be 'right', 'left', 'both' or 'neither'zinvalid type: z? does not implement the correct signature for get_window_bounds)ÚtableÚsinglez!method must be 'table' or 'singlezstep must be an integerzstep must be >= 0)rXrrarWrrVrTr`rRrrÚ    TypeErrorÚtyper ÚinspectÚ    signatureÚget_window_boundsÚ
parametersÚkeysÚ__name__r\rU)rdÚget_window_bounds_signatureÚexpected_signatures   rerczBaseWindow._validate¬sù€Ø ;‰;Ð "¬7°4·;±;Ô+?ÜÐ7Ó8Ð 8Ø × Ñ Ð 'ܘd×.Ñ.Ô/Ü Ð!AÓBÐBØ×Ñ !Ò#Ü Ð!;Ó<Ð<ܘ$Ÿ+™+Ô&¨4×+;Ñ+;¸d¿k¹kÒ+IÜ Ø" 4×#3Ñ#3Ð"4Ð4GÈÏ É À}ÐUóðð ;‰;Ð " t§{¡{ð;
ñ(
ô ÐRÓSÐ Sܘ$Ÿ(™(¤Y´ Ð$=Ô>ܘn¬T°$«Z¨LÐ9Ó:Ð :Ü d—k‘k¤;Ô /ô+2×*;Ñ*;Ø— ‘ ×-Ñ-ó+ç‰jŸ™›ð (ô")×!2Ñ!2Ü“ ×/Ñ/ó"ç‰jŸ™›ð ð+Ð.@Ò@ܠܘDŸK™KÓ(×1Ñ1Ð2ð3BðCóðð ;‰;Ð1Ñ 1ÜÐ@ÓAÐ AØ 9‰9Ð  Ü˜dŸi™iÔ(Ü Ð!:Ó;Ð;؏y‰y˜1Š}Ü Ð!4Ó5Ð5ðð !rgc    ó0—t|«t|«k7r$tdt|«›dt|«›d«‚t|«||jxsdzdz
|jxsdzk7r(tdt|«›d|›d|j›d«‚y)    Nzstart (z ) and end (z ) bounds must be the same lengthézstart and end bounds (z)) must be the same length as the object (z) divided by the step (z) if given and rounded up)ÚlenrarU)rdÚstartÚendÚnum_valss    reÚ_check_window_boundszBaseWindow._check_window_bounds×s«€ô ˆu‹:œ˜S›Ò !ÜØœ#˜e›*˜ [´°S³°
ð;ðóð ô ˆu‹:˜( d§i¡i¢n°1Ñ5¸Ñ9¸t¿y¹yº~ÈAÑNÒ NÜØ(¬¨U«¨ ð5"Ø"* Ð+BÀ4Ç9Á9À+ðN*ð+óð ð Orgcó\—|t|«t|«k(r|S|dd|j…S)zJ
        Slices the index for a given result and the preset step.
        N)r{rU)rdr^Úresults   reÚ_slice_axis_for_stepzBaseWindow._slice_axis_for_stepæs9€ð ˆ~¤ V£´°E³
Ò!:ð ð    
ð‘|˜$Ÿ)™)|Ñ$ð    
rgcóė|jjdk(rG|rDt|jj«s$t    t |«j ›d|›d«‚yyy)zö
        Validate numeric_only argument, raising if invalid for the input.
 
        Parameters
        ----------
        name : str
            Name of the operator (kernel).
        numeric_only : bool
            Value passed by user.
        rzú.z  does not implement numeric_onlyN)Ú _selected_objÚndimrÚdtypeÚNotImplementedErrorrprv)rdÚnameÚ numeric_onlys   reÚ_validate_numeric_onlyz!BaseWindow._validate_numeric_onlyðsg€ð × Ñ × #Ñ # qÒ (ÙÜ$ T×%7Ñ%7×%=Ñ%=Ô>ä%ܘ“:×&Ñ&Ð' q¨¨Ð.NÐOóð ð?ðð )rgcó0—|jdgdg¬«}|S)z¹Subset DataFrame to numeric columns.
 
        Parameters
        ----------
        obj : DataFrame
 
        Returns
        -------
        obj subset to numeric-only columns.
        Únumberr)ÚincludeÚexclude)Ú select_dtypes)rdrRrs   reÚ_make_numeric_onlyzBaseWindow._make_numeric_onlys"€ð×"Ñ"¨H¨:À ¸}Ð"ÓMˆØˆ rgcó—|j`t|jt«sF|jdk(r7|j    |j
j |jg«d¬«}|jdkDr"|s|jdk(r|j|«}|jdk(r2|jdd¬«}|jj«|_
|S)úA
        Split data into blocks & return conformed data.
        éF)r_ÚcopyrzÚfloat64)r•) rSr`r%r†Úreindexr_Ú
differencer[r‘ÚastypeÚ_mgrÚ consolidate)rdrRrŠs   reÚ _create_datazBaseWindow._create_datas¬€ð
7‰7Ð ¤z°$·'±'¼5Ô'AÀcÇhÁhÐRSÂmØ—+‘+ c§k¡k×&<Ñ&<¸d¿g¹g¸YÓ&GÈe+ÓTˆCØ 8‰8aŠ<™\¨T¯Y©Y¸!ª^ð×)Ñ)¨#Ó.ˆCØ 9‰9˜Š>Ø—*‘*˜Y¨U*Ó3ˆCØ—x‘x×+Ñ+Ó-ˆCŒH؈
rgcóÀ—|€ |j}|jDcic]}|t||«“Œ}}|j||«}t    |«|fd|i|¤Ž}|Scc}w)a 
        Sub-classes to define. Return a sliced object.
 
        Parameters
        ----------
        key : str / list of selections
        ndim : {1, 2}
            requested ndim of result
        subset : object, default None
            subset to act on
        rP)rRrMÚgetattrÚ_infer_selectionrp)rdÚkeyr†ÚsubsetÚattrÚkwargsrPÚnew_wins        reÚ_gotitemzBaseWindow._gotitem#sp€ð ˆ>Ø—X‘XˆFð9=×8HÑ8HÖI°$œ  dÓ+Ñ+ÐIˆÐIà×)Ñ)¨#¨vÓ6ˆ    Ø”$t“*˜VÑC¨yÐC¸FÑCˆØˆùò    JsAcóº—||jvrtj||«S||jvr||St    dt |«j ›d|›d«‚)Nú'z' object has no attribute ')Ú_internal_names_setÚobjectÚ__getattribute__rRÚAttributeErrorrprv)rdr¢s  reÚ __getattr__zBaseWindow.__getattr__;sd€Ø 4×+Ñ+Ñ +Ü×*Ñ*¨4°Ó6Ð 6Ø 4—8‘8Ñ Ø˜‘:Ð äØ”T“
×#Ñ#Ð$Ð$?À¸vÀQÐ Gó
ð    
rgcó6—|jj«S©N)rRÚ_dir_additions©rds rer¯zBaseWindow._dir_additionsEs€Øx‰x×&Ñ&Ó(Ð(rgc󆇗ˆfd„‰jD«}dj|«}t‰«j›d|›dS)z@
        Provide a nice str repr of our rolling object.
        c3ój•K—|]*}t‰|d«|ddk7r|›dt‰|«›–—Œ,y­w)NrÚ_ú=)rž)Ú.0Ú    attr_namerds  €reú    <genexpr>z&BaseWindow.__repr__.<locals>.<genexpr>LsFøèø€ò
àܐt˜Y¨Ó-Ð9¸iȹlÈcÒ>Qðˆk˜œ7 4¨Ó3Ð4Ô 5ñ
ùsƒ03ú,z [ú])rMÚjoinrprv)rdÚ
attrs_listÚattrss`  reÚ__repr__zBaseWindow.__repr__HsFø€ó
à!×-Ñ-ô
ˆ
ð
—‘˜Ó$ˆÜt“*×%Ñ%Ð& b¨¨¨qÐ1Ð1rgc#óÆK—|jj|j«}|j|«}|j    «}|j t |«|j|j|j|j¬«\}}|j||t |««t||«D]"\}}|jt||«}|–—Œ$y­w©N©Ú
num_valuesrWrXrTrU)r…Úset_axisrOrœÚ_get_window_indexerrsr{rWrXrTrUrÚzipÚilocÚslice)rdrRÚindexerr|r}ÚsÚers        reÚ__iter__zBaseWindow.__iter__TsÆèø€Ø× Ñ ×)Ñ)¨$¯(©(Ó3ˆØ×Ñ Ó$ˆØ×*Ñ*Ó,ˆà×.Ñ.ܘ3“xØ×(Ñ(Ø—;‘;Ø—;‘;Ø—‘ð /ó
‰
ˆˆsð     ×!Ñ! %¨¬c°#«hÔ7䘘s“Oò    ‰DˆAˆqØ—X‘Xœe A q›kÑ*ˆFØ‹Lñ    ùs‚CC!có—t|j«r/tdt|«j›d|j›d«‚    t |t «r0|jtjtj¬«}n t|«}tj|«}|j«r%tj |tj|«}|S#ttf$r}td|j›«|‚d}~wwxYw)z1Convert input to numpy arrays for Cython routineszops for z for this dtype z are not implemented)Úna_valuezcannot handle this type -> N)rr‡rˆrprvr`rÚto_numpyÚnpr–ÚnanrraroÚisinfÚanyÚwhere)rdÚvaluesÚerrÚinfs    reÚ _prep_valueszBaseWindow._prep_valuesfs݀ä ˜vŸ|™|Ô ,Ü%Øœ4 ›:×.Ñ.Ð/ð0ØŸ™˜Ð&:ð<óð ð     Sܘ&¤.Ô1ØŸ™¬¯©¼b¿f¹f˜ÓE‘ä'¨Ó/ô
h‰hvÓˆØ 7‰7Œ9Ü—X‘X˜c¤2§6¡6¨6Ó2ˆFàˆ øôœIÐ&ò    SÜÐ9¸&¿,¹,¸ÐHÓIÈsÐ Rûð    SúsÁA CÃD
Ã,DÄD
cóX—ddlm}|j|jj    |j
«sñ|jj }||j|jj
|d¬«}||jvr|||<y||j
jvry||jjvrf|jj}|j}|j|«}|j|d|«}    t|    «}
|j|
||«y|||<yyy)Nr©rEF©r^r‰r•)ÚpandasrErSrOÚequalsr^r‰rRr_Únamesr…Úget_locÚ intersectionr{Úinsert) rdrrRrEr‰Ú    extra_colÚold_colsÚnew_colsÚold_locÚoverlapÚnew_locs            reÚ_insert_on_columnzBaseWindow._insert_on_column~sù€õ    "à 7‰7Ñ  t§x¡x§¡°s·y±yÔ'AØ—8‘8—=‘=ˆDÙ˜tŸx™x¨t¯x©x¯~©~ÀDÈuÔUˆIؐv—~‘~Ñ%à(t’ ؘŸ™×+Ñ+Ñ+ØØ˜×+Ñ+×3Ñ3Ñ3à×-Ñ-×5Ñ5Ø!Ÿ>™>Ø"×*Ñ*¨4Ó0Ø"×/Ñ/°¸¸'Ð0BÓCÜ˜g›,Ø— ‘ ˜g t¨YÕ7ð )t’ ð%(BÐ rgcóZ—t|jtttf«r|jj
St|jj t«rL|jj jdvr*|jjtj¬«Sy)NÚmM©r‡) r`rOr'r$r(Úasi8r‡rÚkindrÍrÎÚint64r°s reÚ _index_arrayzBaseWindow._index_array—sm€ô d—h‘h¤¬m¼^РLÔ MØ—8‘8—=‘=Ð  Ü ˜Ÿ™Ÿ™¬
Ô 3¸¿¹¿¹×8KÑ8KÈtÑ8SØ—8‘8×$Ñ$¬2¯8©8Ð$Ó4Ð 4ØrgcóΗ|jddk(r|jddkDr td«‚|jddk(r|jd«S|j||«|S)zValidate and finalize result.rzrúNo numeric types to aggregater–)Úshaperr™ræ)rdÚoutrRs   reÚ_resolve_outputzBaseWindow._resolve_output sa€à 9‰9Q‰<˜1Ò  §¡¨1¡°Ò!1ÜÐ;Ó<Ð <Ø 9‰9Q‰<˜1Ò Ø—:‘:˜iÓ(Ð (à ×јs CÔ(؈
rgcóê—t|jt«r |jS|j,t    |j
|j|j ¬«St|j¬«S)z[
        Return an indexer class that will compute the window start and end bounds
        )Ú index_arrayÚ window_sizerX)rõ)r`rVr r]r#rírXr!r°s rerÃzBaseWindow._get_window_indexerªs_€ô d—k‘k¤;Ô /Ø—;‘;Ð Ø × Ñ Ð (Ü(Ø ×-Ñ-Ø ×-Ñ-Ø—{‘{ôð ô
"¨d¯k©kÔ:Ð:rgcó€—|j|j«}|dk(rt|«jt«}    |j |j «}||«}|j|j|«}|j|||j¬«S#ttf$r}td«|‚d}~wwxYw)z5
        Series version of _apply_columnwise
        ÚcountrïN©r^r‰)rœr…rr™ÚintrÖÚ_valuesrorˆrr‚r^Ú _constructorr‰)rdÚhomogeneous_funcr‰rRrÓrÔrr^s        reÚ _apply_serieszBaseWindow._apply_series¸sµ€ð ×Ñ × 2Ñ 2Ó3ˆà 7Š?䘓*×#Ñ#¤CÓ(ˆCð    FØ×&Ñ& s§{¡{Ó3ˆFñ" &Ó)ˆØ×)Ñ)¨#¯)©)°VÓ<ˆØ×Ñ ¨e¸#¿(¹(ÐÓCÐCøô Ô.Ð/ò    FÜÐ;Ó<À#Ð Eûð    FúsÁBÂB=Â, B8Â8B=có¶—|j||«|jjdk(r|j||«S|j    |j|«}|dk(r=t |«j t«}|jj«|_|jdk(r |j}g}g}t|j««D]A\}}    |j|«}||«}
|j'|
«|j'|«ŒC|j)|j*t-|«dkDr|dnd«} t/|«j1|| |j2j5|«d¬«} |jdk(r | j} |j7| |«S#tt f$r}    t#d|j$›«|    ‚d}    ~    wwxYw)zl
        Apply the given function to the DataFrame broken down into homogeneous
        sub-frames.
        rzr÷z#Cannot aggregate non-numeric type: NrF)r^r_Úverify_integrity)r‹r…r†rýrœrr™rùršr›r[ÚTÚ    enumerateÚ_iter_column_arraysrÖrorˆrr‡Úappendr‚r^r{rpÚ _from_arraysr_Útakerò) rdrür‰rŠrRÚtakerÚ
res_valuesÚiÚarrrÔÚresr^Údfs              reÚ_apply_columnwisezBaseWindow._apply_columnwiseÌs½€ð     ×#Ñ# D¨,Ô7Ø × Ñ × "Ñ " aÒ 'Ø×%Ñ%Ð&6¸Ó=Ð =à×Ñ × 2Ñ 2°LÓAˆØ 7Š?䘓*×#Ñ#¤CÓ(ˆCØ—x‘x×+Ñ+Ó-ˆCŒHà 9‰9˜Š>Ø—%‘%ˆCàˆØˆ
Ü × 7Ñ 7Ó 9Ó:ò     ‰FˆAˆsð Ø×'Ñ'¨Ó,ñ
# 3Ó'ˆCØ × Ñ ˜cÔ "Ø L‰L˜Oð     ð×)Ñ)Ø I‰I¬¨J«¸!Ò(;z !’}Àó
ˆô#‹Y× #Ñ #Ø ØØ—K‘K×$Ñ$ UÓ+Ø"ð    $ó
ˆð 9‰9˜Š>Ø—‘ˆBà×#Ñ# B¨Ó,Ð,øô+Ô2Ð3ò ÜØ9¸#¿)¹)¸ÐEóàðûð úsÃF+Æ+GÆ:GÇGcób—|jjdk(r td«‚|j|j|«}|j    |j ««}|j dk(r |jn|}||«}|j dk(r |jn|}|j|j|«}|jdt|j«k(r |jn|jdd|j…}|j|||¬«}    |j|    |«S)zT
        Apply the given function to the DataFrame across the entire object
        rzz1method='table' not applicable for Series objects.N©r^r_)r…r†rarœrÖrÍr[rr‚r^rðr{r_rUrûrò)
rdrür‰rŠrRrÓrr^r_rñs
          reÚ_apply_tablewisezBaseWindow._apply_tablewises€ð × Ñ × "Ñ " aÒ 'ÜÐPÓQÐ QØ×Ñ × 2Ñ 2°LÓAˆØ×"Ñ" 3§<¡<£>Ó2ˆØ!ŸY™Y¨!š^—’°ˆÙ! &Ó)ˆØ!ŸY™Y¨!š^—’°ˆØ×)Ñ)¨#¯)©)°VÓ<ˆð|‰|˜A‰¤# c§k¡kÓ"2Ò2ð KŠKà—‘™\ §    ¡    ˜\Ñ*ð    ð
×јv¨U¸GÐÓDˆà×#Ñ# C¨Ó-Ð-rgcóò—|j||«}|€    |}|€dn|}nCt|ttf«s t    d«‚|j
dk(r|r|j |«}t|||t|«¬«S)ú]
        Apply the given pairwise function given 2 pandas objects (DataFrame/Series)
        Tz#other must be a DataFrame or Seriesr”)Úpairwise)    rœr`rrrar†r‘r,Úbool)rdÚtargetÚotherrÚfuncrŠs      reÚ_apply_pairwisezBaseWindow._apply_pairwisesy€ð×"Ñ" 6¨<Ó8ˆØ ˆ=؈Eà'Ð/‘t°X‰HܘE¤L´)Ð#<Ô=ÜÐBÓCÐ CØ Z‰Z˜1Š_¡Ø×+Ñ+¨EÓ2ˆEä! &¨%°ÄÀXÃÔOÐOrgc óò‡‡‡‡‡—‰j«Š‰j ‰jn ‰jŠdˆˆˆˆˆfd„ }‰jdk(r‰j    |||«S‰j |||«S)aÞ
        Rolling statistical measure using supplied function.
 
        Designed to be used with passed-in Cython array-based functions.
 
        Parameters
        ----------
        func : callable function to apply
        name : str,
        numba_args : tuple
            args to be passed when func is a numba func
        **kwargs
            additional arguments for rolling function and window function
 
        Returns
        -------
        y : type of input
        cóÀ•—|jdk(r|j«Sˆˆˆˆˆfd„}tjd¬«5||«}ddd«|S#1swYSxYw)Nrcóԕ—‰jt|«‰‰j‰j‰j¬«\}}‰j ||t|««‰|||‰g‰¢­ŽSr¿)rsr{rXrTrUr)Úxr|r}rrWÚ
numba_argsrdÚwindow_indexers   €€€€€reÚcalcz9BaseWindow._apply.<locals>.homogeneous_func.<locals>.calcYsiø€Ø+×=Ñ=Ü" 1›vØ +ØŸ;™;ØŸ;™;ØŸ™ð >ó‘
sð×)Ñ)¨%°´c¸!³fÔ=á˜A˜u c¨;ÐD¸ÒDÐDrgÚignore©Úall)Úsizer•rÎÚerrstate)rÓrrrrWrrdrs   €€€€€rerüz+BaseWindow._apply.<locals>.homogeneous_funcSs^ø€ð{‰{˜aÒØ—{‘{“}Ð$÷
Eð
Eô—‘ Ô*ñ &Ù˜f›÷ &ðˆM÷ &ðˆMús Á    AÁArn©rÓú
np.ndarray)rÃrWrõr\r r)    rdrr‰rŠrr£rürWrs    ``  `  @@reÚ_applyzBaseWindow._apply2s~ü€ð4×1Ñ1Ó3ˆð×ÑÐ+ð × Ò à×+Ñ+ð    ÷     ñ    ð. ;‰;˜(Ò "Ø×)Ñ)Ð*:¸DÀ,ÓOÐ Oà×(Ñ(Ð)9¸4ÀÓNÐ Nrgc ó<—|j«}|j |jn |j}|j|j«}|j
dk(r |j }|j|j««}|jdk(r|jdd«}|jt|«||j|j|j¬«\}}    |j!||    t|««t"j$}
t#j&||
fddit)|«¤Ž} | |j f||    |dœ|¤Žj } |j
dk(r | j n| } |j+|j,| «} |jdk(r0| j/«} |j1| | |j2¬«}|S|j+|j4| j «}|j1| | |¬«}|j7||«S)    NrzéÿÿÿÿrÀÚis_grouped_kernelF)r|r}rWrør)rÃrWrõrœr…r[rrÖrÍr†Úreshapersr{rXrTrUrrÚfloat_dtype_mappingÚgenerate_shared_aggregatorr*r‚r^Úsqueezerûr‰r_rò)rdrÚ engine_kwargsÚ func_kwargsrrWrRrÓr|r}Ú dtype_mappingÚ
aggregatorrr^rñr_s                reÚ _numba_applyzBaseWindow._numba_applyosú€ð ×1Ñ1Ó3ˆð×ÑÐ+ð × Ò à×+Ñ+ð    ð
×Ñ × 2Ñ 2Ó3ˆØ 9‰9˜Š>Ø—%‘%ˆCØ×"Ñ" 3§<¡<£>Ó2ˆØ ;‰;˜!Ò Ø—^‘^ B¨Ó*ˆFØ#×5Ñ5ܘ6“{Ø#Ø—;‘;Ø—;‘;Ø—‘ð 6ó
‰
ˆˆsð     ×!Ñ! %¨¬c°&«kÔ:ô
!×4Ñ4ˆ Ü×8Ñ8Ø Ø ñ
ð$ð
ô   Ó.ñ    
ˆ
ñ Ø H‰Hð
Ø! s¸ ñ
ØGRñ
ç
‰!ð    ð"ŸY™Y¨!š^—’°ˆØ×)Ñ)¨#¯)©)°VÓ<ˆØ 8‰8qŠ=Ø—^‘^Ó%ˆFØ×"Ñ" 6°¸S¿X¹XÐ"ÓFˆC؈Jà×/Ñ/°· ± ¸V¿X¹XÓFˆGØ×"Ñ" 6°ÀÐ"ÓHˆCØ×'Ñ'¨¨SÓ1Ð 1rgcón—t||||¬«j«}|€|j|d||¬«S|S)N©Úargsr£F)Úrawr5r£)rÚaggÚapply©rdrr5r£rs     reÚ    aggregatezBaseWindow.aggregate¢s<€Ü% d¨D°tÀFÔK×OÑOÓQˆØ ˆ>Ø—:‘:˜d¨°DÀ:ÓHÐ H؈ rg)    NNFNrNNNrn)rRrFrWú
int | NonerXú bool | NonerYú
str | Noner[r?rSzstr | Index | NonerTr=rUr;r\ÚstrÚreturnÚNone©r?r@)r|r%r}r%r~rùr?r@r®)r^r%rz Sized | Noner?r%)r‰r>rŠrr?r@)rRr@r?r@©F©rRr@rŠrr?r@)r¢r>)r?r>)r?r<)rÓr>r?r%)rrDrRrDr?r@)r?znpt.NDArray[np.int64] | None)rñrDrRrDr?rD)r?r )rüúCallable[..., ArrayLike]r‰r=r?rE)rürDr‰r>rŠrr?úDataFrame | Series)NF)rürDr‰r=rŠrr?rE© rrErúDataFrame | Series | Nonerr<rzFCallable[[DataFrame | Series, DataFrame | Series], DataFrame | Series]rŠrr?rE©F©)rúCallable[..., Any]r‰r>rŠrrútuple[Any, ...])rrJr.údict[str, bool] | None)"rvÚ
__module__Ú __qualname__Ú__doc__rMÚ__annotations__Ú    frozensetrNrfrcrr‚r‹r‘rœr¥r¬r¯r½rÊrÖræÚpropertyríròrÃrýr rrr&r2r:r7rIrgrerKrKxse…ÙAà€KÓÙ&/£k€JÐ#Ó1Ø    ƒJð
Ø"&Ø#Ø#ØØ!%Ø!ØØð+ðñ+à ð+ð ð    +ð
ð +ð ð +ðð+ð ð+ðð+ðð+ðð+ð
ó+óZ)6ðV Øð Ø&0ð Ø<?ð à     ó ô
óó( ôó"ó0
ò)ó
2óó$ó0)ð2òóðóó ;ðNRðDØ 8ðDØ@JðDà    óDð0#ð    3-à2ð3-ðð3-ðð    3-ð
 
ó 3-ðp Ø"ð    .à2ð.ðð.ðð    .ð
 
ó .ð4Pà"ðPð)ðPðð    Pð
Uð Pð ð Pð
óPð6#Ø&(ð ;Oà ð;Oðð;Oðð    ;Oð
$ó ;Oð@15ð12à ð12ð.ó12òfð CrgrKcóÀ‡—eZdZUdZded<ded<dgZded<dd    œ                            dˆfd
„Z        d                                    dˆfd „ Z                                                dˆfd „ Zddˆfd „ Z    dˆfd„    Z
ˆxZ S)ÚBaseWindowGroupbyz3
    Provide the groupby windowing facilities.
    rHÚ_grouperrÚ    _as_indexrLrMT)rVcó•—ddlm}t||«s td«‚||_||_|j |jjd¬«}|jd« td«‚t‰|,|g|¢­i|¤Žy)NrrGzMust pass a BaseGrouper object.r©r_ÚerrorsrUz step not implemented for groupby) Úpandas.core.groupby.opsrHr`rarUrVÚdroprÜÚgetrˆÚsuperrf)rdrRrUrVr5r£rHÚ    __class__s       €rerfzBaseWindowGroupby.__init__´s|ø€õ    8ä˜( KÔ0ÜÐ>Ó?Ð ?Ø ˆŒ Ø"ˆŒðh‰h˜tŸ}™}×2Ñ2¸8ˆhÓDˆà :‰:fÓ Ð )Ü%Ð&HÓIÐ IÜ ‰Ñ˜Ð.˜tÒ. vÓ.rgc     óö•—t‰|||||fi|¤Ž}|jj}g|j¢}t j
|j j«}    |    |z}
|j jD cgc](} | |jjjvs| €| ‘Œ*} } t| «t|    «k7r|j| d¬«}|j j} t j
|j j«}|j jj«}|rtjt|««}n%tj gtj"¬«}| Dcgc]}|j%|«‘Œ} }||j%|«}t'|t(«st)j*|g«}| j-t|j««|j-t|j««t)|| |
d¬«}||_|j.s-|j1tt3t|    «««¬«}|Scc} wcc}w)NrrXréF©rÜrÿ)Úlevel)r]r&rRr^rÜr•rUr{r[ÚcodesÚlevelsÚindicesrÓrÎÚ concatenateÚlistÚarrayÚintprr`r&Ú from_arraysÚextendrVÚ reset_indexÚrange)rdrr‰rŠrr£rÚgrouped_object_indexÚgrouped_index_nameÚ groupby_keysÚresult_index_namesr Ú drop_columnsrbrcÚ group_indicesrÇÚcÚidxÚ result_indexr^s                    €rer&zBaseWindowGroupby._applyËsø€ô‘‘Ø Ø Ø Ø ñ    
ð
ñ 
ˆð $Ÿx™xŸ~™~ÐØ:Ð3×9Ñ9Ð:ÐÜ—y‘y §¡×!4Ñ!4Ó5ˆ Ø)Ð,>Ñ>Ðð—}‘}×*Ñ*ö
àØ˜$Ÿ(™(Ÿ.™.×.Ñ.Ñ.°#°+ò ð
ˆ ð
ô ˆ|Ó ¤ LÓ 1Ò 1à—[‘[¨¸h[ÓGˆFà— ‘ ×#Ñ#ˆÜ—‘˜4Ÿ=™=×/Ñ/Ó0ˆàŸ ™ ×-Ñ-×4Ñ4Ó6ˆ Ù Ü—n‘n¤T¨-Ó%8Ó9‰Gä—h‘h˜r¬¯©Ô1ˆGØ*/Ö0 Q—‘˜•Ð0ˆÐ0ð  Ð +Ø&×+Ñ+¨GÓ4ˆCܘc¤:Ô.Ü ×,Ñ,¨c¨UÓ3Ø L‰Lœ˜cŸi™i›Ô )Ø M‰Mœ$˜sŸz™zÓ*Ô +ä!Ø EÐ!3Àeô
ˆ ð$ˆŒ ؏~Š~Ø×'Ñ'¬d´5¼¸\Ó9JÓ3KÓ.LÐ'ÓMˆF؈ ùòI
ùò$1s Á?-I1ÆI6cóÔ•‡—|j|jjd¬«}t‰||‰|||«}‰It ˆfd„|jj j«D««st|«}t|jj j«Dcgc],}|j|«j|j«‘Œ.c}«}d„|jj j«D«}    g}
g} ttt!|    Ž«D][} t#j$t#j&| «|«} t)| «\}}|
j+|«| j+|«Œ]nï|jj,}
|jj.} |jj j«}|rt#j0t|««}n%t#j&gt"j2¬«}|j4dk(rd}nt|j6«}|
Dcgc]'}t#j$|j|«|«‘Œ)}
}t9|jt:«r^t|jj,«}t|jj.«}t|jj«}n5t)|j«\}}|g}|g}|jj<g}|
|z}| |z}|jj|z}t;|||d¬«}||_ |Scc}wcc}w)    rrrXc3óL•K—|]}t|«t‰«k(–—Œy­wr®)r{)rµÚgrouprs  €rer·z4BaseWindowGroupby._apply_pairwise.<locals>.<genexpr>s#øèø€ò)
Ø).ŒC‹Jœ#˜e›*Õ $ñ)
ùsƒ!$c3óFK—|]}tj|«–—Œy­wr®)ÚcomÚmaybe_make_list)rµÚpairs  rer·z4BaseWindowGroupby._apply_pairwise.<locals>.<genexpr>&s èø€òØ.2”×#Ñ# D×)ñùs‚!rérzFr`)r[rUrÜr]rr!rdrÓr{r)rr—r^ruÚmaprfrÄrÎÚrepeatrgrrrbrcrerhr†r_r`r&r‰)rdrrrrrŠrÚold_result_lenÚ
gb_indicesÚgb_pairsÚ groupby_codesÚgroupby_levelsÚ gb_level_pairÚlabelsrbrcrrrÇÚ    repeat_byrsÚ result_codesÚ result_levelsÚ result_namesÚ    idx_codesÚ
idx_levelsrur^s  `                       €rerz!BaseWindowGroupby._apply_pairwisesÎù€ð—‘ T§]¡]×%8Ñ%8ÀÓJˆÜ‘Ñ(¨°¸À$È ÓUˆà Ñ ¤Só)
Ø26·-±-×2GÑ2G×2NÑ2NÓ2Pô)
õ&
ô! ›[ˆNÜð'+§m¡m×&;Ñ&;×&BÑ&BÓ&Döà"ð—K‘K 
Ó+×3Ñ3°F·L±LÕAòóˆFñØ6:·m±m×6KÑ6K×6PÑ6PÓ6RôˆHðˆM؈Nä!$¤T¬3°¨>Ó!:ò . ÜŸ™¤2§8¡8¨MÓ#:¸NÓKÜ )¨&Ó 1‘ vØ×$Ñ$ UÔ+Ø×%Ñ% fÕ-ñ     .ð!ŸM™M×/Ñ/ˆMð"Ÿ]™]×1Ñ1ˆNà ŸM™M×1Ñ1×8Ñ8Ó:ˆMÙÜŸ.™.¬¨mÓ)<Ó=‘äŸ(™( 2¬R¯W©WÔ5à{‰{˜aÒØ‘    ä §¡Ó/    à?LöØ:;”—    ‘    ˜!Ÿ&™& ›/¨9Õ5ðˆMðô f—l‘l¤JÔ /Ü § ¡ × 2Ñ 2Ó3ˆLÜ  §¡×!4Ñ!4Ó5ˆMÜ § ¡ × 2Ñ 2Ó3‰Lä$-¨f¯l©lÓ$;Ñ !ˆIzØ%˜;ˆLØ'˜LˆMØ"ŸL™L×-Ñ-Ð.ˆLð% |Ñ3ˆ Ø&¨Ñ6ˆ Ø—}‘}×*Ñ*¨\Ñ9ˆ ä!Ø ˜<¨|Èeô
ˆ ð$ˆŒ ؈ ùòuùòFs Â-1M É
,M%có•—|jsntjt|jj
j «««jtj«}|j|«}t‰|-||«S)r“) ÚemptyrÎrerfrUrdrÓr™rìrr]rœ)rdrRrŠÚ groupby_orderr^s    €rerœzBaseWindowGroupby._create_data\sfø€ðyŠyÜŸN™N¬4°· ± ×0EÑ0E×0LÑ0LÓ0NÓ+OÓP×WÑWÜ—‘óˆMð—(‘(˜=Ó)ˆC܉wÑ# C¨Ó6Ð6rgcóŠ•—|j%|jj|j«}t‰||||¬«S)N)r¡)rSrRÚ    set_indexrOr]r¥)rdr r†r¡r^s    €rer¥zBaseWindowGroupby._gotitemjs>ø€ð 7‰7Ð à—X‘X×'Ñ'¨¯©Ó1ˆF܉wÑ  T°&ÐÓ9Ð9rg)rRrErUrHrVrr?r@rH)
rrJr‰r>rŠrrrKr?rErFrBrCr®) rvrMrNrOrPrMrfr&rrœr¥Ú __classcell__©r^s@rerTrT«sæø…ñðÓØƒOØ(˜\€KÓ)ðñ /à ð/ðð    /ð
ð /ð
õ/ð6#Ø&(ð ;à ð;ðð;ðð    ;ð
$ð ;ð
õ;ðzRà"ðRð)ðRðð    Rð
Uð Rð ð Rð
õRöh 7÷:ñ:rgrTcón‡—eZdZdZgd¢Zˆfd„Zd#d„Z        d$                            d%d„Zee    de
d«e
d«d    d
¬ «d „«Z e Z ee ed «eeed«eed«eed«e
d«ddd¬« d&d'd„«Zee ed «eeed«eed«eed«e
d«ddd¬« d&d'd„«Zee ed «eeed«eed«eed«e
d«ddd¬« d(d)d„«Zee ed «eeed«eed«eed«e
d«dd d!¬« d(d)d"„«ZˆxZS)*ÚWindowaä
    Provide rolling window calculations.
 
    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.
 
        .. deprecated:: 2.1.0
 
            The axis keyword is deprecated. For ``axis=1``,
            transpose the DataFrame first instead.
 
    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'``, the 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'``).
 
    step : int, default None
 
        .. versionadded:: 1.5.0
 
        Evaluate the window at every ``step`` result, equivalent to slicing as
        ``[::step]``. ``window`` must be an integer. Using a step argument other
        than None or 1 will produce a result with a different shape than the input.
 
    method : str {'single', 'table'}, default 'single'
 
        .. versionadded:: 1.3.0
 
        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.Window or pandas.api.typing.Rolling
        An instance of Window is returned if ``win_type`` is passed. Otherwise,
        an instance of Rolling is returned.
 
    See Also
    --------
    expanding : Provides expanding transformations.
    ewm : Provides exponential weighted functions.
 
    Notes
    -----
    See :ref:`Windowing Operations <window.generic>` for further usage details
    and examples.
 
    Examples
    --------
    >>> df = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]})
    >>> df
         B
    0  0.0
    1  1.0
    2  2.0
    3  NaN
    4  4.0
 
    **window**
 
    Rolling sum with a window length of 2 observations.
 
    >>> df.rolling(2).sum()
         B
    0  NaN
    1  1.0
    2  3.0
    3  NaN
    4  NaN
 
    Rolling sum with a window span of 2 seconds.
 
    >>> df_time = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]},
    ...                        index=[pd.Timestamp('20130101 09:00:00'),
    ...                               pd.Timestamp('20130101 09:00:02'),
    ...                               pd.Timestamp('20130101 09:00:03'),
    ...                               pd.Timestamp('20130101 09:00:05'),
    ...                               pd.Timestamp('20130101 09:00:06')])
 
    >>> df_time
                           B
    2013-01-01 09:00:00  0.0
    2013-01-01 09:00:02  1.0
    2013-01-01 09:00:03  2.0
    2013-01-01 09:00:05  NaN
    2013-01-01 09:00:06  4.0
 
    >>> df_time.rolling('2s').sum()
                           B
    2013-01-01 09:00:00  0.0
    2013-01-01 09:00:02  1.0
    2013-01-01 09:00:03  3.0
    2013-01-01 09:00:05  NaN
    2013-01-01 09:00:06  4.0
 
    Rolling sum with forward looking windows with 2 observations.
 
    >>> indexer = pd.api.indexers.FixedForwardWindowIndexer(window_size=2)
    >>> df.rolling(window=indexer, min_periods=1).sum()
         B
    0  1.0
    1  3.0
    2  2.0
    3  4.0
    4  4.0
 
    **min_periods**
 
    Rolling sum with a window length of 2 observations, but only needs a minimum of 1
    observation to calculate a value.
 
    >>> df.rolling(2, min_periods=1).sum()
         B
    0  0.0
    1  1.0
    2  3.0
    3  2.0
    4  4.0
 
    **center**
 
    Rolling sum with the result assigned to the center of the window index.
 
    >>> df.rolling(3, min_periods=1, center=True).sum()
         B
    0  1.0
    1  3.0
    2  3.0
    3  6.0
    4  4.0
 
    >>> df.rolling(3, min_periods=1, center=False).sum()
         B
    0  0.0
    1  1.0
    2  3.0
    3  3.0
    4  6.0
 
    **step**
 
    Rolling sum with a window length of 2 observations, minimum of 1 observation to
    calculate a value, and a step of 2.
 
    >>> df.rolling(2, min_periods=1, step=2).sum()
         B
    0  0.0
    2  3.0
    4  4.0
 
    **win_type**
 
    Rolling sum with a window length of 2, using the Scipy ``'gaussian'``
    window type. ``std`` is required in the aggregation function.
 
    >>> df.rolling(2, win_type='gaussian').sum(std=3)
              B
    0       NaN
    1  0.986207
    2  2.958621
    3       NaN
    4       NaN
 
    **on**
 
    Rolling sum with a window length of 2 days.
 
    >>> df = pd.DataFrame({
    ...     'A': [pd.to_datetime('2020-01-01'),
    ...           pd.to_datetime('2020-01-01'),
    ...           pd.to_datetime('2020-01-02'),],
    ...     'B': [1, 2, 3], },
    ...     index=pd.date_range('2020', periods=3))
 
    >>> df
                        A  B
    2020-01-01 2020-01-01  1
    2020-01-02 2020-01-01  2
    2020-01-03 2020-01-02  3
 
    >>> df.rolling('2D', on='A').sum()
                        A    B
    2020-01-01 2020-01-01  1.0
    2020-01-02 2020-01-01  3.0
    2020-01-03 2020-01-02  6.0
    ©    rVrWrXrYr[rSrTrUr\cóü•—t‰|«t|jt«st d|j›«‚t dd¬«}t||jd«|_|j€t d|j›«‚t|jt«r td«‚t|j«r|jdkr t d«‚|jdk7r td    «‚y)
NzInvalid win_type zscipy.signal.windowsz,Scipy is required to generate window weight.)Úextraz6BaseIndexer subclasses not implemented with win_types.rú&window must be an integer 0 or greaterrnz+'single' is the only supported method type.)r]rcr`rYr>rarržÚ_scipy_weight_generatorrVr rˆrr\)rdÚsignalr^s  €rerczWindow._validate|sÜø€Ü ‰ÑÔä˜$Ÿ-™-¬Ô-ÜÐ0°·±°Ð@ÓAÐ AÜ+Ø "Ð*Xô
ˆô(/¨v°t·}±}ÀdÓ'KˆÔ$Ø × 'Ñ 'Ð /ÜÐ0°·±°Ð@ÓAÐ Aä d—k‘k¤;Ô /Ü%ØHóð ô˜$Ÿ+™+Ô&¨$¯+©+¸ª/ÜÐEÓFÐ Fà ;‰;˜(Ò "Ü%Ð&SÓTÐ Tð #rgcól—|dkDr.t|d«g}tj|t|««}|S)zT
        Center the result in the window for weighted rolling aggregations.
        rN)rÆrÎr•Útuple)rdrÚoffsetÚ lead_indexers    reÚ_center_windowzWindow._center_window’s7€ð AŠ:Ü! &¨$Ó/Ð0ˆLÜ—W‘W˜V¤E¨,Ó$7Ñ8Ó9ˆF؈ rgc óڇ‡‡‡—‰j‰jfi|¤ŽŠ‰jrt‰«dz
dzndŠdˆˆˆˆfd„ }‰j    |||«dd‰j
…S)a+
        Rolling with weights statistical measure using supplied function.
 
        Designed to be used with passed-in Cython array-based functions.
 
        Parameters
        ----------
        func : callable function to apply
        name : str,
        numeric_only : bool, default False
            Whether to only operate on bool, int, and float columns
        numba_args : tuple
            unused
        **kwargs
            additional arguments for scipy windows if necessary
 
        Returns
        -------
        y : type of input
        rzr”rcó•—|jdk(r|j«Sˆˆˆˆfd„}tjd¬«5tj||««}ddd«‰j
r‰j ‰«}S#1swYŒ)xYw)Nrcóޕ—tjtjg‰z«}tj||f«}‰|‰‰j‰j«St ‰««Sr®)rÎrgrÏrerWr{)rÚadditional_nansrrrdrVs  €€€€rerz5Window._apply.<locals>.homogeneous_func.<locals>.calcÃskø€Ü"$§(¡(¬B¯F©F¨8°fÑ+<Ó"=Ü—N‘N A Ð#7Ó8ÙØØØ(,×(8Ñ(8Ð(DD×$Ñ$óðôKNÈfË+óðrgrr )r"r•rÎr#ÚasarrayrXrŸ)rÓrrrrrdrVs   €€€€rerüz'Window._apply.<locals>.homogeneous_func½swø€ð{‰{˜aÒØ—{‘{“}Ð$÷ ô—‘ Ô*ñ 2䟙¡D¨£LÓ1÷ 2ð{Š{Ø×,Ñ,¨V°VÓ<àˆM÷ 2ð 2ús ¿BÂB Nr$)r™rVrXr{r rU)    rdrr‰rŠrr£rürrVs    ``     @@rer&z Window._apply›svû€ð:.×-Ñ-Ø K‰Kñ
Ø!ñ
ˆð,0¯;ª;”#f“+ ‘/ aÒ'¸Aˆ÷    ð    ð0×%Ñ%Ð&6¸¸lÓKÙ ˆty‰yˆLñ
ð    
rgr:z£
        See Also
        --------
        pandas.DataFrame.aggregate : Similar DataFrame method.
        pandas.Series.aggregate : Similar Series method.
        at
        Examples
        --------
        >>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]})
        >>> df
           A  B  C
        0  1  4  7
        1  2  5  8
        2  3  6  9
 
        >>> df.rolling(2, win_type="boxcar").agg("mean")
             A    B    C
        0  NaN  NaN  NaN
        1  1.5  4.5  7.5
        2  2.5  5.5  8.5
        zSeries/DataFrameÚ©Úsee_alsoÚexamplesÚklassr[cóT—t||||¬«j«}|€||«}|S)Nr4)rr7r9s     rer:zWindow.aggregateÙs1€ô@& d¨D°tÀFÔK×OÑOÓQˆØ ˆ>á˜$“ZˆFàˆ rgÚ
ParametersÚReturnsúSee AlsoÚExamplesaï        >>> ser = pd.Series([0, 1, 5, 2, 8])
 
        To get an instance of :class:`~pandas.core.window.rolling.Window` we need
        to pass the parameter `win_type`.
 
        >>> type(ser.rolling(2, win_type='gaussian'))
        <class 'pandas.core.window.rolling.Window'>
 
        In order to use the `SciPy` Gaussian window we need to provide the parameters
        `M` and `std`. The parameter `M` corresponds to 2 in our example.
        We pass the second parameter `std` as a parameter of the following method
        (`sum` in this case):
 
        >>> ser.rolling(2, win_type='gaussian').sum(std=3)
        0         NaN
        1    0.986207
        2    5.917243
        3    6.903450
        4    9.862071
        dtype: float64
        Úrollingzweighted window sumÚsum©Ú window_methodÚaggregation_descriptionÚ
agg_methodc óN—tj}|j|fd|dœ|¤ŽS)Nr°©r‰rŠ)Úwindow_aggregationsÚroll_weighted_sumr&©rdrŠr£Ú window_funcs    rer°z
Window.sums=€ôN*×;Ñ;ˆ ðˆt{‰{Ø ð
àØ%ñ
ðñ    
ð    
rgaº        >>> ser = pd.Series([0, 1, 5, 2, 8])
 
        To get an instance of :class:`~pandas.core.window.rolling.Window` we need
        to pass the parameter `win_type`.
 
        >>> type(ser.rolling(2, win_type='gaussian'))
        <class 'pandas.core.window.rolling.Window'>
 
        In order to use the `SciPy` Gaussian window we need to provide the parameters
        `M` and `std`. The parameter `M` corresponds to 2 in our example.
        We pass the second parameter `std` as a parameter of the following method:
 
        >>> ser.rolling(2, win_type='gaussian').mean(std=3)
        0    NaN
        1    0.5
        2    3.0
        3    3.5
        4    5.0
        dtype: float64
        zweighted window meanÚmeanc óN—tj}|j|fd|dœ|¤ŽS)Nr»r¶)r·Úroll_weighted_meanr&r¹s    rer»z Window.mean4s=€ôL*×<Ñ<ˆ ðˆt{‰{Ø ð
àØ%ñ
ðñ    
ð    
rga¾        >>> ser = pd.Series([0, 1, 5, 2, 8])
 
        To get an instance of :class:`~pandas.core.window.rolling.Window` we need
        to pass the parameter `win_type`.
 
        >>> type(ser.rolling(2, win_type='gaussian'))
        <class 'pandas.core.window.rolling.Window'>
 
        In order to use the `SciPy` Gaussian window we need to provide the parameters
        `M` and `std`. The parameter `M` corresponds to 2 in our example.
        We pass the second parameter `std` as a parameter of the following method:
 
        >>> ser.rolling(2, win_type='gaussian').var(std=3)
        0     NaN
        1     0.5
        2     8.0
        3     4.5
        4    18.0
        dtype: float64
        zweighted window varianceÚvarc óˆ—ttj|¬«}|jdd«|j|fd|dœ|¤ŽS)N©Úddofr‰r¾r¶)rr·Úroll_weighted_varÚpopr&)rdrÁrŠr£rºs     rer¾z
Window.varesD€ôLÔ1×CÑCÈ$ÔOˆ ؏
‰
6˜4Ԡ؈t{‰{˜;ÐX¨UÀÑXÐQWÑXÐXrgaÒ        >>> ser = pd.Series([0, 1, 5, 2, 8])
 
        To get an instance of :class:`~pandas.core.window.rolling.Window` we need
        to pass the parameter `win_type`.
 
        >>> type(ser.rolling(2, win_type='gaussian'))
        <class 'pandas.core.window.rolling.Window'>
 
        In order to use the `SciPy` Gaussian window we need to provide the parameters
        `M` and `std`. The parameter `M` corresponds to 2 in our example.
        We pass the second parameter `std` as a parameter of the following method:
 
        >>> ser.rolling(2, win_type='gaussian').std(std=3)
        0         NaN
        1    0.707107
        2    2.828427
        3    2.121320
        4    4.242641
        dtype: float64
        z"weighted window standard deviationÚstdc     ó@—t|jd|d|dœ|¤Ž«S)NrÄ)rÁr‰rŠrI)r-r¾)rdrÁrŠr£s    rerÄz
Window.stds,€ôLØ ˆDH‰HÐ P˜$ U¸Ñ PÈÑ Pó
ð    
rg)rr%rrùr?r%rH)rz,Callable[[np.ndarray, int, int], np.ndarray]r‰r>rŠrrrKrB©rŠr©rzF©rÁrùrŠr)rvrMrNrOrMrcrŸr&rr.rr:r7r3r/r0r1r4r5r°r»r¾rÄr‘r’s@rer”r”ts,ø„ñyòv
€KôUó,ð#Ø&(ð <
à:ð<
ðð<
ðð    <
ð
$ó <
ñ|    Ø[Ñ!Ùð ó
ñð ó
ð$!Ø ô;ñ>ó?ð>ð €CáØÙ˜lÓ+ØØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
ð0 Ø 5ØôI%óL
 
óM%ðL
 
ñ    ØÙ˜lÓ+ØØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
ð. Ø 6ØôG$óJ
 
óK$ðJ
 
ñ    ØÙ˜lÓ+ØØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
ð. Ø :ØôG$óJYóK$ðJYñ
    ØÙ˜lÓ+ØØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
ð. Ø DØôG$óJ
óK$ôJ
rgr”có´—eZdZddd„Z                    d                                            dd„Z                                        dd„Z            d                    dd„Z            d                    dd„Z            d                    dd„Z            d                    dd„Z                d                    dd    „Z
                d                            dd
„Z                 d                            dd „Z ddd „Z ddd „Zddd„Z        d                    dd„Z                d                             d!d„Z                d"                            d#d„Z                d"                            d#d„Zy)$ÚRollingAndExpandingMixincóJ—tj}|j|d|¬«S)Nr÷r¶)r·Úroll_sumr&©rdrŠrºs   rer÷zRollingAndExpandingMixin.count»s"€Ü)×2Ñ2ˆ ؏{‰{˜;¨WÀ<ˆ{ÓPÐPrgNcó~—|€d}|€i}t|«s td«‚d}t|«rN|dur td«‚|}|jdk(rt    |fit ||«¤Ž}nHt |fit ||«¤Ž}n1|dvr"| td«‚|j||||«}n td«‚|j|d    |¬
«S) NrIz'raw parameter must be `True` or `False`Fz.raw must be `True` when using the numba enginern)ÚcythonNz+cython engine does not accept engine_kwargsz)engine must be either 'numba' or 'cython'r8)r‰r)    rrar+r\r9r*r:Ú_generate_cython_apply_funcr&)    rdrr6Úenginer.r5r£rÚ
apply_funcs             rer8zRollingAndExpandingMixin.apply¿sô€ð ˆ<؈DØ ˆ>؈FäsŒ|ÜÐFÓGÐ Gà&(ˆ
Ü ˜6Ô "ؐe‰|Ü Ð!QÓRÐR؈J؏{‰{˜hÒ&Ü6ØñÜ-¨m¸VÓDñ‘
ô7ØñÜ-¨m¸VÓDñ‘
ðÐ'Ñ 'ØÐ(Ü Ð!NÓOÐOØ×9Ñ9¸$ÀÈÈTÓR‰JäÐHÓIÐ Ià{‰{Ø ØØ!ðó
ð    
rgcóf‡‡‡—ddlmŠttj||||¬«Š|fˆˆˆfd„    }|S)NrrØ)r5r£r6ÚfunctioncóH•—|s‰|‰jd¬«}‰||||«S)NF)r^r•)rO)rÓÚbeginr}rWr6rErdrºs     €€€rerÒzHRollingAndExpandingMixin._generate_cython_apply_func.<locals>.apply_funcûs)ø€Ùá ¨d¯h©h¸UÔCÙ˜v u¨c°;Ó?Ð ?rg)rÚrErr·Ú
roll_apply)rdr5r£r6rÔrÒrErºs`     @@rerÐz4RollingAndExpandingMixin._generate_cython_apply_funcês;ú€õ    "äÜ × *Ñ *ØØØØô 
ˆ ð=@÷    @ð Ðrgcó
—t|«rU|jdk(r.ttj«}|j |d||¬«Sddlm}|j||«Stj}|j|d|¬«S)NrmT©r6rÑr.r)Ú sliding_sumr°r¶) r+r\r8rÎÚnansumr8Úpandas.core._numba.kernelsrÚr2r·rÌr&)rdrŠrÑr.rrÚrºs       rer°zRollingAndExpandingMixin.sums€ô ˜6Ô "؏{‰{˜gÒ%Ü>¼r¿y¹yÓIØ—z‘zØØØ!Ø"/ð    "óðõCà×(Ñ(¨°mÓDÐDÜ)×2Ñ2ˆ ؏{‰{˜;¨UÀˆ{ÓNÐNrgcó—t|«rW|jdk(r.ttj«}|j |d||¬«Sddlm}|j||d¬«Stj}|j|d|¬«S)    NrmTrÙr©Úsliding_min_max©Úis_maxÚmaxr¶) r+r\r8rÎÚnanmaxr8rÜrßr2r·Úroll_maxr&©rdrŠrÑr.rrßrºs       rerâzRollingAndExpandingMixin.maxs‡€ô ˜6Ô "؏{‰{˜gÒ%Ü>¼r¿y¹yÓIØ—z‘zØØØ!Ø"/ð    "óðõGà×(Ñ(¨¸-ÐPTÐ(ÓUÐUÜ)×2Ñ2ˆ ؏{‰{˜;¨UÀˆ{ÓNÐNrgcó—t|«rW|jdk(r.ttj«}|j |d||¬«Sddlm}|j||d¬«Stj}|j|d|¬    «S)
NrmTrÙrrÞFràÚminr¶) r+r\r8rÎÚnanminr8rÜrßr2r·Úroll_minr&rås       rerçzRollingAndExpandingMixin.min/s‡€ô ˜6Ô "؏{‰{˜gÒ%Ü>¼r¿y¹yÓIØ—z‘zØØØ!Ø"/ð    "óðõGà×(Ñ(¨¸-ÐPUÐ(ÓVÐVÜ)×2Ñ2ˆ ؏{‰{˜;¨UÀˆ{ÓNÐNrgcó
—t|«rU|jdk(r.ttj«}|j |d||¬«Sddlm}|j||«Stj}|j|d|¬«S)NrmTrÙr)Ú sliding_meanr»r¶) r+r\r8rÎÚnanmeanr8rÜrër2r·Ú    roll_meanr&)rdrŠrÑr.rrërºs       rer»zRollingAndExpandingMixin.meanEs€ô ˜6Ô "؏{‰{˜gÒ%Ü>¼r¿z¹zÓJØ—z‘zØØØ!Ø"/ð    "óðõDà×(Ñ(¨°}ÓEÐEÜ)×3Ñ3ˆ ؏{‰{˜;¨VÀ,ˆ{ÓOÐOrgcóü—t|«rN|jdk(rttj«}ntj}|j |d||¬«St j}|j|d|¬«S)NrmTrÙÚmedianr¶)    r+r\r8rÎÚ    nanmedianr8r·Ú roll_median_cr&)rdrŠrÑr.rrºs      rerïzRollingAndExpandingMixin.median[ss€ô ˜6Ô "؏{‰{˜gÒ%Ü>¼r¿|¹|ÓL‘ä—|‘|à—:‘:ØØØØ+ð    óð ô *×7Ñ7ˆ ؏{‰{˜;¨XÀLˆ{ÓQÐQrgcóꇇ—t|«r=|jdk(r td«‚ddlm}t |j ||‰¬««StjŠˆˆfd„}|j|d|¬«S)    Nrmz%std not supported with method='table'r©Ú sliding_varrÀc    ó0•—t‰||||‰¬««S)NrÀ)r-)rÓrÖr}rWrÁrºs    €€reÚ
zsqrt_funcz0RollingAndExpandingMixin.std.<locals>.zsqrt_funcsø€Ü™ V¨U°C¸È4ÔPÓQÐ QrgrÄr¶)
r+r\rˆrÜrôr-r2r·Úroll_varr&)rdrÁrŠrÑr.rôrörºs `     @rerÄzRollingAndExpandingMixin.stdpswù€ô ˜6Ô "؏{‰{˜gÒ%Ü)Ð*QÓRÐRÝ >ä˜×*Ñ*¨;¸ ÈDÐ*ÓQÓRÐ RÜ)×2Ñ2ˆ õ    Rð{‰{Ø ØØ%ðó
ð    
rgcóޗt|«r4|jdk(r td«‚ddlm}|j |||¬«St tj|¬«}|j|d|¬«S)Nrmz%var not supported with method='table'rrórÀr¾r¶)
r+r\rˆrÜrôr2rr·r÷r&)rdrÁrŠrÑr.rôrºs       rer¾zRollingAndExpandingMixin.varˆsq€ô ˜6Ô "؏{‰{˜gÒ%Ü)Ð*QÓRÐRÝ >à×$Ñ$ [°-ÀdÐ$ÓKÐ KÜÔ1×:Ñ:ÀÔFˆ ؏{‰{Ø ØØ%ðó
ð    
rgcóJ—tj}|j|d|¬«S)NÚskewr¶)r·Ú    roll_skewr&rÍs   rerúzRollingAndExpandingMixin.skewœó,€Ü)×3Ñ3ˆ ؏{‰{Ø ØØ%ðó
ð    
rgcó”—|jd|«|j|¬«|j|¬«|z
jd«z S©NÚsem©rŠçà?©r‹rÄr÷Úpow©rdrÁrŠs   rerÿzRollingAndExpandingMixin.sem¤sF€à ×#Ñ# E¨<Ô8؏x‰x \ˆxÓ2Ø J‰J LˆJÓ 1°DÑ 8ß
‰#ˆc‹(ñð    rgcóJ—tj}|j|d|¬«S)NÚkurtr¶)r·Ú    roll_kurtr&rÍs   rerzRollingAndExpandingMixin.kurt«rürgcóº—|dk(rtj}n2|dk(rtj}nttj||¬«}|j |d|¬«S)Ngð?g)ÚquantileÚ interpolationr    r¶)r·rärérÚ roll_quantiler&)rdÚqr
rŠrºs     rer    z!RollingAndExpandingMixin.quantile³sX€ð Š8Ü-×6Ñ6‰KØ #ŠXÜ-×6Ñ6‰Kä!Ü#×1Ñ1ØØ+ôˆKð {‰{˜;¨ZÀlˆ{ÓSÐSrgcód—ttj|||¬«}|j|d|¬«S)N)r\Ú    ascendingÚ
percentileÚrankr¶)rr·Ú    roll_rankr&)rdr\rÚpctrŠrºs      rerzRollingAndExpandingMixin.rankÆs7€ôÜ × )Ñ )ØØØô    
ˆ ð{‰{˜;¨VÀ,ˆ{ÓOÐOrgc󲇇‡—‰j td«‚‰jd|«ddlmŠˆˆˆfd„}‰j ‰j ||||«S)Nzstep not implemented for covÚcovrrØcó8•—‰j|«}‰j|«}‰j«}‰j ‰jn |j}|j    t |«|‰j ‰j‰j¬«\}}‰j||t |««tjd¬«5tj||z|||«}tj||||«}    tj||||«}
tjt||z«j!tj"«||d«} ||    |
zz
| | ‰z
z z} ddd«‰  |j$|j&d¬«S#1swYŒ)xYw)NrÀrr rFrÙ)rÖrÃrWrõrsr{rXrTrUrrÎr#r·rírÌrr™r–r^r‰)rÚyÚx_arrayÚy_arrayrrWr|r}Úmean_x_yÚmean_xÚmean_yÚ    count_x_yrrErÁrds             €€€reÚcov_funcz.RollingAndExpandingMixin.cov.<locals>.cov_funcãsˆø€Ø×'Ñ'¨Ó*ˆGØ×'Ñ'¨Ó*ˆGØ!×5Ñ5Ó7ˆNð×#Ñ#Ð/ð× Ò à#×/Ñ/ð ð
(×9Ñ9ܘw›<Ø'Ø—{‘{Ø—{‘{Ø—Y‘Yð :ó‰JˆE3ð × %Ñ % e¨S´#°g³,Ô ?ä—‘ Ô*ñ     YÜ.×8Ñ8ؘgÑ% u¨c°;óô-×6Ñ6°wÀÀsÈKÓXÜ,×6Ñ6°wÀÀsÈKÓXÜ/×8Ñ8ܘ' GÑ+Ó,×3Ñ3´B·J±JÓ?ÀÈÈQ󐠠  ð# V¨f¡_Ñ4¸ÀiÐRVÑFVÑ9WÑX÷     Yñ˜&¨¯©°a·f±fÀ5ÔIÐ I÷     Yð     Yús Ã
BFÆF©rUrˆr‹rÚrErr…)rdrrrÁrŠrrEs`  `  @rerzRollingAndExpandingMixin.covÖsZú€ð 9‰9Ð  Ü%Ð&DÓEÐ EØ ×#Ñ# E¨<Ô8å!ö    Jð<×#Ñ#Ø × Ñ   x°¸<ó
ð    
rgc󲇇‡—‰j td«‚‰jd|«ddlmŠˆˆˆfd„}‰j ‰j ||||«S)Nzstep not implemented for corrÚcorrrrØcó¶•—‰j|«}‰j|«}‰j«}‰j ‰jn |j}|j    t |«|‰j ‰j‰j¬«\}}‰j||t |««tjd¬«5tj||z|||«}tj||||«}    tj||||«}
tjt||z«j!tj"«||d«} tj$||||‰«} tj$||||‰«} ||    |
zz
| | ‰z
z z}| | zdz}||z }ddd«‰|j&|j(d¬«S#1swYŒ)xYw)NrÀrr rrFrÙ)rÖrÃrWrõrsr{rXrTrUrrÎr#r·rírÌrr™r–r÷r^r‰)rrrrrrWr|r}rrrrÚx_varÚy_varÚ    numeratorÚ denominatorrrErÁrds                 €€€reÚ    corr_funcz0RollingAndExpandingMixin.corr.<locals>.corr_funcsÚø€Ø×'Ñ'¨Ó*ˆGØ×'Ñ'¨Ó*ˆGØ!×5Ñ5Ó7ˆNð×#Ñ#Ð/ð× Ò à#×/Ñ/ð ð
(×9Ñ9ܘw›<Ø'Ø—{‘{Ø—{‘{Ø—Y‘Yð :ó‰JˆE3ð × %Ñ % e¨S´#°g³,Ô ?ä—‘ Ô*ñ 1Ü.×8Ñ8ؘgÑ% u¨c°;óô-×6Ñ6°wÀÀsÈKÓXÜ,×6Ñ6°wÀÀsÈKÓXÜ/×8Ñ8ܘ' GÑ+Ó,×3Ñ3´B·J±JÓ?ÀÈÈQ󐠠  ô,×4Ñ4ؘU C¨°dóô,×4Ñ4ؘU C¨°dóð&¨°©Ñ7Ø ¨TÑ!1Ñ2ñ    ð % u™}°Ñ4 Ø" [Ñ0÷' 1ñ(˜&¨¯©°a·f±fÀ5ÔIÐ I÷) 1ð 1ús Ã
CGÇGr)rdrrrÁrŠr&rEs`  `  @rer zRollingAndExpandingMixin.corrs[ú€ð 9‰9Ð  Ü%Ð&EÓFÐ FØ ×#Ñ# F¨LÔ9å!ö&    JðP×#Ñ#Ø × Ñ   x°¸Ló
ð    
rgrBrÆ©FNNNN© rrJr6rrÑú!Literal['cython', 'numba'] | Noner.rLr5ztuple[Any, ...] | Noner£zdict[str, Any] | None)
r5rKr£zdict[str, Any]r6zbool | np.bool_rÔrJr?z?Callable[[np.ndarray, np.ndarray, np.ndarray, int], np.ndarray]©FNN©rŠrrÑr)r.rL©rzFNN©rÁrùrŠrrÑr)r.rLrÇrÈ©ÚlinearF©r Úfloatr
rArŠr©ÚaverageTFF©r\rBrrrrrŠr©NNrzF©rrGrr<rÁrùrŠr)rvrMrNr÷r8rÐr°rârçr»rïrÄr¾rúrÿrr    rrr rIrgrerÊrʺsÞ„ôQðØ48Ø04Ø'+Ø(,ð)
à ð)
ðð)
ð2ð    )
ð
.ð )
ð %ð )
ð&ó)
ðVàððððð    ð
%ð ð
Ió ð6#Ø48Ø04ð    OàðOð2ðOð.ó    Oð0#Ø48Ø04ð    OàðOð2ðOð.ó    Oð0#Ø48Ø04ð    OàðOð2ðOð.ó    Oð0#Ø48Ø04ð    PàðPð2ðPð.ó    Pð0#Ø48Ø04ð    RàðRð2ðRð.ó    Rð.Ø"Ø48Ø04ð 
àð
ðð
ð2ð    
ð
.ó 
ð4Ø"Ø48Ø04ð 
àð
ðð
ð2ð    
ð
.ó 
ô(
ôô
ð08Ø"ð    Tà ðTð-ðTðó    Tð*%.ØØØ"ð Pà!ðPððPðð    Pð
ó Pð$,0Ø $ØØ"ð -
à(ð-
ðð-
ðð    -
ð
ó -
ðb,0Ø $ØØ"ð 7
à(ð7
ðð7
ðð    7
ð
ô 7
rgrÊcóÔ ‡—eZdZUgd¢Zded<ˆfd„Zdgd„Zdhd„Zee    de
d«e
d    «d
d ¬ «ˆfd „«Z e Z ee ed«eed«eed«eed«e
d«j%dd d«ddd¬« didjˆfd„ «Zee ed«eed«eed«eed«e
d«ddd¬«                     dk                                            dlˆfd„ «Zee ed«ee«ed«eed«eed«eed«e
d «j%dd d«dd!d!¬«            dm                    dnˆfd"„ «Zee ed«ee«ed«eed«eed«eed«e
d#«dd$d%¬«    diddd&œ                    dnˆfd'„«Zee ed«ee«ed«eed«eed«eed«e
d(«j%dd d«dd)d*¬«            dm                    dnˆfd+„ «Zee ed«ee«ed«eed«eed«eed«e
d,«j%dd d«dd-d-¬«            dm                    dnˆfd.„ «Zee ed«ee«ed«eed«eed«eed«e
d/«j%dd d«dd0d0¬«            dm                    dnˆfd1„ «Zee ed«e
d2«j%dd d«eed3«ed«eed«d4eed«e
d5«j%dd d«ed«e
d6«j%dd d«dd7d8¬«                do                            dpˆfd9„ «Zee ed«e
d2«j%dd d«eed3«ed«eed«d:eed«e
d;«j%dd d«ed«e
d<«j%dd d«dd=d>¬«                do                            dpˆfd?„ «Zee ed«eed«eed«d@eed«e
dA«ed«e
dB«ddCdD¬«didjˆfdE„ «Zee ed«e
d2«j%dd d«eed«eed«eed«dFed«e
dG«j%dd d«ddHdI¬«dqdrdJ„«Z ee ed«eed«eed«dKeed«dLed«e
dM«j%dd d«ddNdO¬«didjˆfdP„ «Z!ee ed«e
dQ«j%dd d«eed«eed«eed«e
dR«j%dd d«ddSdS¬« e"dSdT¬U«        ds                    dtˆfdV„ ««Z#ee dWed«e
dX«j%dd d«eed«eed«eed«e
dY«j%dd d«ddZdZ¬«                du                            dvˆfd[„ «Z$ee ed«e
d\«j%dd d«eed«eed«eed«e
d]«dd^d_¬«                 dw                            dxˆfd`„ «Z%ee ed«e
d\«j%dd d«eed«eed«e
da«j%dd d«eed«e
db«j%dd d«ed«e
dc«j%dd d«dddde¬«                dw                            dxˆfdf„ «Z&ˆxZ'S)yÚRollingr•rLrMcó°•—t‰|«|jjsmt    |j
t ttf«sHt    |j
jt«r[|j
jjdvr8t    |jtttf«r|j!«    t#|j«}t    |j
t«rT|j(|j
j*j(|j
j*j,z z |_nS    t1|j
j«}t3|j(«j5|«j6|_|j8€d|_|j: t=d«‚yt    |jt>«rytA|j«r|jdkr t'd«‚y#t$t&f$r}t'd|j›d«|‚d}~wwxYw#t$$rd}YŒçwxYw)    Nrèzpassed window z, is not compatible with a datetimelike indexÚnsrzz,step is not supported with frequency windowsrr˜)!r]rcrRrr`rOr$r(r'r‡rrërVr>r rÚ _validate_datetimelike_monotonicr roraÚnanosÚfreqÚnr]rIr Úas_unitÚ_valuerWrUrˆr r)rdr=rÔÚunitr^s    €rerczRolling._validateLsÎø€Ü ‰ÑÔð H‰HNŠNܘ$Ÿ(™(¤]´NÄKÐ$PÔQܘ4Ÿ8™8Ÿ>™>¬:Õ6¸4¿8¹8¿>¹>×;NÑ;NÐRVÒ;VܘŸ™¤s¬J¼    Ð&BÕCØ × 1Ñ 1Ô 3ð Ü  §¡Ó-ô ˜$Ÿ(™(¤KÔ0ð%)§J¡JØ—H‘H—M‘M×'Ñ'¨$¯(©(¯-©-¯/©/Ñ9ñ%Õ!ð Ü(¨¯©¯©Ó8Dô%.¨d¯j©jÓ$9×$AÑ$AÀ$Ó$G×$NÑ$NÔ!ð×ÑÐ'Ø#$Ô ày‰yÐ$Ü)ØBóðð%ô
˜Ÿ ™ ¤[Ô 1à ܘDŸK™KÔ(¨D¯K©K¸!ªOÜÐEÓFÐ Fð-<øô?œzÐ*ò Ü Ø$ T§[¡[ Mð2;ð;óððûð ûô!ò à’Dð ús*Ã
HÅIÈIÈ%H?È?IÉ IÉIcóЗ|jjr|jd«|jjs)|jjs|jd«yyy)z€
        Validate self._on is monotonic (increasing or decreasing) and has
        no NaT values for frequency windows.
        úvalues must not have NaTzvalues must be monotonicN)rOÚhasnansÚ_raise_monotonic_errorÚis_monotonic_increasingÚis_monotonic_decreasingr°s rer;z(Rolling._validate_datetimelike_monotonic|sQ€ð
8‰8× Ò Ø × 'Ñ 'Ð(BÔ CØ—‘×0Ò0°D·H±H×4TÒ4TØ × 'Ñ 'Ð(BÕ Cð5UÐ0rgcóf—|j}|€|jdk(rd}nd}t|›d|›«‚)Nrr^Úcolumnú )rSr[ra)rdÚmsgrSs   rerEzRolling._raise_monotonic_error†s:€Ø W‰WˆØ ˆ:؏y‰y˜AŠ~Ø‘àÜ˜B˜4˜q  ˜Ó'Ð'rgr:z³
        See Also
        --------
        pandas.Series.rolling : Calling object with Series data.
        pandas.DataFrame.rolling : Calling object with DataFrame data.
        aì
        Examples
        --------
        >>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]})
        >>> df
           A  B  C
        0  1  4  7
        1  2  5  8
        2  3  6  9
 
        >>> df.rolling(2).sum()
             A     B     C
        0  NaN   NaN   NaN
        1  3.0   9.0  15.0
        2  5.0  11.0  17.0
 
        >>> df.rolling(2).agg({"A": "sum", "B": "min"})
             A    B
        0  NaN  NaN
        1  3.0  4.0
        2  5.0  5.0
        zSeries/Dataframer¥r¦có*•—t‰||g|¢­i|¤ŽSr®)r]r:)rdrr5r£r^s    €rer:zRolling.aggregates ø€ôL‰wÑ  Ð7¨Ò7°Ñ7Ð7rgr«r¬r­r®a«
        >>> s = pd.Series([2, 3, np.nan, 10])
        >>> s.rolling(2).count()
        0    NaN
        1    2.0
        2    1.0
        3    1.0
        dtype: float64
        >>> s.rolling(3).count()
        0    NaN
        1    NaN
        2    2.0
        3    2.0
        dtype: float64
        >>> s.rolling(4).count()
        0    NaN
        1    NaN
        2    NaN
        3    3.0
        dtype: float64
        ú
rzr¯zcount of non NaN observationsr÷r±có"•—t‰||«Sr®)r]r÷©rdrŠr^s  €rer÷z Rolling.count¹sø€ôJ‰w‰}˜\Ó*Ð*rgzË        >>> ser = pd.Series([1, 6, 5, 4])
        >>> ser.rolling(2).apply(lambda s: s.sum() - s.min())
        0    NaN
        1    6.0
        2    6.0
        3    5.0
        dtype: float64
        zcustom aggregation functionr8Ncó.•—t‰|||||||¬«S)N)r6rÑr.r5r£)r]r8)rdrr6rÑr.r5r£r^s       €rer8z Rolling.applyàs.ø€ôB‰w‰}Ø ØØØ'ØØð ó
ð    
rgÚNotesa]
        >>> s = pd.Series([1, 2, 3, 4, 5])
        >>> s
        0    1
        1    2
        2    3
        3    4
        4    5
        dtype: int64
 
        >>> s.rolling(3).sum()
        0     NaN
        1     NaN
        2     6.0
        3     9.0
        4    12.0
        dtype: float64
 
        >>> s.rolling(3, center=True).sum()
        0     NaN
        1     6.0
        2     9.0
        3    12.0
        4     NaN
        dtype: float64
 
        For DataFrame, each sum is computed column-wise.
 
        >>> df = pd.DataFrame({{"A": s, "B": s ** 2}})
        >>> df
           A   B
        0  1   1
        1  2   4
        2  3   9
        3  4  16
        4  5  25
 
        >>> df.rolling(3).sum()
              A     B
        0   NaN   NaN
        1   NaN   NaN
        2   6.0  14.0
        3   9.0  29.0
        4  12.0  50.0
        r°có(•—t‰||||¬«S©N)rŠrÑr.)r]r°©rdrŠrÑr.r^s    €rer°z Rolling.sum
s%ø€ôJ‰w‰{Ø%ØØ'ðó
ð    
rgz®        >>> ser = pd.Series([1, 2, 3, 4])
        >>> ser.rolling(2).max()
        0    NaN
        1    2.0
        2    3.0
        3    4.0
        dtype: float64
        Úmaximumrâ)rÑr.có(•—t‰||||¬«SrS)r]râ)rdrŠrÑr.r5r£r^s      €rerâz Rolling.maxUs%ø€ôF‰w‰{Ø%ØØ'ðó
ð    
rgzþ
        Performing a rolling minimum with a window size of 3.
 
        >>> s = pd.Series([4, 3, 5, 2, 6])
        >>> s.rolling(3).min()
        0    NaN
        1    NaN
        2    3.0
        3    2.0
        4    2.0
        dtype: float64
        Úminimumrçcó(•—t‰||||¬«SrS)r]rçrTs    €rerçz Rolling.min~s%ø€ôH‰w‰{Ø%ØØ'ðó
ð    
rga¢
        The below examples will show rolling mean calculations with window sizes of
        two and three, respectively.
 
        >>> s = pd.Series([1, 2, 3, 4])
        >>> s.rolling(2).mean()
        0    NaN
        1    1.5
        2    2.5
        3    3.5
        dtype: float64
 
        >>> s.rolling(3).mean()
        0    NaN
        1    NaN
        2    2.0
        3    3.0
        dtype: float64
        r»có(•—t‰||||¬«SrS)r]r»rTs    €rer»z Rolling.mean¨s%ø€ôV‰w‰|Ø%ØØ'ðó
ð    
rga 
        Compute the rolling median of a series with a window size of 3.
 
        >>> s = pd.Series([0, 1, 2, 3, 4])
        >>> s.rolling(3).median()
        0    NaN
        1    NaN
        2    1.0
        3    2.0
        4    3.0
        dtype: float64
        rïcó(•—t‰||||¬«SrS)r]rïrTs    €rerïzRolling.medianÙs%ø€ôH‰w‰~Ø%ØØ'ðó
ð    
rgz»
        ddof : int, default 1
            Delta Degrees of Freedom.  The divisor used in calculations
            is ``N - ddof``, where ``N`` represents the number of elements.
        z1.4z/numpy.std : Equivalent method for NumPy array.
        The default ``ddof`` of 1 used in :meth:`Series.std` is different
        than the default ``ddof`` of 0 in :func:`numpy.std`.
 
        A minimum of one period is required for the rolling calculation.
 
        a
 
        >>> s = pd.Series([5, 5, 6, 7, 5, 5, 5])
        >>> s.rolling(3).std()
        0         NaN
        1         NaN
        2    0.577350
        3    1.000000
        4    1.000000
        5    1.154701
        6    0.000000
        dtype: float64
        zstandard deviationrÄcó*•—t‰|||||¬«S©N)rÁrŠrÑr.)r]rÄ©rdrÁrŠrÑr.r^s     €rerÄz Rolling.std    ó(ø€ôh‰w‰{ØØ%ØØ'ð    ó
ð    
rgz/numpy.var : Equivalent method for NumPy array.
        The default ``ddof`` of 1 used in :meth:`Series.var` is different
        than the default ``ddof`` of 0 in :func:`numpy.var`.
 
        A minimum of one period is required for the rolling calculation.
 
        a
 
        >>> s = pd.Series([5, 5, 6, 7, 5, 5, 5])
        >>> s.rolling(3).var()
        0         NaN
        1         NaN
        2    0.333333
        3    1.000000
        4    1.000000
        5    1.333333
        6    0.000000
        dtype: float64
        Úvariancer¾có*•—t‰|||||¬«Sr\)r]r¾r]s     €rer¾z Rolling.var>    r^rgz:scipy.stats.skew : Third moment of a probability density.
zV
        A minimum of three periods is required for the rolling calculation.
 
        zÿ        >>> ser = pd.Series([1, 5, 2, 7, 15, 6])
        >>> ser.rolling(3).skew().round(6)
        0         NaN
        1         NaN
        2    1.293343
        3   -0.585583
        4    0.670284
        5    1.652317
        dtype: float64
        zunbiased skewnessrúcó$•—t‰||¬«S©Nr)r]rúrOs  €rerúz Rolling.skewy    sø€ôD‰w‰|¨ˆ|Ó6Ð6rgz:A minimum of one period is required for the calculation.
 
        >>> s = pd.Series([0, 1, 2, 3])
        >>> s.rolling(2, min_periods=1).sem()
        0         NaN
        1    0.707107
        2    0.707107
        3    0.707107
        dtype: float64
        zstandard error of meanrÿcó’—|jd|«|j|¬«|j|«|z
jd«z Srþrrs   rerÿz Rolling.sem    sG€ðF     ×#Ñ# E¨<Ô8؏x‰x \ˆxÓ2Ø J‰J|Ó $ tÑ +ß
‰#ˆc‹(ñð    rgz/scipy.stats.kurtosis : Reference SciPy method.
z<A minimum of four periods is required for the calculation.
 
a]
        The example below will show a rolling calculation with a window size of
        four matching the equivalent function call using `scipy.stats`.
 
        >>> arr = [1, 2, 3, 4, 999]
        >>> import scipy.stats
        >>> print(f"{{scipy.stats.kurtosis(arr[:-1], bias=False):.6f}}")
        -1.200000
        >>> print(f"{{scipy.stats.kurtosis(arr[1:], bias=False):.6f}}")
        3.999946
        >>> s = pd.Series(arr)
        >>> s.rolling(4).kurt()
        0         NaN
        1         NaN
        2         NaN
        3   -1.200000
        4    3.999946
        dtype: float64
        z,Fisher's definition of kurtosis without biasrcó$•—t‰||¬«Srb)r]rrOs  €rerz Rolling.kurtÅ    sø€ôL‰w‰|¨ˆ|Ó6Ð6rgaæ
        quantile : float
            Quantile to compute. 0 <= quantile <= 1.
 
            .. deprecated:: 2.1.0
                This will be renamed to 'q' in a future version.
        interpolation : {{'linear', 'lower', 'higher', 'midpoint', 'nearest'}}
            This optional parameter specifies the interpolation method to use,
            when the desired quantile lies between two data points `i` and `j`:
 
                * linear: `i + (j - i) * fraction`, where `fraction` is the
                  fractional part of the index surrounded by `i` and `j`.
                * lower: `i`.
                * higher: `j`.
                * nearest: `i` or `j` whichever is nearest.
                * midpoint: (`i` + `j`) / 2.
        ae
        >>> s = pd.Series([1, 2, 3, 4])
        >>> s.rolling(2).quantile(.4, interpolation='lower')
        0    NaN
        1    1.0
        2    2.0
        3    3.0
        dtype: float64
 
        >>> s.rolling(2).quantile(.4, interpolation='midpoint')
        0    NaN
        1    1.5
        2    2.5
        3    3.5
        dtype: float64
        r    r )Ú old_arg_nameÚ new_arg_namecó(•—t‰||||¬«S)N)r r
rŠ)r]r    )rdr r
rŠr^s    €rer    zRolling.quantileí    s&ø€ôr‰wÑØØ'Ø%ð ó
ð    
rgz.. versionadded:: 1.4.0 
 
a
        method : {{'average', 'min', 'max'}}, default 'average'
            How to rank the group of records that have the same value (i.e. ties):
 
            * average: average rank of the group
            * min: lowest rank in the group
            * max: highest rank in the group
 
        ascending : bool, default True
            Whether or not the elements should be ranked in ascending order.
        pct : bool, default False
            Whether or not to display the returned rankings in percentile
            form.
        a(
        >>> s = pd.Series([1, 4, 2, 3, 5, 3])
        >>> s.rolling(3).rank()
        0    NaN
        1    NaN
        2    2.0
        3    2.0
        4    3.0
        5    1.5
        dtype: float64
 
        >>> s.rolling(3).rank(method="max")
        0    NaN
        1    NaN
        2    2.0
        3    2.0
        4    3.0
        5    2.0
        dtype: float64
 
        >>> s.rolling(3).rank(method="min")
        0    NaN
        1    NaN
        2    2.0
        3    2.0
        4    3.0
        5    1.0
        dtype: float64
        rcó*•—t‰|||||¬«S)N)r\rrrŠ)r]r)rdr\rrrŠr^s     €rerz Rolling.rank,
s(ø€ôH‰w‰|ØØØØ%ð    ó
ð    
rga
        other : Series or DataFrame, optional
            If not supplied then will default to self and produce pairwise
            output.
        pairwise : bool, default None
            If False then only matching columns between self and other will be
            used and the output will be a DataFrame.
            If True then all pairwise combinations will be calculated and the
            output will be a MultiIndexed DataFrame in the case of DataFrame
            inputs. In the case of missing elements, only complete pairwise
            observations will be used.
        ddof : int, default 1
            Delta Degrees of Freedom.  The divisor used in calculations
            is ``N - ddof``, where ``N`` represents the number of elements.
        zß        >>> ser1 = pd.Series([1, 2, 3, 4])
        >>> ser2 = pd.Series([1, 4, 5, 8])
        >>> ser1.rolling(2).cov(ser2)
        0    NaN
        1    1.5
        2    0.5
        3    1.5
        dtype: float64
        zsample covariancercó*•—t‰|||||¬«S©N)rrrÁrŠ)r]r©rdrrrÁrŠr^s     €rerz Rolling.covw
s(ø€ôb‰w‰{ØØØØ%ð    ó
ð    
rgz
        cov : Similar method to calculate covariance.
        numpy.corrcoef : NumPy Pearson's correlation calculation.
        ao
        This function uses Pearson's definition of correlation
        (https://en.wikipedia.org/wiki/Pearson_correlation_coefficient).
 
        When `other` is not specified, the output will be self correlation (e.g.
        all 1's), except for :class:`~pandas.DataFrame` inputs with `pairwise`
        set to `True`.
 
        Function will return ``NaN`` for correlations of equal valued sequences;
        this is the result of a 0/0 division error.
 
        When `pairwise` is set to `False`, only matching columns between `self` and
        `other` will be used.
 
        When `pairwise` is set to `True`, the output will be a MultiIndex DataFrame
        with the original index on the first level, and the `other` DataFrame
        columns on the second level.
 
        In the case of missing elements, only complete pairwise observations
        will be used.
 
        ax
        The below example shows a rolling calculation with a window size of
        four matching the equivalent function call using :meth:`numpy.corrcoef`.
 
        >>> v1 = [3, 3, 3, 5, 8]
        >>> v2 = [3, 4, 4, 4, 8]
        >>> np.corrcoef(v1[:-1], v2[:-1])
        array([[1.        , 0.33333333],
               [0.33333333, 1.        ]])
        >>> np.corrcoef(v1[1:], v2[1:])
        array([[1.       , 0.9169493],
               [0.9169493, 1.       ]])
        >>> s1 = pd.Series(v1)
        >>> s2 = pd.Series(v2)
        >>> s1.rolling(4).corr(s2)
        0         NaN
        1         NaN
        2         NaN
        3    0.333333
        4    0.916949
        dtype: float64
 
        The below example shows a similar rolling calculation on a
        DataFrame using the pairwise option.
 
        >>> matrix = np.array([[51., 35.],
        ...                    [49., 30.],
        ...                    [47., 32.],
        ...                    [46., 31.],
        ...                    [50., 36.]])
        >>> np.corrcoef(matrix[:-1, 0], matrix[:-1, 1])
        array([[1.       , 0.6263001],
               [0.6263001, 1.       ]])
        >>> np.corrcoef(matrix[1:, 0], matrix[1:, 1])
        array([[1.        , 0.55536811],
               [0.55536811, 1.        ]])
        >>> df = pd.DataFrame(matrix, columns=['X', 'Y'])
        >>> df
              X     Y
        0  51.0  35.0
        1  49.0  30.0
        2  47.0  32.0
        3  46.0  31.0
        4  50.0  36.0
        >>> df.rolling(4).corr(pairwise=True)
                    X         Y
        0 X       NaN       NaN
          Y       NaN       NaN
        1 X       NaN       NaN
          Y       NaN       NaN
        2 X       NaN       NaN
          Y       NaN       NaN
        3 X  1.000000  0.626300
          Y  0.626300  1.000000
        4 X  1.000000  0.555368
          Y  0.555368  1.000000
        Ú correlationr có*•—t‰|||||¬«Srj)r]r rks     €rer z Rolling.corr¯
s(ø€ô|‰w‰|ØØØØ%ð    ó
ð    
rgrA)rKr>rBrÆr'r(r*r+r,r-rÇrÈr.r0r2r4r5r6)(rvrMrNrMrPrcr;rErr.rr:r7r3r/r0r4r5Úreplacer÷r7r8r6r2r°rârçr»rïrÄr¾rúrÿrrr    rrr r‘r’s@rer8r8?sd ø…ò
€Kó
ô.Gó`Dó(ñ    Ø[Ñ!Ùð ó
ñð ó
ð0!Ø ôG$óJ8óK$ðJ8ð €CáØÙ˜lÓ+ØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
÷, ‰'$˜˜AÓ
ØØ ?ØôE#õH+óI#ðH+ñ    ØÙ˜lÓ+ØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó
    
ð Ø =Øô-ð6Ø48Ø04Ø'+Ø(,ð
à ð
ðð
ð2ð    
ð
.ð 
ð %ð 
ð&ô
ó1ð0
ñ$    ØÙ˜lÓ+ØÙ#Ó%Ù˜iÓ(ØÙ˜jÓ)ØÙ˜gÓ&ØÙ˜jÓ)Ùð, ó.    
÷\ ‰'$˜˜AÓ
ØØ %Øô{>ðB#Ø48Ø04ð    
 
àð
 
ð2ð
 
ð.ô    
 
ó>ð~
 
ñ    ØÙ˜lÓ+ØÙ#Ó%Ù˜iÓ(ØÙ˜jÓ)ØÙ˜gÓ&ØÙ˜jÓ)Ùð ó
    
ð Ø )Øô3ð:#ð 
ð59Ø04ñ 
àð 
ð2ð     
ð
.ô 
ó7ð6 
ñ    ØÙ˜lÓ+ØÙ#Ó%Ù˜iÓ(ØÙ˜jÓ)ØÙ˜gÓ&ØÙ˜jÓ)Ùð ó     
÷ ‰'$˜˜AÓ
ØØ )Øô9ð@#Ø48Ø04ð    
 
àð
 
ð2ð
 
ð.ô    
 
ó=ð<
 
ñ    ØÙ˜lÓ+ØÙ#Ó%Ù˜iÓ(ØÙ˜jÓ)ØÙ˜gÓ&ØÙ˜jÓ)Ùð ó    
÷( ‰'$˜˜AÓ
ØØ &ØôG$ðN#Ø48Ø04ð    
 
àð
 
ð2ð
 
ð.ô    
 
óK$ðJ
 
ñ    ØÙ˜lÓ+ØÙ#Ó%Ù˜iÓ(ØÙ˜jÓ)ØÙ˜gÓ&ØÙ˜jÓ)Ùð ó     
÷ ‰'$˜˜AÓ
ØØ (Øô9ð@#Ø48Ø04ð    
 
àð
 
ð2ð
 
ð.ô    
 
ó=ð<
 
ñ    ØÙ˜lÓ+Ùð ó    
÷ ‰'$˜˜AÓ
ØÙ# EÓ*Ù˜iÓ(ØÙ˜jÓ)Ø:ØÙ˜gÓ&Ùð ó    
÷ ‰'$˜˜AÓ
Ù˜jÓ)Ùð ó     
÷ ‰'$˜˜AÓ
ØØ 4ØôW,ð^Ø"Ø48Ø04ð 
àð 
ðð 
ð2ð     
ð
.ô 
ó[,ðZ 
ñ    ØÙ˜lÓ+Ùð ó    
÷ ‰'$˜˜AÓ
ØÙ# EÓ*Ù˜iÓ(ØÙ˜jÓ)Ø:ØÙ˜gÓ&Ùð ó    
÷ ‰'$˜˜AÓ
Ù˜jÓ)Ùð ó     
÷ ‰'$˜˜AÓ
ØØ *ØôW,ð^Ø"Ø48Ø04ð 
àð 
ðð 
ð2ð     
ð
.ô 
ó[,ðZ 
ñ    ØÙ˜lÓ+ØÙ˜iÓ(ØÙ˜jÓ)ØEØÙ˜gÓ&Ùð ó    
ñ
    ˜jÓ)Ùð
ó     
ð Ø 3Øô? õB7óC ðB7ñ    ØÙ˜lÓ+Ùð ó    
÷ ‰'$˜˜AÓ
ØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜gÓ&ØFÙ˜jÓ)Ùð ó
    
÷ ‰'$˜˜AÓ
ØØ 8Øô? óBóC ðBñ    ØÙ˜lÓ+ØÙ˜iÓ(ØÙ˜jÓ)Ø:ØÙ˜gÓ&ØHÙ˜jÓ)Ùð ó    
÷( ‰'$˜˜AÓ
ØØ NØôG$õJ7óK$ðJ7ñ    ØÙ˜lÓ+Ùð ó    
÷$ ‰'$˜˜AÓ
ØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
÷" ‰'$˜˜AÓ
ØØ *Øôa1ñd *¸3Ô?ð08Ø"ð    
 
à ð
 
ð-ð
 
ðô    
 
ó@óe1ðf
 
ñ    ØØ&Ù˜lÓ+Ùð ó    
÷ ‰'$˜˜AÓ
ØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð ó    
÷< ‰'$˜˜AÓ
ØØ &Øôw<ð~%.ØØØ"ð 
à!ð 
ðð 
ðð     
ð
ô 
ó{<ðz 
ñ    ØÙ˜lÓ+Ùð ó    
÷  ‰'$˜˜AÓ
ØÙ˜iÓ(ØÙ˜jÓ)ØÙ˜jÓ)Ùð     ó     
ð Ø 3ØôQ)ðX,0Ø $ØØ"ð 
à(ð 
ðð 
ðð     
ð
ô 
óU)ðT 
ñ    ØÙ˜lÓ+Ùð ó    
÷  ‰'$˜˜AÓ
ØÙ˜iÓ(ØÙ˜jÓ)Ùð ó    
÷
‰'$˜˜AÓ
ØÙ˜gÓ&Ùð ó    
÷, ‰'$˜˜AÓ
Ù˜jÓ)Ùð8 ó:    
÷t ‰'$˜˜AÓ
ØØ -Øôkvðr,0Ø $ØØ"ð 
à(ð 
ðð 
ðð     
ð
ô 
óovôn 
rgr8cóP—eZdZdZej
ej
zZdd„Zd„Zy)ÚRollingGroupbyz3
    Provide a rolling groupby implementation.
    cóÔ—d}|j}t|jt«rjt    |j«}|jj
j «}t|t«sJ‚|jdd«|j}n1|jt}|j}nt}|j}t|||jj||¬«}|S)z“
        Return an indexer class that will compute the window start and end bounds
 
        Returns
        -------
        GroupbyIndexer
        Nrô)rôrõÚgroupby_indicesrÚindexer_kwargs)rír`rVr rpÚ__dict__r•ÚdictrÃr]r#r!r"rUrd)rdrsrôÚrolling_indexerrVrs      rerÃz"RollingGroupby._get_window_indexer? sȀð15ˆØ×'Ñ'ˆ Ü d—k‘k¤;Ô /Ü" 4§;¡;Ó/ˆOØ!Ÿ[™[×1Ñ1×6Ñ6Ó8ˆNܘn¬dÔ3Ð 3Ð3à × Ñ ˜}¨dÔ 3Ø—[‘[‰FØ × Ñ Ð *Ü3ˆOð×&Ñ&‰Fä0ˆOØ—[‘[ˆFÜ'Ø#ØØ ŸM™M×1Ñ1Ø*Ø)ô 
ˆðÐrgcód—|jjr|jd«|jjj «D]b}|jj |«}|jrŒ+|jrŒ8|j€dn |j}td|›d|›d«‚y)zC
        Validate that each group in self._on is monotonic
        rCNr^zEach group within z' must be monotonic. Sort the values in z first.) rOrDrErUrdrÓrrFrGrSra)rdrrÚgroup_onrSs    rer;z/RollingGroupby._validate_datetimelike_monotonicb s€ð
8‰8× Ò Ø × 'Ñ 'Ð(BÔ CØ!Ÿ]™]×2Ñ2×9Ñ9Ó;ò        ˆMØ—x‘x—}‘} ]Ó3ˆHà×0Ó0°H×4TÓ4Tà $§¡ ‘W°T·W±WÜ Ø(¨¨ð-*Ø*,¨¨Wð6óðñ         rgN)r?r")    rvrMrNrOr8rMrTrÃr;rIrgrerprp8 s+„ñð×%Ñ%Ð(9×(EÑ(EÑE€Kó!óFrgrp)yrOÚ
__future__rr•ÚdatetimerÚ    functoolsrrqÚtextwraprÚtypingrrr    r
ÚnumpyrÎÚpandas._libs.tslibsr r r Ú pandas._libs.window.aggregationsÚ_libsrVÚ aggregationsr·Úpandas.compat._optionalrÚ pandas.errorsrÚpandas.util._decoratorsrrÚpandas.core.dtypes.commonrrrrrÚpandas.core.dtypes.dtypesrÚpandas.core.dtypes.genericrrÚpandas.core.dtypes.missingrÚpandas.core._numbarÚpandas.core.algorithmsrÚpandas.core.applyrÚpandas.core.arraysrÚpandas.core.baserÚpandas.core.commonÚcoreÚcommonrzÚpandas.core.indexers.objectsr r!r"r#Úpandas.core.indexes.apir$r%r&r'r(Úpandas.core.reshape.concatr)Úpandas.core.util.numba_r*r+Úpandas.core.window.commonr,r-Úpandas.core.window.docr.r/r0r1r2r3r4r5r6r7Úpandas.core.window.numba_r8r9r:Úcollections.abcr;r<r=Úpandas._typingr>r?r@rArBrCrÚrDrEÚpandas.core.genericrFrZrHÚpandas.core.arrays.datetimelikerIrKrTr”rÊr8rprIrgreú<module>rsEðñõ#ã ÝÝÛÝ÷óó÷ñ÷
?Ó>Ý>Ý#÷÷
õõ1÷õ-å'Ý,Ý2Ý-Ý+ߠР÷ó÷ õõ.÷÷÷ ÷ ÷ ÷ññ ÷ñ÷ ÷÷õ,Ý3å9ôpôpôfF:˜
ôF:ôRC    
ˆZôC    
ôLB
˜zôB
ôJ s
Ð&ôs
ðl—.‘.€„ô:Ð&¨õ:rg