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
Ë
oñúhÒBãóF—ddlmZddlmZddlZddlmZddlmZm    Z    m
Z
m Z ddl Z ddl mZddlmZmZddlmZerdd    lmZ                d                                                            dd
„Z        d                                    dd „Zdd „Zdd „Z        d                            dd„Zdd„ZGd„d«ZGd„d«Zdd d„Zgd¢Zy)!é)Ú annotations)ÚwrapsN)Údedent)Ú TYPE_CHECKINGÚAnyÚCallableÚcast)Úcache_readonly)ÚFÚT)Úfind_stack_level)ÚMappingc ó‡‡ —|xs ‰j}‰xstŠ|xs|›d|›dŠ t‰«d ˆˆˆˆ fd„ «}|xsd|›d}d‰j›}‰jrމjj    d«dkr t |«‚‰jj dd«\}    }
} } |    s| r |
s t |«‚td    |
j«›d
|›d |›d t| «›«|_|S)a
    Return a new function that emits a deprecation warning on use.
 
    To use this method for a deprecated function, another function
    `alternative` with the same signature must exist. The deprecated
    function will emit a deprecation warning, and in the docstring
    it will contain the deprecation directive with the provided version
    so it can be detected for future removal.
 
    Parameters
    ----------
    name : str
        Name of function to deprecate.
    alternative : func
        Function to use instead.
    version : str
        Version of pandas in which the method has been deprecated.
    alt_name : str, optional
        Name to use in preference of alternative.__name__.
    klass : Warning, default FutureWarning
    stacklevel : int, default 2
    msg : str
        The message to display in the warning.
        Default is '{name} is deprecated. Use {alt_name} instead.'
    z is deprecated, use ú     instead.cóD•—tj‰‰‰¬«‰|i|¤ŽS)N©Ú
stacklevel)ÚwarningsÚwarn)ÚargsÚkwargsÚ alternativeÚklassrÚ warning_msgs  €€€€úJH:\Change_password\venv_build\Lib\site-packages\pandas/util/_decorators.pyÚwrapperzdeprecate.<locals>.wrapper?s#ø€ä ‰ k 5°ZÕ@Ù˜DÐ+ FÑ+Ð+ózUse `z
` instead.z§deprecate needs a correctly formatted docstring in the target function (should have a one liner short summary, and opening quotes should be in their own line). Found:
ú
éz    
        z
 
        .. deprecated:: z
            z
 
 
        ©ÚreturnúCallable[..., Any])    Ú__name__Ú FutureWarningrÚ__doc__ÚcountÚAssertionErrorÚsplitrÚstrip)ÚnamerÚversionÚalt_namerrÚmsgrÚ doc_error_msgÚempty1ÚsummaryÚempty2Ú
doc_stringrs `  ``       @rÚ    deprecater3s0û€ðDÒ/˜;×/Ñ/€HØ Ò "”]€EØÒI˜D˜6Ð!5°h°Z¸yÐI€Kä
ˆ;Ó÷,óð,ð
-5˜˜
 *Ð-€Cð    ð&×-Ñ-Ð.ð    0ðð×ÒØ × Ñ × $Ñ $ TÓ *¨QÒ .Ü  Ó/Ð /Ø.9×.AÑ.A×.GÑ.GÈÈaÓ.PÑ+ˆ˜ Ù ‘V¡GÜ  Ó/Ð /Ü ð    Ø    ‰‹Ððà ˜    ð" Ø ˆEð    ä    
Ó    Ðð   ó
ˆŒð €Nrcóh‡‡‡‡—‰"t‰d«st‰«s td«‚dˆˆˆˆfd„ }|S)a¶
    Decorator to deprecate a keyword argument of a function.
 
    Parameters
    ----------
    old_arg_name : str
        Name of argument in function to deprecate
    new_arg_name : str or None
        Name of preferred argument in function. Use None to raise warning that
        ``old_arg_name`` keyword is deprecated.
    mapping : dict or callable
        If mapping is present, use it to translate old arguments to
        new arguments. A callable must do its own value checking;
        values not found in a dict will be forwarded unchanged.
 
    Examples
    --------
    The following deprecates 'cols', using 'columns' instead
 
    >>> @deprecate_kwarg(old_arg_name='cols', new_arg_name='columns')
    ... def f(columns=''):
    ...     print(columns)
    ...
    >>> f(columns='should work ok')
    should work ok
 
    >>> f(cols='should raise warning')  # doctest: +SKIP
    FutureWarning: cols is deprecated, use columns instead
      warnings.warn(msg, FutureWarning)
    should raise warning
 
    >>> f(cols='should error', columns="can't pass do both")  # doctest: +SKIP
    TypeError: Can only specify 'cols' or 'columns', not both
 
    >>> @deprecate_kwarg('old', 'new', {'yes': True, 'no': False})
    ... def f(new=False):
    ...     print('yes!' if new else 'no!')
    ...
    >>> f(old='yes')  # doctest: +SKIP
    FutureWarning: old='yes' is deprecated, use new=True instead
      warnings.warn(msg, FutureWarning)
    yes!
 
    To raise a warning that a keyword will be removed entirely in the future
 
    >>> @deprecate_kwarg(old_arg_name='cols', new_arg_name=None)
    ... def f(cols='', another_param=''):
    ...     print(cols)
    ...
    >>> f(cols='should raise warning')  # doctest: +SKIP
    FutureWarning: the 'cols' keyword is deprecated and will be removed in a
    future version please takes steps to stop use of 'cols'
    should raise warning
    >>> f(another_param='should not raise warning')  # doctest: +SKIP
    should not raise warning
 
    >>> f(cols='should raise warning', another_param='')  # doctest: +SKIP
    FutureWarning: the 'cols' keyword is deprecated and will be removed in a
    future version please takes steps to stop use of 'cols'
    should raise warning
    ÚgetzAmapping from old to new argument values must be dict or callable!cóV•‡—t‰«dˆˆˆˆˆfd„ «}tt|«S)Nc
óF•—|j‰d«}|‰€Cdt‰«›dt‰«›}tj|t‰    ¬«||‰<‰|i|¤ŽS‰Ht ‰«r    ‰|«}n‰j ||«}d‰›dt|«›d‰›dt|«›d    }n|}dt‰«›dt‰«›d}tj|t‰    ¬«|j ‰«&dt‰«›dt‰«›d    }t|«‚||‰<‰|i|¤ŽS)
Nzthe ze keyword is deprecated and will be removed in a future version. Please take steps to stop the use of rú=z keyword is deprecated, use rzCan only specify z or z , not both.)ÚpopÚreprrrr$Úcallabler5Ú    TypeError)
rrÚ old_arg_valuer-Ú new_arg_valueÚfuncÚmappingÚ new_arg_nameÚ old_arg_namers
     €€€€€rrz:deprecate_kwarg.<locals>._deprecate_kwarg.<locals>.wrapper­ssø€à"ŸJ™J |°TÓ:ˆMàÑ(ØÐ'àœt LÓ1Ð2ð34ä48¸Ó4FÐ3GðIðô
—M‘M #¤}ÀÕLØ+8F˜<Ñ(Ù Ð0¨Ñ0Ð0àÐ(Ü Ô(Ù(/° Ó(>™ à(/¯ © °MÀ=Ó(Q˜ à˜|˜n¨A¬d°=Ó.AÐ-BðC+à'˜.¨¬$¨}Ó*=Ð)>¸iðIñð %2Màœt LÓ1Ð2ð3Ü# LÓ1Ð2°)ð=ðô
— ‘ ˜c¤=¸ZÕHØ—:‘:˜lÓ+Ð7à+¬D°Ó,>Ð+?ð@Ü" <Ó0Ð1°ð>ðô$ C›.Ð(Ø'4|Ñ$Ù˜Ð( Ñ(Ð (rr )rr    r )r?rr@rArBrs` €€€€rÚ_deprecate_kwargz)deprecate_kwarg.<locals>._deprecate_kwarg¬s.ù€Ü    ˆt‹÷'    )ð'    )ó
ð'    )ôR”AwÓÐr©r?r r!r )Úhasattrr;r<)rBrAr@rrCs```` rÚdeprecate_kwargrFds?û€ðFФ7¨7°EÔ#:Ä8ÈGÔCTÜØ Oó
ð    
÷+ ð+ ðZ Ðrcó֗d|vr|jd«|syt|«dk(r    d|d›dS|d}dj|d    dDcgc]
}d|zdz‘Œ c}«}d
|›d |›dScc}w) a5
    Convert the allow_args argument (either string or integer) of
    `deprecate_nonkeyword_arguments` function to a string describing
    it to be inserted into warning message.
 
    Parameters
    ----------
    allowed_args : list, tuple or int
        The `allowed_args` argument for `deprecate_nonkeyword_arguments`,
        but None value is not allowed.
 
    Returns
    -------
    str
        The substring describing the argument list in best way to be
        inserted to the warning message.
 
    Examples
    --------
    `format_argument_list([])` -> ''
    `format_argument_list(['a'])` -> "except for the arguments 'a'"
    `format_argument_list(['a', 'b'])` -> "except for the arguments 'a' and 'b'"
    `format_argument_list(['a', 'b', 'c'])` ->
        "except for the arguments 'a', 'b' and 'c'"
    ÚselfÚéz except for the argument 'rú'éÿÿÿÿz, Nz except for the arguments z and ')ÚremoveÚlenÚjoin)Ú
allow_argsÚlastÚxrs    rÚ_format_argument_listrSÜsŠ€ð4ÑØ×ј&Ô!Ù ØÜ     ˆZ‹˜AÒ    Ø+¨J°q©M¨?¸!Ð<Ð<à˜"‰~ˆØy‰y°¸C¸R°ÖA¨A˜# ™' C›-ÒAÓBˆØ+¨D¨6°¸°v¸QÐ?Ð?ùòBsÁA&có—|€yd|›S)zCSpecify which version of pandas the deprecation will take place in.zIn a future version of pandaszStarting with pandas version ©)r+s rÚfuture_version_msgrVs€à€Ø.à.¨w¨iÐ8Ð8rc󇇇—ˆˆˆfd„}|S)a
    Decorator to deprecate a use of non-keyword arguments of a function.
 
    Parameters
    ----------
    version : str, optional
        The version in which positional arguments will become
        keyword-only. If None, then the warning message won't
        specify any particular version.
 
    allowed_args : list, optional
        In case of list, it must be the list of names of some
        first arguments of the decorated functions that are
        OK to be given as positional arguments. In case of None value,
        defaults to list of all arguments not having the
        default value.
 
    name : str, optional
        The specific name of the function to show in the warning
        message. If None, then the Qualified name of the function
        is used.
    cóö•‡‡‡‡—tj‰«}‰    ‰    Šnn|jj«Dcgc]J}|j|j
|j fvr$|j|jur |j‘ŒLc}Š|jj«Dcgc]R}|j|j
|j fvr*|j‰vr|j|j¬«n|‘ŒT}}|jd„¬«|j|¬«}t‰«Št‰ «›d‰
xs ‰j›dŠt!‰«ˆˆˆˆfd„«}||_|Scc}wcc}w)N©Úkindcó—|jS©NrY)Úps rú<lambda>zBdeprecate_nonkeyword_arguments.<locals>.decorate.<locals>.<lambda><s
€ a§f¡f€r)Úkey)Ú
parametersz all arguments of z!{arguments} will be keyword-only.c󪕗t|«‰kDr=tj‰jt    ‰«¬«t
t «¬«‰|i|¤ŽS)N)Ú    argumentsr)rNrrÚformatrSr$r )rrrPr?r-Únum_allow_argss  €€€€rrzAdeprecate_nonkeyword_arguments.<locals>.decorate.<locals>.wrapperEsJø€ä4‹y˜>Ò)Ü— ‘ Ø—J‘JÔ)>¸zÓ)JJÓKÜ!Ü/Ó1õñ
˜Ð( Ñ(Ð (r)ÚinspectÚ    signaturer`ÚvaluesrZÚPOSITIONAL_ONLYÚPOSITIONAL_OR_KEYWORDÚdefaultÚemptyr*ÚreplaceÚ KEYWORD_ONLYÚsortrNrVÚ __qualname__rÚ __signature__) r?Úold_sigr]Ú
new_paramsÚnew_sigrrPr-rdÚ allowed_argsr*r+s `     @@@€€€rÚdecoratez0deprecate_nonkeyword_arguments.<locals>.decorate&suü€Ü×#Ñ# DÓ)ˆà Ð #Ø%‰Jð!×+Ñ+×2Ñ2Ó4öàØ—6‘6˜a×/Ñ/°×1HÑ1HÐIÑIØ—I‘I §¡Ñ(ð—“òˆJð×'Ñ'×.Ñ.Ó0ö
ðð    —‘˜1×,Ñ,¨a×.EÑ.EÐFÑFØ—F‘F *Ñ,ð I‰I˜1Ÿ>™>ˆIÔ *ð
ñ  ð
ˆ
ð
ð    ‰Ñ,ˆÔ-Ø—/‘/¨Z/Ó8ˆä˜Z›ˆä! 'Ó*Ð+Ð+=ØÒ(t×(Ñ(Ð)Ð)Lð Nð     ô
 
ˆt‹ö    )ó
ð    )ð!(ˆÔ؈ùòMùò
s ¼AE1Â*AE6rU)r+rtr*rus``` rÚdeprecate_nonkeyword_argumentsrv
sú€ö8,ð\ €Orc󇇗dˆˆfd„ }|S)aÔ
    A decorator to take docstring templates, concatenate them and perform string
    substitution on them.
 
    This decorator will add a variable "_docstring_components" to the wrapped
    callable to keep track the original docstring template for potential usage.
    If it should be consider as a template, it will be saved as a string.
    Otherwise, it will be saved as callable, and later user __doc__ and dedent
    to get docstring.
 
    Parameters
    ----------
    *docstrings : None, str, or callable
        The string / docstring / docstring template to be appended in order
        after default docstring under callable.
    **params
        The string which would be used to format docstring template.
    c    óf•—g}|jr$|jt|j««‰D][}|€Œt|d«r|j    |j
«Œ.t |t«s |jsŒK|j|«Œ]|Dcgc]4}t |t«r t‰«dkDr|jdi‰¤Žn|‘Œ6}}dj|Dcgc]-}t |t«r|nt|jxsd«‘Œ/c}«|_||_|Scc}wcc}w)NÚ_docstring_componentsrrIrU) r%ÚappendrrEÚextendryÚ
isinstanceÚstrrNrcrO)Ú    decoratedÚdocstring_componentsÚ    docstringÚ    componentÚparams_appliedÚ
docstringsÚparamss     €€rÚ    decoratorzdoc.<locals>.decoratorksFø€à57ÐØ × Ò Ø  × 'Ñ '¬¨y×/@Ñ/@Ó(AÔ Bà#ò    7ˆIØÐ ØÜyÐ"9Ô:Ø$×+Ñ+Ø×3Ñ3õô˜I¤sÔ+¨y×/@Ó/@Ø$×+Ñ+¨IÕ6ð    7ð2ö    
ðô˜)¤SÔ)¬c°&«k¸Aªoð ˆI× Ñ Ñ &˜vÒ &àñ ð
ˆð
ðŸG™Gð
"0ö     ðô˜i¬Ô-ñä˜I×-Ñ-Ò3°Ó4ñ5ò ó
ˆ    Ôð !ð    Ô'ðÐùò)
ùò s Â9D)Ã"2D.)r~r r!r rU)rƒr„r…s`` rÚdocr†Wsù€ö($ðL Ðrcó(—eZdZdZdd„Zdd„Zdd„Zy)Ú Substitutiona/
    A decorator to take a function's docstring and perform string
    substitution on it.
 
    This decorator should be robust even if func.__doc__ is None
    (for example, if -OO was passed to the interpreter)
 
    Usage: construct a docstring.Substitution with a sequence or
    dictionary suitable for performing substitution; then
    decorate a suitable function with the constructed object. e.g.
 
    sub_author_name = Substitution(author='Jason')
 
    @sub_author_name
    def some_function(x):
        "%(author)s wrote this function"
 
    # note that some_function.__doc__ is now "Jason wrote this function"
 
    One can also use positional arguments.
 
    sub_first_last_names = Substitution('Edgar Allen', 'Poe')
 
    @sub_first_last_names
    def some_function(x):
        "%s %s wrote the Raven"
    có8—|r |r td«‚|xs||_y)Nz+Only positional or keyword args are allowed)r'r„©rHrrs   rÚ__init__zSubstitution.__init__µs€Ù ‘FÜ Ð!NÓOÐ Oà’n˜fˆ rcó^—|jxr|j|jz|_|Sr\)r%r„)rHr?s  rÚ__call__zSubstitution.__call__»s$€Ø—|‘|ÒB¨¯ © °t·{±{Ñ(BˆŒ ؈ rcór—t|jt«r|jj|i|¤Žyy)z8
        Update self.params with supplied args.
        N)r|r„ÚdictÚupdaterŠs   rrzSubstitution.update¿s0€ô d—k‘k¤4Ô (Ø ˆDK‰K× Ñ  Ð /¨Ó /ð )rN)r!ÚNonerD)r#Ú
__module__ror%r‹rrrUrrrˆrˆ˜s„ñó8%ó ô0rrˆcó.—eZdZUdZded<ddd„Zd    d„Zy)
ÚAppenderaf
    A function decorator that will append an addendum to the docstring
    of the target function.
 
    This decorator should be robust even if func.__doc__ is None
    (for example, if -OO was passed to the interpreter).
 
    Usage: construct a docstring.Appender with a string to be joined to
    the original docstring. An optional 'join' parameter may be supplied
    which will be used to join the docstring and addendum. e.g.
 
    add_copyright = Appender("Copyright (c) 2009", join='
')
 
    @add_copyright
    def my_dog(has='fleas'):
        "This docstring will have a copyright below"
        pass
    ú
str | NoneÚaddendumcó^—|dkDrt||¬«|_||_y||_||_y)Nr)Úindents)Úindentr–rO)rHr–rOr˜s    rr‹zAppender.__init__Ýs0€Ø QŠ;Ü" 8°WÔ=ˆDŒMðˆ    ð%ˆDŒM؈    rcó—|jr |jnd|_|jr |jnd|_|j|jg}t|jj|««|_|S)NrI)r%r–rrO)rHr?Údocitemss   rrzAppender.__call__äsX€Ø'+§|¢|t—|’|¸ˆŒ Ø)-¯ª˜Ÿ š ¸BˆŒ Ø—L‘L $§-¡-Ð0ˆÜ˜dŸi™iŸn™n¨XÓ6Ó7ˆŒ ؈ rN)rIr)r–r•rOr}r˜Úintr!r‘)r?r r!r )r#r’ror%Ú__annotations__r‹rrUrrr”r”Çs…ñð&Óôôrr”cóš—|rt|t«sydjdgdg|zz«}|j|jd««S)NrIrz    )r|r}rOr()Útextr˜Újointexts   rr™r™ìsE€Ù ”z $¬Ô,ØØw‰w˜v  ¨7Ñ 2Ñ2Ó3€HØ =‰=˜Ÿ™ DÓ)Ó *Ð*r)r”r
r3rFrvr†rVrˆ)NNéN)r*r}rr"r+r}r,r•rztype[Warning] | Nonerrœr-r•r!úCallable[[F], F])Nr¡)
rBr}rAr•r@z/Mapping[Any, Any] | Callable[[Any], Any] | Nonerrœr!r¢)rPz    list[str]r!r})r+r•r!r})NN)r+r•rtzlist[str] | Noner*r•r!r¢)rƒzNone | str | Callabler!r¢)rJ)rŸr•r˜rœr!r}) Ú
__future__rÚ    functoolsrreÚtextwraprÚtypingrrrr    rÚpandas._libs.propertiesr
Úpandas._typingr r Úpandas.util._exceptionsr Úcollections.abcrr3rFrSrVrvr†rˆr”r™Ú__all__rUrrú<module>r¬sKðÝ"åÛÝ÷óó å2÷õ5áÝ'ð Ø"&ØØðHØ
ðHà#ðHððHðð    Hð
 ð Hð ð Hð
ðHðóHð\@DØð    uØðuàðuð=ðuðð    uð
ó uóp#@óL9ð&*ØðJØ ðJà"ðJð ðJðó    JóZ:÷B,0ñ,0÷^"ñ"ôJ+ò     r