hyb
2025-11-04 668edf874b4f77214a8ff4513e60e3c1a973f532
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
Ë
nñúhƉãó—dZddlmZddlmZddlmZmZmZm    Z    m
Z
ddl Z ddl mZmZmZddlmZmZmZmZmZddlmZdd    lmZdd
lmZmZmZmZm Z m!Z!dd l"m#Z#dd l$m%Z%m&Z&m'Z'erdd l(m)Z)d4d„Z*d5d„Z+e
ddœ                    d6d„«Z,e
                        d7d„«Z,ddœ                    d8d„Z,gd¢Z-gd¢Z.d9d„Z/d:d„Z0                d;d„Z1d<d„Z2                        d=d„Z3d>d„Z4                        d?                                                                    d@d„Z5dAd„Z6                                dB                                                                            dCd „Z7            dD                                    dEd!„Z8            dF                                    dGd"„Z9        dH                                    dId#„Z:            dJ                                    dKd$„Z;                                        dLd%„Z<                dM                                            dNd&„Z=    dO            dPd'„Z>dQd(„Z?e?            dR                                    dSd)„«Z@e?            dR                                    dSd*„«ZAe?            dR                            dTd+„«ZBe?            dR                    dUd,„«ZC                        dVd-„ZD                        dVd.„ZEe@eAd/œZFdWdXd0„ZGdYd1„ZH                        dZd2„ZId[d3„ZJy)\z$
Routines for filling missing data.
é)Ú annotations)Úwraps)Ú TYPE_CHECKINGÚAnyÚLiteralÚcastÚoverloadN)ÚNaTÚalgosÚlib)Ú    ArrayLikeÚAxisIntÚFÚ ReindexMethodÚnpt)Úimport_optional_dependency)Úinfer_dtype_from)Ú is_array_likeÚ is_bool_dtypeÚis_numeric_dtypeÚis_numeric_v_string_likeÚis_object_dtypeÚneeds_i8_conversion)ÚDatetimeTZDtype)Úis_valid_na_for_dtypeÚisnaÚna_value_for_dtype©ÚIndexcóv—t|«r-t|«|k7rtdt|«›d|›«‚||}|S)zJ
    Validate the size of the values passed to ExtensionArray.fillna.
    z'Length of 'value' does not match. Got (z )  expected )rÚlenÚ
ValueError)ÚvalueÚmaskÚlengths   úFH:\Change_password\venv_build\Lib\site-packages\pandas/core/missing.pyÚcheck_value_sizer'3sP€ôUÔÜ ˆu‹:˜Ò ÜØ9¼#¸e»*¸ðFØ#˜Hð&óð ðd‘ ˆà €Lócó—t|«\}}t|tj«rtj||¬«}n<|j «}t j|«s|g}|j||d¬«}d}t|j«rd}t|«}t|«}||}tj|jt¬«}t|j«r+t|j«st|j«rnÌt|j«r+t|j«rt|j«snŒ|D]‡}    t!||    «rŒ|r;tj|jtj"¬«}
||    k(|
|<n6||    k(}
t|
tj$«s|
j'td¬«}
||
z}Œ‰|j)«r|t|«z}|S)a    
    Return a masking array of same size/shape as arr
    with entries equaling any member of values_to_mask set to True
 
    Parameters
    ----------
    arr : ArrayLike
    values_to_mask: list, tuple, or scalar
 
    Returns
    -------
    np.ndarray[bool]
    )ÚdtypeF)r*ÚcopyT)r*Úna_value)rÚ
isinstanceÚnpr*ÚarrayÚconstruct_array_typer Ú is_list_likeÚ_from_sequencerrÚzerosÚshapeÚboolrrrÚbool_ÚndarrayÚto_numpyÚany) ÚarrÚvalues_to_maskr*ÚclsÚ potential_naÚarr_maskÚna_maskÚnonnar$ÚxÚnew_masks            r&Ú mask_missingrCBs¥€ô"-¨^Ó<Ñ€Eˆ>ä%œŸ™Ô"ÜŸ™ .¸Ô>‰à×(Ñ(Ó*ˆÜ×Ñ Ô/Ø,Ð-ˆNØ×+Ñ+¨NÀ%ÈeÐ+ÓTˆà€Lܐs—y‘yÔ!àˆ Ü˜“I:ˆä>Ó"€GØ ˜G˜8Ñ $€Eô 8‰8C—I‘I¤TÔ *€D䘟™Ô#ܘcŸi™iÔ(Ü ˜%Ÿ+™+Ô &à äc—i‘iÔ Ü ˜UŸ[™[Ô )ܘeŸk™kÔ*à àò    !ˆAÜ'¨¨QÔ/àáÜ!Ÿx™x¨¯    ©    ¼¿¹ÔBHØ),¨X©¸!Ñ);H˜XÒ&à" a™xHä% h´·
±
Ô;à#+×#4Ñ#4¼4È%Ð#4Ó#P˜Ø˜Ñ ‘ð    !ð ‡{{„}Ø ”S“    Ñˆà €Kr(.©Ú allow_nearestcó—y©N©©ÚmethodrEs  r&Úclean_fill_methodrK‹ó€ð r(có—yrGrHrIs  r&rKrK”rLr(Fcóėt|t«r|j«}|dk(rd}n|dk(rd}ddg}d}|r|jd«d}||vrt    d|›d    |›«‚|S)
NÚffillÚpadÚbfillÚbackfillzpad (ffill) or backfill (bfill)Únearestz(pad (ffill), backfill (bfill) or nearestzInvalid fill method. Expecting z. Got )r-ÚstrÚlowerÚappendr")rJrEÚ valid_methodsÚ    expectings    r&rKrKs€€ô
&œ#Ôð—‘“ˆØ WÒ Ø‰FØ wÒ ØˆFà˜JÐ'€MØ1€IÙØ×јYÔ'Ø>ˆ    Ø ]Ñ"ÜÐ:¸9¸+ÀVÈFÈ8ÐTÓUÐUØ €Mr()ÚlinearÚtimeÚindexÚvalues)rSÚzeroÚslinearÚ    quadraticÚcubicÚ barycentricÚkroghÚsplineÚ
polynomialÚfrom_derivativesÚpiecewise_polynomialÚpchipÚakimaÚ cubicsplinec ó̗|jd«}|dvr |€ td«‚ttz}||vrtd|›d|›d«‚|dvr|jst|›d«‚|S)    NÚorder)rcrdz7You must specify the order of the spline or polynomial.zmethod must be one of z. Got 'z
' instead.)rbrfrgz4 interpolation requires that the index be monotonic.)Úgetr"Ú
NP_METHODSÚ
SP_METHODSÚis_monotonic_increasing)rJr[ÚkwargsrkÚvalids     r&Úclean_interp_methodrrÍs‡€Ø J‰JwÓ €Eà Ð)Ñ)¨e¨mÜÐRÓSÐSä œÑ #€EØ UÑÜÐ1°%°¸À¸xÀzÐRÓSÐSà Ð;Ñ;Ø×,Ò,ÜØ(ÐNÐOóð ð €Mr(có—|dvsJ‚t|«dk(ry|jdk(r|jd¬«}|dk(r|ddj«}n*|dk(r%t|«dz
|ddd    …j«z
}|}|sy|S)
a+
    Retrieves the positional index of the first valid value.
 
    Parameters
    ----------
    how : {'first', 'last'}
        Use this parameter to change between the first or last valid index.
    is_valid: np.ndarray
        Mask to find na_values.
 
    Returns
    -------
    int or None
    )ÚfirstÚlastrNéé©Úaxisrtruéÿÿÿÿ)r!Úndimr9Úargmax)ÚhowÚis_validÚidxposÚ    chk_notnas    r&Úfind_valid_indexràs™€ð Ð#Ñ #Ð#Ð #ä
ˆ8ƒ}˜ÒØà‡}}˜ÒØ—<‘< Q<Ó'ˆà
ˆg‚~Ø™"×$Ñ$Ó&‰à     ŠÜX“ Ñ" X©d°¨d¡^×%:Ñ%:Ó%<Ñ<ˆà˜Ñ €Iá Øð €Mr(cóZ—gd¢}|j«}||vrtd|›d|›d«‚|S)N)ÚforwardÚbackwardÚbothz*Invalid limit_direction: expecting one of z, got 'z'.©rUr")Úlimit_directionÚvalid_limit_directionss  r&Úvalidate_limit_directionr‰sN€ò=ÐØ%×+Ñ+Ó-€OØÐ4Ñ4ÜØ 8Ø%Ð& g¨oÐ->¸bð Bó
ð    
ð Ðr(có^—|*ddg}|j«}||vrtd|›d|›d«‚|S)NÚinsideÚoutsidez%Invalid limit_area: expecting one of z, got ú.r†)Ú
limit_areaÚvalid_limit_areass  r&Úvalidate_limit_arearsV€ØÐØ% yÐ1ÐØ×%Ñ%Ó'ˆ
Ø Ð.Ñ .ÜØ7Ð8IÐ7JÈ&ؐ,˜að!óð ð Ðr(có‚—|€ |dvrd}|Sd}|S|dvr|dk7rtd|›d«‚|dvr|dk7rtd|›d«‚|S)N)rRrQr„rƒ)rPrOz0`limit_direction` must be 'forward' for method `ú`z1`limit_direction` must be 'backward' for method `)r")r‡rJs  r&Úinfer_limit_directionr“#s€ðÐØ Ð*Ñ *Ø(ˆOð Ðð(ˆOð Ðð Ð%Ñ %¨/¸YÒ*FÜØBÀ6À(È!ÐLóð ð Ð*Ñ *¨À*Ò/LÜØCÀFÀ8È1ÐMóð ð Ðr(có†—|dk(r+ddlm}|tjt    |«««}nlhd£}t |j «xs<t|j t«xs tj|j d«}||vr|std|›d«‚t|«j«r td«‚|S)    NrYrr>rZr[r\rSÚmMz9Index column must be numeric or datetime type when using z_ method other than linear. Try setting a numeric or datetime index column before interpolating.zkInterpolation with NaNs in the index has not been implemented. Try filling those NaNs before interpolating.)Úpandasrr.Úaranger!rr*r-rr Ú is_np_dtyper"rr9ÚNotImplementedError)rJr[rÚmethodsÚis_numeric_or_datetimes     r&Úget_interp_indexrœ8s»€à Òå á”b—i‘i¤ E£
Ó+Ó,‰â8ˆä ˜UŸ[™[Ó )ò 2ܘ%Ÿ+™+¤Ó7ò 2䏉˜uŸ{™{¨DÓ1ð    ð
˜Ñ  Ñ)?Üðؘð!!ð!óð ô ˆEƒ{‡ÔÜ!ð /ó
ð    
ð
€Lr(c         󐇇‡‡‡‡    ‡ ‡ —t‰|fi‰    ¤Žt‰|j«rt|jd¬«Š‰dk(r"t    |j«s t d«‚dŠt ‰«Št|«Š tjd‰¬«Št|‰«Š d    ˆˆ ˆ    ˆˆ ˆˆˆfd„ }
tj|
||«y)
    Column-wise application of _interpolate_1d.
 
    Notes
    -----
    Alters 'data' in-place.
 
    The signature does differ from _interpolate_1d because it only
    includes what is needed for Block.interpolate.
    F)ÚcompatrZzStime-weighted interpolation only works on Series or DataFrames with a DatetimeIndexr\N)ÚnobsÚlimitc ó0•—td‰|‰‰‰‰‰d‰dœ    ‰¤Žy)NF)    ÚindicesÚyvaluesrJr r‡rŽÚ
fill_valueÚ bounds_errorr$rH)Ú_interpolate_1d)    r£r¤r¢rpr Úlimit_area_validatedr‡r$rJs     €€€€€€€€r&Úfuncz$interpolate_2d_inplace.<locals>.func„s7ø€ô    ð     
ØØØØØ+Ø+Ø!ØØñ     
ðó     
r()r£ú
np.ndarrayÚreturnÚNone) rrrr*rrr"r‰rr Úvalidate_limitÚ_index_to_interp_indicesr.Úapply_along_axis) Údatar[ryrJr r‡rŽr¤r$rpr¨r¢r§s    ``` ``` @@r&Úinterpolate_2d_inplacer°Ws²ÿ€ô.˜ Ñ0¨Ò0ä˜Z¨¯©Ô4Ü'¨¯
©
¸5ÔAˆ
à ÒÜ" 5§;¡;Ô/Üð óð ð
ˆä.¨Ó?€OÜ.¨zÓ:Ðô ×  Ñ   d°%Ô 8€Eä& u¨fÓ5€G÷
ô
ô,×ј˜d DÕ)r(cóF—|j}t|j«r|jd«}|dk(r|}t    t
j |«}|St j|«}|dvr2|jt
jk(rtj|«}|S)zE
    Convert Index to ndarray of indices to pass to NumPy/SciPy.
    Úi8rY)r\r[) Ú_valuesrr*Úviewrr.r7ÚasarrayÚobject_r Úmaybe_convert_objects)r[rJÚxarrÚindss    r&r­r­sˆ€ð =‰=€Dܘ4Ÿ:™:Ô&ày‰y˜‹ˆà Ò؈ܔB—J‘J Ó%ˆð €Kô z‰z˜$Óˆà Ð(Ñ (؏z‰zœRŸZ™ZÒ'Ü×0Ñ0°Ó6à €Kr(c
 óü—|    |    } n t|«} | } | j«sy| j«rytt    j
| ««} t d| ¬«}|€d}tt|««}t d| ¬«}|€ t|«}ttd|zt| «««}|dk(r|tt| |d««z}n5|dk(r|tt| d|««z}ntt| ||««}|d    k(r    |||zz}n|d
k(r | |z
|z
}||z}t|«}|jjd v}|r|jd «}|tvrBt    j|| «}t    j || || ||| |«|| <nt#|| || || f||||d œ|
¤Ž|| <|     d|    ddd|    |<y|rt$j&||<ytj(||<y)a
    Logic for the 1-d interpolation.  The input
    indices and yvalues will each be 1-d arrays of the same length.
 
    Bounds_error is currently hardcoded to False since non-scipy ones don't
    take it as an argument.
 
    Notes
    -----
    Fills 'yvalues' in-place.
    Nrt©r}r~rrurwrƒr„r‹rŒr•r²)rJr¤r¥rkFT)rr9ÚallÚsetr.Ú flatnonzerorÚranger!Ú _interp_limitÚsortedr*Úkindr´rmÚargsortÚinterpÚ_interpolate_scipy_wrapperr
r#Únan)r¢r£rJr r‡rŽr¤r¥rkr$rpÚinvalidrqÚall_nansÚfirst_valid_indexÚ
start_nansÚlast_valid_indexÚend_nansÚ preserve_nansÚmid_nansÚis_datetimelikeÚindexers                      r&r¦r¦³sK€ð0 ÐØ‰äw“-ˆØ ˆH€Eà 9‰9Œ;Øà ‡yy„{Øô”2—>‘> 'Ó*Ó+€Hä(¨W¸uÔEÐØÐ ØÐÜ”UÐ,Ó-Ó.€Jä'¨F¸UÔCÐØÐܘw›<ÐÜ”5˜Ð-Ñ-¬s°5«zÓ:Ó;€Hð˜)Ò#Ø"¤S¬°wÀÀqÓ)IÓ%JÑJ‰ Ø    ˜JÒ    &Ø ¤3¤}°W¸aÀÓ'GÓ#HÑH‰ ôœM¨'°5¸%Ó@ÓAˆ ðXÒà˜ hÑ.Ñ.‰ Ø    yÒ     à˜jÑ(¨8Ñ3ˆØ˜Ñ!ˆ ô˜=Ó)€Mà—m‘m×(Ñ(¨DÐ0€OáØ—,‘,˜tÓ$ˆà ”Ñô—*‘*˜W U™^Ó,ˆÜŸ9™9Ø GÑ ˜g e™n¨WÑ5°w¸u±~ÀgÑ7Nó
ˆÒô6Ø E‰NØ E‰NØ GÑ ð    
ðØ!Ø%Øñ    
ðñ    
ˆÑð ÐØˆ‰QˆØ"ˆˆ]Ñð
 ñ    
Ü!$§¡ˆ Ñð ô"$§¡ˆ ÑØ
r(c ó¾—|›d}td|¬«ddlm}    tj|«}|    j
|    j tttt|    jdœ}
gd¢} || vr*|dk(r|} n|} |    j||| ||¬    «} | |«}|S|d
k(r>t|«s|dkrtd |›«‚|    j||fd |i|¤Ž} | |«}|S|jj s|j#«}|jj s|j#«}|jj s|j#«}|
|} | |||fi|¤Ž}|S) zµ
    Passed off to scipy.interpolate.interp1d. method is scipy's kind.
    Returns an array interpolated at new_x.  Add any new methods to
    the list in _clean_interp_method.
    z interpolation requires SciPy.Úscipy)Úextrar©Ú interpolate)rarbrerfrirhrg)rSr]r^r_r`rdrd)rÂr¤r¥rcz;order needs to be specified and greater than 0; got order: Úk)rrÒrÕr.rµÚbarycentric_interpolateÚkrogh_interpolateÚ_from_derivativesÚ_cubicspline_interpolateÚ_akima_interpolateÚpchip_interpolateÚinterp1drr"ÚUnivariateSplineÚflagsÚ    writeabler+)rAÚyÚnew_xrJr¤r¥rkrprÓrÕÚ alt_methodsÚinterp1d_methodsrÂÚterpÚnew_ys               r&rÅrÅ%s}€ðˆhÐ4Ð 5€Eܘw¨eÕ4Ý!ä J‰JuÓ €Eð#×:Ñ:Ø×.Ñ.Ü-Ü 1Ü/Ü#Ø×.Ñ.ñ€KòÐðÐ!Ñ!Ø \Ò !؉DàˆDØ×#Ñ#Ø ˆqt¨
Àð$ó
ˆñU“ ˆð( €Lð'
8Ò    ä Œ;˜5 Aš:ÜØMÈeÈWÐUóð ð,ˆ{×+Ñ+¨A¨qÑD°EÐD¸VÑDˆÙU“ ˆð €Lðw‰w× Ò Ø—‘“ˆA؏w‰w× Ò Ø—‘“ˆA؏{‰{×$Ò$Ø—J‘J“LˆEؘ6Ñ"ˆÙQ˜˜5Ñ+ FÑ+ˆØ €Lr(có‚—ddlm}|jj}|||j    dd«||¬«}||«S)aŸ
    Convenience function for interpolate.BPoly.from_derivatives.
 
    Construct a piecewise polynomial in the Bernstein basis, compatible
    with the specified values and derivatives at breakpoints.
 
    Parameters
    ----------
    xi : array-like
        sorted 1D array of x-coordinates
    yi : array-like or list of array-likes
        yi[i][j] is the j-th derivative known at xi[i]
    order: None or int or array-like of ints. Default: None.
        Specifies the degree of local polynomials. If not None, some
        derivatives are ignored.
    der : int or list
        How many derivatives to extract; None for all potentially nonzero
        derivatives (that is a number equal to the number of points), or a
        list of derivatives to extract. This number includes the function
        value as 0th derivative.
     extrapolate : bool, optional
        Whether to extrapolate to ouf-of-bounds points based on first and last
        intervals, or to return NaNs. Default: True.
 
    See Also
    --------
    scipy.interpolate.BPoly.from_derivatives
 
    Returns
    -------
    y : scalar or array-like
        The result, of length R or length M or M by R.
    rrÔrzrw)ÚordersÚ extrapolate)rÒrÕÚBPolyreÚreshape)    ÚxiÚyirArkÚderrérÕrJÚms             r&rÙrÙls?€õR"ð× Ñ × /Ñ /€FÙˆr2—:‘:˜b !Ó$¨UÀ ÔL€Aá ˆQ‹4€Kr(cóJ—ddlm}|j|||¬«}|||¬«S)aQ
    Convenience function for akima interpolation.
    xi and yi are arrays of values used to approximate some function f,
    with ``yi = f(xi)``.
 
    See `Akima1DInterpolator` for details.
 
    Parameters
    ----------
    xi : np.ndarray
        A sorted list of x-coordinates, of length N.
    yi : np.ndarray
        A 1-D array of real values.  `yi`'s length along the interpolation
        axis must be equal to the length of `xi`. If N-D array, use axis
        parameter to select correct axis.
    x : np.ndarray
        Of length M.
    der : int, optional
        How many derivatives to extract; None for all potentially
        nonzero derivatives (that is a number equal to the number
        of points), or a list of derivatives to extract. This number
        includes the function value as 0th derivative.
    axis : int, optional
        Axis in the yi array corresponding to the x-coordinate values.
 
    See Also
    --------
    scipy.interpolate.Akima1DInterpolator
 
    Returns
    -------
    y : scalar or array-like
        The result, of length R or length M or M by R,
 
    rrÔrx)Únu)rÒrÕÚAkima1DInterpolator)rìrírArîryrÕÚPs       r&rÛr۞s+€õT"à×'Ñ'¨¨B°TÐ'Ó:€Aá ˆQ3Œ<Ðr(cóJ—ddlm}|j|||||¬«}||«S)ag
    Convenience function for cubic spline data interpolator.
 
    See `scipy.interpolate.CubicSpline` for details.
 
    Parameters
    ----------
    xi : np.ndarray, shape (n,)
        1-d array containing values of the independent variable.
        Values must be real, finite and in strictly increasing order.
    yi : np.ndarray
        Array containing values of the dependent variable. It can have
        arbitrary number of dimensions, but the length along ``axis``
        (see below) must match the length of ``x``. Values must be finite.
    x : np.ndarray, shape (m,)
    axis : int, optional
        Axis along which `y` is assumed to be varying. Meaning that for
        ``x[i]`` the corresponding values are ``np.take(y, i, axis=axis)``.
        Default is 0.
    bc_type : string or 2-tuple, optional
        Boundary condition type. Two additional equations, given by the
        boundary conditions, are required to determine all coefficients of
        polynomials on each segment [2]_.
        If `bc_type` is a string, then the specified condition will be applied
        at both ends of a spline. Available conditions are:
        * 'not-a-knot' (default): The first and second segment at a curve end
          are the same polynomial. It is a good default when there is no
          information on boundary conditions.
        * 'periodic': The interpolated functions is assumed to be periodic
          of period ``x[-1] - x[0]``. The first and last value of `y` must be
          identical: ``y[0] == y[-1]``. This boundary condition will result in
          ``y'[0] == y'[-1]`` and ``y''[0] == y''[-1]``.
        * 'clamped': The first derivative at curves ends are zero. Assuming
          a 1D `y`, ``bc_type=((1, 0.0), (1, 0.0))`` is the same condition.
        * 'natural': The second derivative at curve ends are zero. Assuming
          a 1D `y`, ``bc_type=((2, 0.0), (2, 0.0))`` is the same condition.
        If `bc_type` is a 2-tuple, the first and the second value will be
        applied at the curve start and end respectively. The tuple values can
        be one of the previously mentioned strings (except 'periodic') or a
        tuple `(order, deriv_values)` allowing to specify arbitrary
        derivatives at curve ends:
        * `order`: the derivative order, 1 or 2.
        * `deriv_value`: array-like containing derivative values, shape must
          be the same as `y`, excluding ``axis`` dimension. For example, if
          `y` is 1D, then `deriv_value` must be a scalar. If `y` is 3D with
          the shape (n0, n1, n2) and axis=2, then `deriv_value` must be 2D
          and have the shape (n0, n1).
    extrapolate : {bool, 'periodic', None}, optional
        If bool, determines whether to extrapolate to out-of-bounds points
        based on first and last intervals, or to return NaNs. If 'periodic',
        periodic extrapolation is used. If None (default), ``extrapolate`` is
        set to 'periodic' for ``bc_type='periodic'`` and to True otherwise.
 
    See Also
    --------
    scipy.interpolate.CubicHermiteSpline
 
    Returns
    -------
    y : scalar or array-like
        The result, of shape (m,)
 
    References
    ----------
    .. [1] `Cubic Spline Interpolation
            <https://en.wikiversity.org/wiki/Cubic_Spline_Interpolation>`_
            on Wikiversity.
    .. [2] Carl de Boor, "A Practical Guide to Splines", Springer-Verlag, 1978.
    rrÔ)ryÚbc_typeré)rÒrÕÚ CubicSpline)rìrírAryrõrérÕrós        r&rÚrÚÏs3€õZ"à×ÑØ
ˆBT 7¸ ð     ó    €Añ ˆQ‹4€Kr(có4—t|«}|}|j«sztd|¬«}|€d}td|¬«}|€ t|«}t    ||||¬«|dk(r    d|||d    zn|d
k(rdx|d|||d    zdn t d «‚t j||<yy) a«
    Apply interpolation and limit_area logic to values along a to-be-specified axis.
 
    Parameters
    ----------
    values: np.ndarray
        Input array.
    method: str
        Interpolation method. Could be "bfill" or "pad"
    limit: int, optional
        Index limit on interpolation.
    limit_area: {'inside', 'outside'}
        Limit area for interpolation.
 
    Notes
    -----
    Modifies values in-place.
    rtr»Nrru)rJr rŽr‹FrwrŒz*limit_area should be 'inside' or 'outside')rr¼rr!Úpad_or_backfill_inplacer"r.rÆ)r\rJr rŽrÇr~rtrus        r&Ú_interpolate_with_limit_arearù%s¼€ô26‹l€G؈x€Hà ;‰;Œ=Ü  W°xÔ@ˆØ ˆ=؈EÜ F°XÔ>ˆØ ˆ<ܐv“;ˆDäØ ØØØ!õ        
ð ˜Ò !Ø(-ˆGE˜D 1™HÑ %Ø ˜9Ò $Ø49Ð 9ˆGFUˆO˜g d¨Q¡h jÑ1äÐIÓJÐ JäŸ&™&ˆˆwŠð- r(cóü—|dk(rd„nd„}|jdk(r7|dk7r td«‚|jtd|jz««}t |«}||«}t |d¬«}||||¬    «y
) a
    Perform an actual interpolation of values, values will be make 2-d if
    needed fills inplace, returns the result.
 
    Parameters
    ----------
    values: np.ndarray
        Input array.
    method: str, default "pad"
        Interpolation method. Could be "bfill" or "pad"
    axis: 0 or 1
        Interpolation axis
    limit: int, optional
        Index limit on interpolation.
    limit_area: str, optional
        Limit area for interpolation. Can be "inside" or "outside"
 
    Notes
    -----
    Modifies values in-place.
    rcó—|SrGrH©rAs r&ú<lambda>z)pad_or_backfill_inplace.<locals>.<lambda>vs€˜€r(có—|jSrG)ÚTrüs r&rýz)pad_or_backfill_inplace.<locals>.<lambda>vs
€¸¿¹€r(rwz0cannot interpolate on a ndim == 1 with axis != 0©rwrv)r{)r rŽN)r{ÚAssertionErrorrëÚtupler4rKÚ get_fill_func)r\rJryr rŽÚtransfÚtvaluesr¨s        r&rørøZsy€ð8# ašiŠk©m€Fð‡{{aÒØ 1Š9Ü Ð!SÓTÐ TØ—‘¤ d¨V¯\©\Ñ&9Ó :Ó;ˆä ˜vÓ &€FِV‹n€Gä ˜ aÔ (€Dመ¨*Ö5r(có —|€ t|«}|SrG)r)r\r$s  r&Ú _fillna_prepr†s€ð
 €|ܐF‹|ˆà €Kr(cóZ‡—t‰«            d            dˆfd„ «}tt|«S)z>
    Wrapper to handle datetime64 and timedelta64 dtypes.
    có֕—t|j«rH|€ t|«}‰|jd«|||¬«\}}|j|j«|fS‰||||¬«S)Nr²)r rŽr$)rr*rr´)r\r rŽr$Úresultr¨s     €r&Únew_funcz&_datetimelike_compat.<locals>.new_func–sjø€ô ˜vŸ|™|Ô ,؈|ä˜F“|áØ— ‘ ˜DÓ!¨¸:ÈDô‰LˆFDð—;‘;˜vŸ|™|Ó,¨dÐ2Ð 2áF %°JÀTÔJÐJr(©NNN)r ú
int | NonerŽú#Literal['inside', 'outside'] | None)rrr)r¨r s` r&Ú_datetimelike_compatr‘sKø€ô
 ˆ4ƒ[ð!Ø:>Ø ð    KàðKð8ôKóðKô$ ”8Ó Ðr(cóŽ—t||«}||j«s t||«tj|||¬«||fS©N)r )rr¼Ú_fill_limit_area_1dr Ú pad_inplace©r\r rŽr$s    r&Ú_pad_1dr¬sD€ô ˜ Ó %€DØÐ d§h¡h¤jܘD *Ô-Ü    ×ѐf˜d¨%Õ0Ø 4ˆ<Ðr(cóŽ—t||«}||j«s t||«tj|||¬«||fSr)rr¼rr Úbackfill_inplacers    r&Ú _backfill_1drºsD€ô ˜ Ó %€DØÐ d§h¡h¤jܘD *Ô-Ü    ×ј6 4¨uÕ5Ø 4ˆ<Ðr(có—t||«}| t||«|jrtj|||¬«||fS    ||fSr)rÚ_fill_limit_area_2dÚsizer Úpad_2d_inplacers    r&Ú_pad_2drÈsT€ô ˜ Ó %€DØÐܘD *Ô-à ‡{‚{Ü ×јV T°Õ7ð 4ˆ<Ðð     Ø 4ˆ<Ðr(có—t||«}| t||«|jrtj|||¬«||fS    ||fSr)rrrr Úbackfill_2d_inplacers    r&Ú _backfill_2dr ÛsT€ô ˜ Ó %€DØÐܘD *Ô-à ‡{‚{Ü ×!Ñ! &¨$°eÕ<ð 4ˆ<Ðð     Ø 4ˆ<Ðr(có¶—|}|j«}t|«|ddd…j«z
dz
}|dk(rd|d|d||dzdy|dk(r    d||dz|yy)a×Prepare 1d mask for ffill/bfill with limit_area.
 
    Caller is responsible for checking at least one value of mask is False.
    When called, mask will no longer faithfully represent when
    the corresponding are NA or not.
 
    Parameters
    ----------
    mask : np.ndarray[bool, ndim=1]
        Mask representing NA values when filling.
    limit_area : { "outside", "inside" }
        Whether to limit filling to outside or inside the outer most non-NA value.
    Nrzrwr‹FrŒ)r|r!)r$rŽÚneg_maskrtrus     r&rrîs{€ð ˆu€HØ O‰OÓ €EÜ ˆx‹=˜8¡D b D™>×0Ñ0Ó2Ñ 2°QÑ 6€DؐXÒØˆˆVˆeˆ Ø ˆˆTA‰XˆZÑØ    yÒ     Ø!&ˆˆUQ‰Y˜Ñð
!r(cóˆ—|j}|dk(rPtjj|d¬«tjj|ddd…d¬«ddd…z}nQtjj|d¬«tjj|ddd…d¬«ddd…z}d||j<y)a‹Prepare 2d mask for ffill/bfill with limit_area.
 
    When called, mask will no longer faithfully represent when
    the corresponding are NA or not.
 
    Parameters
    ----------
    mask : np.ndarray[bool, ndim=1]
        Mask representing NA values when filling.
    limit_area : { "outside", "inside" }
        Whether to limit filling to outside or inside the outer most non-NA value.
    rŒrrxNrzF)rÿr.ÚmaximumÚ
accumulate)r$rŽr"Úla_masks    r&rrsĀ𗑈w€HؐYÒô J‰J× !Ñ ! (°Ð !Ó 3܏j‰j×#Ñ# H©T¨r¨T¡N¸Ð#Ó;¹D¸b¸DÑAñ Bñ    ôZ‰Z× "Ñ " 8°!Ð "Ó 4Ð 4܏z‰z×$Ñ$ X©d°¨d¡^¸!Ð$Ó<¹T¸r¸TÑBÐBñ Cð    ð€Dˆ‰‚Or(©rPrRcóT—t|«}|dk(r    t|Sttdœ|S)Nrwr')rKÚ _fill_methodsrr )rJr{s  r&rr*s.€Ü ˜vÓ &€FØ ˆq‚yܘVÑ$Ð$ܬ Ñ 5°fÑ =Ð=r(có"—|€yt|d¬«S)NTrD)rK)rJs r&Úclean_reindex_fill_methodr+1s€Ø €~ØÜ ˜V°4Ô 8Ð8r(cóT‡—t|«Št«}t«}dˆfd„ }|0|dk(r"ttj|«d«}n    |||«}|J|dk(r|St    ||ddd…|««}t‰dz
tj
|«z
«}|dk(r|S||zS)ak
    Get indexers of values that won't be filled
    because they exceed the limits.
 
    Parameters
    ----------
    invalid : np.ndarray[bool]
    fw_limit : int or None
        forward limit to index
    bw_limit : int or None
        backward limit to index
 
    Returns
    -------
    set of indexers
 
    Notes
    -----
    This is equivalent to the more readable, but slower
 
    .. code-block:: python
 
        def _interp_limit(invalid, fw_limit, bw_limit):
            for x in np.where(invalid)[0]:
                if invalid[max(0, x - fw_limit):x + bw_limit + 1].all():
                    yield x
    c    ó•—t|‰«}t||dz«jd«}tt    j
|«d|z«tt    j
|d|dzj «dk(«d«z}|S)Nrwr)ÚminÚ_rolling_windowr¼r½r.ÚwhereÚcumsum)rÇr ÚwindowedÚidxÚNs    €r&Úinnerz_interp_limit.<locals>.inner\s†ø€ÜE˜1“ ˆÜ" 7¨E°A©IÓ6×:Ñ:¸1Ó=ˆÜ”"—(‘(˜8Ó$ QÑ'¨%Ñ/Ó0´3Ü H‰Hw˜{ ¨¡Ð+Ð+×3Ñ3Ó5¸Ñ:Ó ;¸AÑ >ó4
ñ
ˆðˆ
r(Nrrzrw)r Úint)r!r½r.r0Úlistrµ)rÇÚfw_limitÚbw_limitÚf_idxÚb_idxr5Ú    b_idx_invr4s       @r&rÀrÀ7s´ø€ôB     ˆG‹ €AÜ ‹E€EÜ ‹E€EõðÐØ qŠ=ÜœŸ™ Ó)¨!Ñ,Ó-‰Eá˜' 8Ó,ˆEàÐØ qŠ=ðˆLä™U 7©4¨R¨4¡=°(Ó;Ó<ˆIܘ˜A™¤§
¡
¨9Ó 5Ñ5Ó6ˆEؘ1Š}ؐ à 5‰=Ðr(cóâ—|jdd|jd|z
dz|fz}|j|jdfz}tjjj |||¬«S)z™
    [True, True, False, True, False], 2 ->
 
    [
        [True,  True],
        [True, False],
        [False, True],
        [True, False],
    ]
    Nrzrw)r4Ústrides)r4r>r.r Ú stride_tricksÚ
as_strided)ÚaÚwindowr4r>s    r&r/r/xsj€ð G‰GCRˆL˜AŸG™G B™K¨&Ñ0°1Ñ4°fÐ=Ñ =€E؏i‰i˜1Ÿ9™9 R™=Ð*Ñ*€GÜ 6‰6× Ñ × *Ñ *¨1°EÀ7Ð *Ó KÐKr()r$únpt.NDArray[np.bool_]r%r6)r:r rªrC)rJz,Literal['ffill', 'pad', 'bfill', 'backfill']rEzLiteral[False]rªúLiteral['pad', 'backfill'])rJú7Literal['ffill', 'pad', 'bfill', 'backfill', 'nearest']rEz Literal[True]rªú%Literal['pad', 'backfill', 'nearest'])rJrErEr5rªrF)rJrTr[rrªrT)r}rTr~rCrªr )r‡rTrªz&Literal['forward', 'backward', 'both'])rŽú
str | Nonerªr)r‡z-Literal['backward', 'forward', 'both'] | NonerJrTrªz&Literal['backward', 'forward', 'both'])r[rrªr)rYNrƒNNN)r¯r©r[rryrrJrTr r r‡rTrŽrGr¤ú
Any | Nonerªr«)r[rrJrTrªr©)rYNrƒNNFNN)r¢r©r£r©rJrTr r r‡rTrŽrr¤rHr¥r5rkr rªr«)NFN)
rAr©rár©râr©rJrTr¥r5)NrF)
rìr©rír©rAr©rîúint | list[int] | Nonerér5)rr)
rìr©rír©rAr©rîrIryr)rz
not-a-knotN)
rìr©rír©rAr©ryrrõzstr | tuple[Any, Any])
r\r©rJrDr r rŽzLiteral['inside', 'outside']rªr«)rPrNN) r\r©rJrDryrr r rŽrrªr«rG)r$únpt.NDArray[np.bool_] | NonerªrC)r¨rrªrr )
r\r©r r rŽrr$rJrªz(tuple[np.ndarray, npt.NDArray[np.bool_]])r\r©r r rŽrr$rJ)r r rŽrr$rJ)r$rCrŽzLiteral['outside', 'inside']rªr«r)r{r6)rªzReindexMethod | None)rÇrCr8r r9r )rArCrBr6rªrC)KÚ__doc__Ú
__future__rÚ    functoolsrÚtypingrrrrr    Únumpyr.Ú pandas._libsr
r r Úpandas._typingr rrrrÚpandas.compat._optionalrÚpandas.core.dtypes.castrÚpandas.core.dtypes.commonrrrrrrÚpandas.core.dtypes.dtypesrÚpandas.core.dtypes.missingrrrr–rr'rCrKrmrnrrrr‰rr“rœr°r­r¦rÅrÙrÛrÚrùrørrrrrr rrr)rr+rÀr/rHr(r&ú<module>rWs…ðñõ#å÷õó÷ñ÷
õõ?å4÷÷õ6÷ññ Ýó óFðR
ð%(ñØ 8ðð"ðð ò    ó
ðð
ðØ Cðð!ðð+ò    ó
ðð ñØ Cðððð+ó    ò43€
ò€
ó$ó&#ðL Øð à+ó ó ðØBðØLOðà+óó*ðFØØ$Ø!Ø!Ø     ðC*Ø
ðC*à ðC*ð ðC*ð ð    C*ð
ð C*ð ð C*ððC*ððC*ð
óC*óLð2ØØ$Ø6:Ø!ØØØ     ðo Ø ðo à ðo ð ðo ð ð    o ð
ð o ð 4ð o ððo ððo ð ðo ð
óo ðnØØ
ðDØðDàðDð ðDð ð    Dð ó DðV Ø"#Øð /Øð/àð/ðð/ð
 
 ð /ð ó /ðl#$Øð .Øð.àð.ðð.ð
 ð    .ð
ó .ðjØ%1Øð SØðSàðSððSð ð    Sð
#ó Sðl2!Ø ð2!à &ð2!ð ð2!ð-ð    2!ð
 
ó 2!ðn*/ØØØ6:ð )6Ø ð)6à &ð)6ð ð)6ð ð    )6ð
4ð )6ð 
ó )6ðZ26ðØ.ðàóóð6ðØ6:Ø)-ð    
Ø ð
à ð
ð4ð
ð 'ð    
ð
.ò
óð
ððØ6:Ø)-ð    
Ø ð
à ð
ð4ð
ð 'ð    
ð
.ò
óð
ððØ6:Ø)-ð    Ø ðà ðð4ðð 'ò    óðð$ðØ6:Ø)-ð    à ðð4ðð 'ò    óðð$'Ø
ð'Ø-Ið'à    ó'ð4Ø
ðØ-Iðà    óð> ¨\Ñ:€ ô>ó9ð >Ø "ð>Ø.8ð>ØDNó>ôBLr(