hyb
2025-11-07 cadac0a99d87c53805a07f3b4ca7fd11e524fe4a
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
Ë
nñúh»Uãó¨—dZddlmZddlmZmZmZmZddlZ    ddl
m Z m Z m Z ddlmZmZmZmZmZmZddlmZmZmZddlmZdd    lmZdd
lmZmZm Z ddl!m"cm#Z$dd l%m&Z&erdd l'm(Z(m)Z)                            d                                            dd „Z*                d                    dd„Z+dd„Z,                        d                                                    dd„Z-dd„Z.d d„Z/        d!                            d"d„Z0d#d„Z1d$d„Z2d%d„Z3d&d„Z4y)'z,
Quantilization functions and related stuff
é)Ú annotations)Ú TYPE_CHECKINGÚAnyÚCallableÚLiteralN)Ú    TimedeltaÚ    TimestampÚlib)Úensure_platform_intÚ is_bool_dtypeÚ
is_integerÚ is_list_likeÚis_numeric_dtypeÚ    is_scalar)ÚCategoricalDtypeÚDatetimeTZDtypeÚExtensionDtype)Ú    ABCSeries)Úisna)Ú CategoricalÚIndexÚ IntervalIndex)Ú dtype_to_unit)ÚDtypeObjÚIntervalLeftRightc    
óX—|}    t|«}
t|
«\}
} tj|«st    |
||«}nIt |t «r|jr-td«‚t|«}|js td«‚t|
|||||||¬«\} }t| |||    «S)a    
    Bin values into discrete intervals.
 
    Use `cut` when you need to segment and sort data values into bins. This
    function is also useful for going from a continuous variable to a
    categorical variable. For example, `cut` could convert ages to groups of
    age ranges. Supports binning into an equal number of bins, or a
    pre-specified array of bins.
 
    Parameters
    ----------
    x : array-like
        The input array to be binned. Must be 1-dimensional.
    bins : int, sequence of scalars, or IntervalIndex
        The criteria to bin by.
 
        * int : Defines the number of equal-width bins in the range of `x`. The
          range of `x` is extended by .1% on each side to include the minimum
          and maximum values of `x`.
        * sequence of scalars : Defines the bin edges allowing for non-uniform
          width. No extension of the range of `x` is done.
        * IntervalIndex : Defines the exact bins to be used. Note that
          IntervalIndex for `bins` must be non-overlapping.
 
    right : bool, default True
        Indicates whether `bins` includes the rightmost edge or not. If
        ``right == True`` (the default), then the `bins` ``[1, 2, 3, 4]``
        indicate (1,2], (2,3], (3,4]. This argument is ignored when
        `bins` is an IntervalIndex.
    labels : array or False, default None
        Specifies the labels for the returned bins. Must be the same length as
        the resulting bins. If False, returns only integer indicators of the
        bins. This affects the type of the output container (see below).
        This argument is ignored when `bins` is an IntervalIndex. If True,
        raises an error. When `ordered=False`, labels must be provided.
    retbins : bool, default False
        Whether to return the bins or not. Useful when bins is provided
        as a scalar.
    precision : int, default 3
        The precision at which to store and display the bins labels.
    include_lowest : bool, default False
        Whether the first interval should be left-inclusive or not.
    duplicates : {default 'raise', 'drop'}, optional
        If bin edges are not unique, raise ValueError or drop non-uniques.
    ordered : bool, default True
        Whether the labels are ordered or not. Applies to returned types
        Categorical and Series (with Categorical dtype). If True,
        the resulting categorical will be ordered. If False, the resulting
        categorical will be unordered (labels must be provided).
 
    Returns
    -------
    out : Categorical, Series, or ndarray
        An array-like object representing the respective bin for each value
        of `x`. The type depends on the value of `labels`.
 
        * None (default) : returns a Series for Series `x` or a
          Categorical for all other inputs. The values stored within
          are Interval dtype.
 
        * sequence of scalars : returns a Series for Series `x` or a
          Categorical for all other inputs. The values stored within
          are whatever the type in the sequence is.
 
        * False : returns an ndarray of integers.
 
    bins : numpy.ndarray or IntervalIndex.
        The computed or specified bins. Only returned when `retbins=True`.
        For scalar or sequence `bins`, this is an ndarray with the computed
        bins. If set `duplicates=drop`, `bins` will drop non-unique bin. For
        an IntervalIndex `bins`, this is equal to `bins`.
 
    See Also
    --------
    qcut : Discretize variable into equal-sized buckets based on rank
        or based on sample quantiles.
    Categorical : Array type for storing data that come from a
        fixed set of values.
    Series : One-dimensional array with axis labels (including time series).
    IntervalIndex : Immutable Index implementing an ordered, sliceable set.
 
    Notes
    -----
    Any NA values will be NA in the result. Out of bounds values will be NA in
    the resulting Series or Categorical object.
 
    Reference :ref:`the user guide <reshaping.tile.cut>` for more examples.
 
    Examples
    --------
    Discretize into three equal-sized bins.
 
    >>> pd.cut(np.array([1, 7, 5, 4, 6, 3]), 3)
    ... # doctest: +ELLIPSIS
    [(0.994, 3.0], (5.0, 7.0], (3.0, 5.0], (3.0, 5.0], (5.0, 7.0], ...
    Categories (3, interval[float64, right]): [(0.994, 3.0] < (3.0, 5.0] ...
 
    >>> pd.cut(np.array([1, 7, 5, 4, 6, 3]), 3, retbins=True)
    ... # doctest: +ELLIPSIS
    ([(0.994, 3.0], (5.0, 7.0], (3.0, 5.0], (3.0, 5.0], (5.0, 7.0], ...
    Categories (3, interval[float64, right]): [(0.994, 3.0] < (3.0, 5.0] ...
    array([0.994, 3.   , 5.   , 7.   ]))
 
    Discovers the same bins, but assign them specific labels. Notice that
    the returned Categorical's categories are `labels` and is ordered.
 
    >>> pd.cut(np.array([1, 7, 5, 4, 6, 3]),
    ...        3, labels=["bad", "medium", "good"])
    ['bad', 'good', 'medium', 'medium', 'good', 'bad']
    Categories (3, object): ['bad' < 'medium' < 'good']
 
    ``ordered=False`` will result in unordered categories when labels are passed.
    This parameter can be used to allow non-unique labels:
 
    >>> pd.cut(np.array([1, 7, 5, 4, 6, 3]), 3,
    ...        labels=["B", "A", "B"], ordered=False)
    ['B', 'B', 'A', 'A', 'B', 'B']
    Categories (2, object): ['A', 'B']
 
    ``labels=False`` implies you just want the bins back.
 
    >>> pd.cut([0, 1, 1, 2], bins=4, labels=False)
    array([0, 1, 1, 3])
 
    Passing a Series as an input returns a Series with categorical dtype:
 
    >>> s = pd.Series(np.array([2, 4, 6, 8, 10]),
    ...               index=['a', 'b', 'c', 'd', 'e'])
    >>> pd.cut(s, 3)
    ... # doctest: +ELLIPSIS
    a    (1.992, 4.667]
    b    (1.992, 4.667]
    c    (4.667, 7.333]
    d     (7.333, 10.0]
    e     (7.333, 10.0]
    dtype: category
    Categories (3, interval[float64, right]): [(1.992, 4.667] < (4.667, ...
 
    Passing a Series as an input returns a Series with mapping value.
    It is used to map numerically to intervals based on bins.
 
    >>> s = pd.Series(np.array([2, 4, 6, 8, 10]),
    ...               index=['a', 'b', 'c', 'd', 'e'])
    >>> pd.cut(s, [0, 2, 4, 6, 8, 10], labels=False, retbins=True, right=False)
    ... # doctest: +ELLIPSIS
    (a    1.0
     b    2.0
     c    3.0
     d    4.0
     e    NaN
     dtype: float64,
     array([ 0,  2,  4,  6,  8, 10]))
 
    Use `drop` optional when bins is not unique
 
    >>> pd.cut(s, [0, 2, 4, 6, 10, 10], labels=False, retbins=True,
    ...        right=False, duplicates='drop')
    ... # doctest: +ELLIPSIS
    (a    1.0
     b    2.0
     c    3.0
     d    3.0
     e    NaN
     dtype: float64,
     array([ 0,  2,  4,  6, 10]))
 
    Passing an IntervalIndex for `bins` results in those categories exactly.
    Notice that values not covered by the IntervalIndex are set to NaN. 0
    is to the left of the first bin (which is closed on the right), and 1.5
    falls between two bins.
 
    >>> bins = pd.IntervalIndex.from_tuples([(0, 1), (2, 3), (4, 5)])
    >>> pd.cut([0, 0.5, 1.5, 2.5, 4.5], bins)
    [NaN, (0.0, 1.0], NaN, (2.0, 3.0], (4.0, 5.0]]
    Categories (3, interval[int64, right]): [(0, 1] < (2, 3] < (4, 5]]
    z*Overlapping IntervalIndex is not accepted.z!bins must increase monotonically.)ÚrightÚlabelsÚ    precisionÚinclude_lowestÚ
duplicatesÚordered) Ú_preprocess_for_cutÚ_coerce_to_typeÚnpÚiterableÚ_nbins_to_binsÚ
isinstancerÚis_overlappingÚ
ValueErrorrÚis_monotonic_increasingÚ _bins_to_cutsÚ_postprocess_for_cut) ÚxÚbinsrrÚretbinsrr r!r"ÚoriginalÚx_idxÚ_Úfacs              úKH:\Change_password\venv_build\Lib\site-packages\pandas/core/reshape/tile.pyÚcutr64s´€ðz€HÜ  Ó "€EܘuÓ%H€Eˆ1ä ;‰;tÔ Ü˜e T¨5Ó1‰ä    Dœ-Ô    (Ø × Ò ÜÐIÓJÐ JôT‹{ˆØ×+Ò+ÜÐ@ÓAÐ AäØ Ø ØØØØ%ØØô    I€Cˆô    T¨7°HÓ =Ð=ócó6—|}t|«}t|«\}}t|«rtjdd|dz«n|}    |j «j «j|    «}
t|t|
«||d|¬«\} }
t| |
||«S)a!
    Quantile-based discretization function.
 
    Discretize variable into equal-sized buckets based on rank or based
    on sample quantiles. For example 1000 values for 10 quantiles would
    produce a Categorical object indicating quantile membership for each data point.
 
    Parameters
    ----------
    x : 1d ndarray or Series
    q : int or list-like of float
        Number of quantiles. 10 for deciles, 4 for quartiles, etc. Alternately
        array of quantiles, e.g. [0, .25, .5, .75, 1.] for quartiles.
    labels : array or False, default None
        Used as labels for the resulting bins. Must be of the same length as
        the resulting bins. If False, return only integer indicators of the
        bins. If True, raises an error.
    retbins : bool, optional
        Whether to return the (bins, labels) or not. Can be useful if bins
        is given as a scalar.
    precision : int, optional
        The precision at which to store and display the bins labels.
    duplicates : {default 'raise', 'drop'}, optional
        If bin edges are not unique, raise ValueError or drop non-uniques.
 
    Returns
    -------
    out : Categorical or Series or array of integers if labels is False
        The return type (Categorical or Series) depends on the input: a Series
        of type category if input is a Series else Categorical. Bins are
        represented as categories when categorical data is returned.
    bins : ndarray of floats
        Returned only if `retbins` is True.
 
    Notes
    -----
    Out of bounds values will be NA in the resulting Categorical object
 
    Examples
    --------
    >>> pd.qcut(range(5), 4)
    ... # doctest: +ELLIPSIS
    [(-0.001, 1.0], (-0.001, 1.0], (1.0, 2.0], (2.0, 3.0], (3.0, 4.0]]
    Categories (4, interval[float64, right]): [(-0.001, 1.0] < (1.0, 2.0] ...
 
    >>> pd.qcut(range(5), 3, labels=["good", "medium", "bad"])
    ... # doctest: +SKIP
    [good, good, medium, bad, bad]
    Categories (3, object): [good < medium < bad]
 
    >>> pd.qcut(range(5), 4, labels=False)
    array([0, 0, 1, 2, 3])
    réT)rrr r!) r#r$r r%ÚlinspaceÚ    to_seriesÚdropnaÚquantiler,rr-) r.Úqrr0rr!r1r2r3Ú    quantilesr/r4s             r5Úqcutr@s—€ðz€HÜ  Ó "€EܘuÓ%H€Eˆ1ä,6°q¬M”— ‘ ˜A˜q ! a¡%Ô(¸q€Ià ?‰?Ó × #Ñ #Ó %× .Ñ .¨yÓ 9€DäØ Ü ˆd‹ ØØØØô I€Cˆô    T¨7°HÓ =Ð=r7có<—t|«r|dkr td«‚|jdk(r td«‚|j«|j    «f}|\}}t |j «r5tj|«stj|«r td«‚||k(rÐt|j «rdt|j «}td¬«j|«}|jj||z
||z|dzd|¬«}t#|«S||dk7rd    t|«znd    z}||dk7rd    t|«znd    z }tj |||dzd
¬ «}t#|«St|j «r9t|j «}|jj|||dzd|¬«}ntj |||dzd
¬ «}||z
d    z}    |r|dxx|    zcc<t#|«S|d xx|    z cc<t#|«S) zl
    If a user passed an integer N for bins, convert this to a sequence of N
    equal(ish)-sized bins.
    r9z$`bins` should be a positive integer.rzCannot cut empty arrayz?cannot specify integer `bins` when input data contains infinity)ÚsecondsN)ÚstartÚendÚperiodsÚfreqÚunitgü©ñÒMbP?T)Úendpointéÿÿÿÿ)rr*ÚsizeÚminÚmaxrÚdtyper%ÚisinfÚ _is_dt_or_tdrrÚas_unitÚ_valuesÚ_generate_rangeÚabsr:r)
r2ÚnbinsrÚrngÚmnÚmxrGÚtdr/Úadjs
          r5r'r'`sû€ô
Ô˜E AšIÜÐ?Ó@Ð@à ‡zzQ‚ÜÐ1Ó2Ð2à 9‰9‹;˜Ÿ    ™    › Ð
$€CØ F€Bˆä˜Ÿ ™ Ô$¬"¯(©(°2¬,¼"¿(¹(À2¼,äØ Mó
ð    
ð
ˆR‚xÜ ˜Ÿ ™ Ô $ô! §¡Ó-ˆDÜ 1Ô%×-Ñ-¨dÓ3ˆBð—=‘=×0Ñ0ؘ2‘g 2¨¡7°E¸A±IÀDÈtð1óˆDô8 ‹;Ðð1  R¨1¢W%œ#˜b›'’/°%Ñ 7ˆBØ  R¨1¢W%œ#˜b›'’/°%Ñ 7ˆBä—;‘;˜r 2 u¨q¡y¸4Ô@ˆDô* ‹;Ðô' ˜Ÿ ™ Ô $ô
! §¡Ó-ˆDð—=‘=×0Ñ0ؘb¨%°!©)¸$ÀTð1ó‰Dô—;‘;˜r 2 u¨q¡y¸4Ô@ˆDؐB‰w˜%ÑˆÙ Ø ‹Gs‰N‹Gô ‹;Ð𠐋H˜‰O‹Hä ‹;Ðr7có —|s |€ td«‚|dvr td«‚t|t«r:|j|«}t    |d¬«}    t j ||    d¬«}
|
|fStj|«} t| «t|«kr-t|«dk7r|d    k(rtd
t|«›d «‚| }|rd nd }     |j|| ¬«}t|«}|r d|||dk(<t!|«|t|«k(z|dk(z}|j#«}|durû|t%|«s td«‚|€t'||||¬«}nR|r+tt)|««t|«k7r td«‚t|«t|«dz
k7r td«‚tt+|dd«t«s0t |tt)|««t|«k(r|nd|¬«}t-j.||d«tj0||dz
«}
|
|fS|dz
}
|rD|
j3t,j4«}
t-j.|
|t,j6«|
|fS#t$r’} |jjdk(r td«| ‚|jj|jjcxk(rdk(rnn td«| ‚|jjdk(r td«| ‚‚d} ~ wwxYw)Nz.'labels' must be provided if 'ordered = False')ÚraiseÚdropzHinvalid value for 'duplicates' parameter, valid options are: raise, dropT)r"F)rMÚvalidateér[zBin edges must be unique: z@.
You can drop duplicate edges by setting the 'duplicates' kwargÚleftr)ÚsideÚmz!bins must be of timedelta64 dtypeÚMzHCannot use timezone-naive bins with timezone-aware values, or vice-versaz bins must be of datetime64 dtyper9rzJBin labels must either be False, None or passed in as a list-like argument)rr zNlabels must be unique if ordered=True; pass ordered=False for duplicate labelsz9Bin labels must be one fewer than the number of bin edgesrM)Ú
categoriesr")r*r(rÚ get_indexerrrÚ
from_codesÚalgosÚuniqueÚlenÚreprÚ searchsortedÚ    TypeErrorrMÚkindr rÚanyrÚ_format_labelsÚsetÚgetattrr%ÚputmaskÚtake_ndÚastypeÚfloat64Únan)r2r/rrrr r!r"ÚidsÚ    cat_dtypeÚresultÚ unique_binsr`ÚerrÚna_maskÚhas_nass                r5r,r,s€ñ v~ÜÐIÓJÐJàÐ*Ñ*ÜØ Vó
ð    
ô $œ Ô&à×јuÓ%ˆÜ$ T°4Ô8ˆ    Ü×'Ñ'¨°9ÀuÔMˆØtˆ|Ðä—,‘,˜tÓ$€KÜ
ˆ;Óœ#˜d›)Ò#¬¨D«    °QªØ ˜Ò  ÜØ,¬T°$«Z¨Lð9QðRóð ðˆá/4¡V¸'€DðØ×Ñ ¨DÐÓ1ˆô ˜cÓ
"€CáØ !ˆˆET˜!‘WÑ Ñä5‹k˜S¤C¨£IÑ-Ñ.°#¸±(Ñ;€G؏k‰k‹m€Gà UÑØ¤,¨vÔ"6Üð%óð ð
ˆ>Ü#ؐi u¸^ô‰FñœœS ›[Ó)¬S°«[Ò8Üð'óð ô
6‹{œc $›i¨!™mÒ+Ü ØOóðôœ' &¨'°4Ó8Ô:JÔKÜ ØÜ%(¬¨V«Ó%5¼¸V»Ò%D™6È$ØôˆFô      
‰
3˜ Ô#Ü—‘˜v s¨Q¡wÓ/ˆð 4ˆ<Ðð q‘ˆÙ Ø—]‘]¤2§:¡:Ó.ˆFÜ J‰Jv˜w¬¯©Ô /à 4ˆ<Ðøôy ò ð ;‰;× Ñ ˜sÒ "ÜÐ@ÓAÀsÐ JØ [‰[× Ñ  §¡§¡Ô 7°CÕ 7Üð óðð ð[‰[× Ñ  Ò $ÜÐ?Ó@ÀcÐ Ià ûð úsà   I2É2    L É;B LÌL có —d}t|j«r |j}nžt|j«r |jtj
«}nit |jt«rOt|j«r:|jtjtj¬«}t|«}t|«|fS)z¥
    if the passed data is of datetime/timedelta, bool or nullable int type,
    this method converts it to numeric so that cut or qcut method can
    handle it
    N)rMÚna_value) rOrMr rsr%Úint64r(rrÚto_numpyrtrur)r.rMÚx_arrs   r5r$r$s‰€ð "€EäA—G‘GÔØ—‘‰Ü    q—w‘wÔ    à H‰H”R—X‘XÓ ‰ô
 
A—G‘Gœ^Ô    ,Ô1AÀ!Ç'Á'Ô1JØ—
‘
¤§¡´b·f±f
Ó=ˆÜ %‹Lˆä ‹8Uˆ?Ðr7cóR—t|t«xstj|d«S)NÚmM)r(rr
Ú is_np_dtype)rMs r5rOrOs!€ô eœ_Ó -Ò M´·±ÀÈÓ1MÐMr7c󔇇    —|rdnd}t|j«rt|j«Š    d„}ˆ    fd„}nt‰|«Šˆfd„}ˆfd„}|Dcgc]
}||«‘Œ }}|r|r||d«|d<t|j«r t    |«|«j ‰    «}t j||¬«Scc}w)    z%based on the dtype, return our labelsrr_có—|S©N©)r.s r5ú<lambda>z _format_labels.<locals>.<lambda>1s€˜a€r7cóB•—|td‰¬«j‰«z
S)Nr9)rG)rrP)r.rGs €r5r‰z _format_labels.<locals>.<lambda>2sø€˜1œy¨°Ô6×>Ñ>¸tÓDÑD€r7có•—t|‰«Sr‡)Ú _round_frac©r.rs €r5r‰z _format_labels.<locals>.<lambda>5sø€œk¨!¨YÓ7€r7có•—|d‰ zz
S)Né
rˆrs €r5r‰z _format_labels.<locals>.<lambda>6sø€˜1˜r y jÑ1Ñ1€r7r)Úclosed)rOrMrÚ_infer_precisionÚtyperPrÚ from_breaks)
r/rrr rÚ    formatterÚadjustÚbÚbreaksrGs
 `       @r5rnrn"s¹ù€ñ,1¡°f€FôD—J‘JÔô˜TŸZ™ZÓ(ˆÙˆ    ÛD‰ä$ Y°Ó5ˆ    Û7ˆ    Û1ˆà$(Ö )˜q‰i˜lÐ )€FÐ )Ù ‘á˜6 !™9Ó%ˆˆq‰    äD—J‘JÔà”d“˜FÓ#×+Ñ+¨DÓ1ˆä × $Ñ $ V°FÔ ;Ð;ùò*sÁCcó”—t|dd«}|€tj|«}|jdk7r t    d«‚t |«S)z‹
    handles preprocessing for cut where we convert passed
    input to array, strip the index information and store it
    separately
    ÚndimNr9z!Input array must be 1 dimensional)rpr%Úasarrayr™r*r)r.r™s  r5r#r#DsD€ô 1f˜dÓ #€DØ €|Ü J‰Jq‹MˆØ‡vv‚{ÜÐ<Ó=Ð=ä ‹8€Or7cóä—t|t«r(|j||j|j¬«}|s|St|t
«r!t |j«r |j}||fS)z’
    handles post processing for the cut method where
    we combine the index information if the originally passed
    datatype was a series
    )ÚindexÚname)    r(rÚ _constructorrœrrrrMrQ)r4r/r0r1s    r5r-r-Us^€ô (œIÔ&Ø×#Ñ# C¨x¯~©~ÀHÇMÁMÐ#ÓRˆá ؈
ä$œÔÔ#3°D·J±JÔ#?؏|‰|ˆà ˆ9Ðr7c    ó(—tj|«r|dk(r|Stj|«\}}|dk(rBttjtj
t |«««« dz
|z}n|}tj||«S)z7
    Round the fractional part of the given number
    rr9)r%ÚisfiniteÚmodfÚintÚfloorÚlog10rSÚaround)r.rÚfracÚwholeÚdigitss     r5rŒrŒgsu€ô ;‰;qŒ>˜Q !šV؈ä—g‘g˜a“j‰ ˆˆeØ AŠ:Üœ"Ÿ(™(¤2§8¡8¬C°«IÓ#6Ó7Ó8Ð8¸1Ñ<¸yÑH‰FàˆF܏y‰y˜˜FÓ#Ð#r7c
óì—t|d«D]_}tj|Dcgc]}t||«‘Œc}«}t    j
|«j |j k(sŒ]|cS|Scc}w)z8
    Infer an appropriate precision for _round_frac
    é)Úranger%ršrŒrfrgrJ)Úbase_precisionr/rr–Úlevelss     r5r‘r‘vsi€ô˜>¨2Ó.òˆ    Ü—‘ÀÖE¸1œ[¨¨IÕ6ÒEÓFˆÜ <‰<˜Ó × $Ñ $¨¯    ©    Ó 1ØÒ ðð ÐùòFs£A1
)TNFéFr[T) rÚboolr0r¯rr¢r r¯r!Ústrr"r¯)NFr®r[)r0r¯rr¢r!r°)r2rrTr¢rr¯Úreturnr)TNr®Fr[T)r2rr/rrr¯rr¢r r¯r!r°r"r¯)r.rr±ztuple[Index, DtypeObj | None])rMrr±r¯)TF)r/rrr¢rr¯r r¯)r±r)r0r¯)rr¢)r¬r¢r/rr±r¢)5Ú__doc__Ú
__future__rÚtypingrrrrÚnumpyr%Ú pandas._libsrr    r
Úpandas.core.dtypes.commonr r r rrrÚpandas.core.dtypes.dtypesrrrÚpandas.core.dtypes.genericrÚpandas.core.dtypes.missingrÚpandasrrrÚpandas.core.algorithmsÚcoreÚ
algorithmsrfÚpandas.core.arrays.datetimelikerÚpandas._typingrrr6r@r'r,r$rOrnr#r-rŒr‘rˆr7r5ú<module>rÁs²ðñõ#÷óó÷ñ÷ ÷÷ñõ
1Ý+÷ñ÷
'Ð&Ý9á÷ðØ ØØØ ØØðX>ð ðX>ð
ð X>ð ð X>ððX>ððX>ðóX>ð| ØØØð N>ðð    N>ð
ð N>ð ó N>ób:ð@Ø ØØ ØØðdØ ðdà
ðdð ðdð
ð dð ð dððdðódóNó0NðØ ð    <Ø
ð<àð<ð ð<ðó    <óDó"ó$ $ôr7