hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
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
Ë
oñúhncãó—UdZddlmZddlmZmZddlZddlmZm    Z    m
Z
m Z m Z m Z ddlZddlmZmZddlmZerddlmZmZGd    „d
e «ZGd „d e «ZiZd ed<iZded<iZded<dgZded<Gd„dee«Z d9d„Z!d:d;d„Z"d<d„Z#d=d>d„Z$d:d?d„Z%d@d„Z&Gd„d«Z'Gd „d!e e«Z(d"Z)d#Z*d$Z+d%Z,e(e"e)«a-e(e#e*«a.e(e%e,«Z/e(e$e+«Z0e'e«Z1Gd&„d'e«Z2            dA                                            dBd(„a3            dC                                    dDd)„Z4dEd*„Z5dFd+„Z6dGd,„Z7dHd-„Z8dHd.„Z9dId/„Z:dGd0„Z;dJd1„Z<dKdLd2„Z=edMd3„«Z>dNd4„Z?dOd5„Z@dOd6„ZAdPd7„ZBe?eC«ZDe?eE«ZFe?eG«ZHe?eI«ZJe@eIeKf«ZLdQd8„ZMy)Raò
The config module holds package-wide configurables and provides
a uniform API for working with them.
 
Overview
========
 
This module supports the following requirements:
- options are referenced using keys in dot.notation, e.g. "x.y.option - z".
- keys are case-insensitive.
- functions should accept partial/regex keys, when unambiguous.
- options can be registered by modules at import time.
- options can be registered at init-time (via core.config_init)
- options have a default value, and (optionally) a description and
  validation function associated with them.
- options can be deprecated, in which case referencing them
  should produce a warning.
- deprecated options can optionally be rerouted to a replacement
  so that accessing a deprecated option reroutes to a differently
  named option.
- options can be reset to their default value.
- all option can be reset to their default value at once.
- all options in a certain sub - namespace can be reset at once.
- the user can set / get / reset or ask for the description of an option.
- a developer can register and mark an option as deprecated.
- you can register a callback to be invoked when the option value
  is set or reset. Changing the stored value is considered misuse, but
  is not verboten.
 
Implementation
==============
 
- Data is stored using nested dictionaries, and should be accessed
  through the provided API.
 
- "Registered options" and "Deprecated options" have metadata associated
  with them, which are stored in auxiliary dictionaries keyed on the
  fully-qualified key, e.g. "x.y.z.option".
 
- the config_init module is imported by the package's __init__.py file.
  placing any register_option() calls there will ensure those options
  are available as soon as pandas is loaded. If you use register_option
  in a module, it will only be available after that module is imported,
  which you should be aware of.
 
- `config_prefix` is a context_manager (for use with the `with` keyword)
  which can save developers some typing, see the docstring.
 
é)Ú annotations)ÚContextDecoratorÚcontextmanagerN)Ú TYPE_CHECKINGÚAnyÚCallableÚGenericÚ
NamedTupleÚcast)ÚFÚT)Úfind_stack_level)Ú    GeneratorÚIterablecó6—eZdZUded<ded<ded<ded<y)ÚDeprecatedOptionÚstrÚkeyú
str | NoneÚmsgÚrkeyÚ removal_verN©Ú__name__Ú
__module__Ú __qualname__Ú__annotations__©óúHH:\Change_password\venv_build\Lib\site-packages\pandas/_config/config.pyrrQs…Ø     ƒHØ    ƒOØ
ÓØÔrrcó@—eZdZUded<ded<ded<ded<ded    <y
) ÚRegisteredOptionrrÚobjectÚdefvalÚdocúCallable[[object], Any] | NoneÚ    validatorúCallable[[str], Any] | NoneÚcbNrrrr r"r"Xs…Ø     ƒHØ ƒNØ     ƒHØ-Ó-Ø#Ô#rr"zdict[str, DeprecatedOption]Ú_deprecated_optionszdict[str, RegisteredOption]Ú_registered_optionsúdict[str, Any]Ú_global_configÚallú    list[str]Ú_reserved_keyscó—eZdZdZy)Ú OptionErrorzÛ
    Exception raised for pandas.options.
 
    Backwards compatible with KeyError checks.
 
    Examples
    --------
    >>> pd.options.context
    Traceback (most recent call last):
    OptionError: No such option
    N)rrrÚ__doc__rrr r2r2ms„ò
rr2cóì—t|«}t|«dk(r$|s t|«tdt    |«›«‚t|«dkDr td«‚|d}|s t|«t |«}|S)NrzNo such keys(s): ézPattern matched multiple keys)Ú_select_optionsÚlenÚ_warn_if_deprecatedr2ÚreprÚ_translate_key)ÚpatÚsilentÚkeysrs    r Ú_get_single_keyr>ss€Ü ˜3Ó €DÜ
ˆ4ƒyA‚~ÙÜ  Ô $ÜÐ-¬d°3«i¨[Ð9Ó:Ð:Ü
ˆ4ƒy1‚}ÜÐ9Ó:Ð:Ø
ˆq‰'€Cá ܘCÔ ä
˜Ó
€Cà €Jrcó@—t||«}t|«\}}||S©N)r>Ú    _get_root)r;r<rÚrootÚks     r Ú _get_optionrD‘s&€Ü
˜#˜vÓ
&€Cô˜‹nG€Dˆ!Ø ‰7€NrcóZ—t|«}|r|dzdk7r td«‚|jdd«}|r1tt    |j «««}t d|›d«‚t|ddd…|ddd…«D]Ÿ\}}t||«}t|«}|r|jr|j|«t|«\}    }
||    |
<|jsŒ\|r1tjd    ¬
«5|j|«ddd«Œ|j|«Œ¡y#1swYŒ¬xYw) Nérz4Must provide an even number of non-keyword argumentsr<Fz2_set_option() got an unexpected keyword argument "ú"r5T)Úrecord)r7Ú
ValueErrorÚpopÚnextÚiterr=Ú    TypeErrorÚzipr>Ú_get_registered_optionr'rAr)ÚwarningsÚcatch_warnings) ÚargsÚkwargsÚnargsr<ÚkwargrCÚvrÚorBÚk_roots            r Ú _set_optionrY™s€ä ‹I€EÙ E˜A‘I ’NÜÐOÓPÐPðZ‰Z˜ %Ó (€Fá Ü”T˜&Ÿ+™+›-Ó(Ó)ˆÜÐLÈUÈGÐSTÐUÓVÐVäD™˜1˜‘I˜t A D q D™zÓ*ò‰ˆˆ1ܘa Ó(ˆä " 3Ó 'ˆÙ —’Ø K‰K˜ŒNô! “~‰ ˆˆf؈ˆV‰ à 4‹4ÙÜ×,Ñ,°DÔ9ñØ—D‘D˜”I÷ð𗑐S•    ñ!÷ðús Ã2D!Ä!D*    cóėt|«}t|«dk(r td«‚dj|Dcgc] }t    |«‘Œc}«}|r t |«y|Scc}w)NrúNo such keys(s)ú
)r6r7r2ÚjoinÚ_build_option_descriptionÚprint)r;Ú _print_descr=rCÚss     r Ú_describe_optionrb¹sY€Ü ˜3Ó €DÜ
ˆ4ƒyA‚~ÜÐ+Ó,Ð,à     ‰    ¸Ö>°AÔ,¨QÕ/Ò>Ó?€AáÜ ˆaŒØØ €Hùò ?s´Acóð—t|«}t|«dk(r td«‚t|«dkDrt|«dkr|dk7r td«‚|D]!}t    |t
|j |¬«Œ#y)Nrr[r5ér.z’You must specify at least 4 characters when resetting multiple keys, use the special keyword "all" to reset all the options to their default value©r<)r6r7r2rIrYr+r$)r;r<r=rCs    r Ú _reset_optionrfÆs|€Ü ˜3Ó €Dä
ˆ4ƒyA‚~ÜÐ+Ó,Ð,ä
ˆ4ƒy1‚}œ˜S› Aš¨#°ª,Üð Dó
ð    
ð òEˆÜAÔ*¨1Ñ-×4Ñ4¸VÖDñErcóF—t|d¬«}t|«jS©NTre)r>rOr$)r;rs  r Úget_default_valri×s€Ü
˜# dÔ
+€CÜ ! #Ó &× -Ñ -Ð-rcó>—eZdZUdZded<d    d
d„Zd d„Zd d„Zd d„Zy)Ú DictWrapperz/provide attribute-style access to a nested dictr,Údcó`—tj|d|«tj|d|«y)NrlÚprefix)r#Ú __setattr__)Úselfrlrns   r Ú__init__zDictWrapper.__init__ás&€Ü×ј4  aÔ(Ü×ј4 ¨6Õ2rcó̗tj|d«}|r|dz }||z }||jvr*t|j|t«s t ||«yt d«‚)Nrnú.z.You can only set the value of existing options)r#Ú__getattribute__rlÚ
isinstanceÚdictrYr2)rprÚvalrns    r rozDictWrapper.__setattr__ås]€Ü×(Ñ(¨¨xÓ8ˆÙ Ø c‰MˆFؐ#‰ ˆð $—&‘&‰=¤¨D¯F©F°3©K¼Ô!>Ü ˜ Õ $äÐNÓOÐ Orcó—tj|d«}|r|dz }||z }    tj|d«|}t    |t
«r t ||«St|«S#t$r}td«|‚d}~wwxYw)NrnrsrlzNo such option)r#rtÚKeyErrorr2rurvrkrD)rprrnrVÚerrs     r Ú __getattr__zDictWrapper.__getattr__ñs‰€Ü×(Ñ(¨¨xÓ8ˆÙ Ø c‰MˆFؐ#‰ ˆð    9Ü×'Ñ'¨¨cÓ2°3Ñ7ˆAô aœÔ ܘq &Ó)Ð )ä˜vÓ&Ð &øô ò    9ÜÐ.Ó/°SÐ 8ûð    9ús¤A$Á$    A>Á- A9Á9A>cóH—t|jj««Sr@)Úlistrlr=)rps r Ú__dir__zDictWrapper.__dir__ÿs€ÜD—F‘F—K‘K“MÓ"Ð"rN)Ú)rlr,rnrÚreturnÚNone)rrrwrr€r©rr)r€r/)    rrrr3rrqror{r~rrr rkrkÜs …Ù9àÓô3ó
Pó 'ô#rrkcó.—eZdZdd„Zdd„Zedd„«Zy)ÚCallableDynamicDoccó —||_||_yr@)Ú __doc_tmpl__Ú__func__)rpÚfuncÚdoc_tmpls   r rqzCallableDynamicDoc.__init__ s€Ø$ˆÔ؈ rcó&—|j|i|¤ŽSr@)r‡)rprRÚkwdss   r Ú__call__zCallableDynamicDoc.__call__s€Øˆt}‰}˜dÐ+ dÑ+Ð+rcó¢—tdd¬«}tttj    «««}|j
j ||¬«S)Nr.F)r`)Ú    opts_descÚ    opts_list)rbÚpp_options_listr}r+r=r†Úformat)rprŽrs   r r3zCallableDynamicDoc.__doc__sC€ä$ U¸Ô>ˆ    Ü#¤DÔ)<×)AÑ)AÓ)CÓ$DÓEˆ    Ø× Ñ ×'Ñ'°)ÀyÐ'ÓQÐQrN)rˆzCallable[..., T]r‰rr€r)r€r )r€r)rrrrqrŒÚpropertyr3rrr r„r„ s"„óó,ðòRóñRrr„aÓ
get_option(pat)
 
Retrieves the value of the specified option.
 
Available options:
 
{opts_list}
 
Parameters
----------
pat : str
    Regexp which should match a single option.
    Note: partial matches are supported for convenience, but unless you use the
    full option name (e.g. x.y.z.option_name), your code may break in future
    versions if new options with similar names are introduced.
 
Returns
-------
result : the value of the option
 
Raises
------
OptionError : if no such option exists
 
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
 
The available options with its descriptions:
 
{opts_desc}
 
Examples
--------
>>> pd.get_option('display.max_columns')  # doctest: +SKIP
4
aŒ
set_option(pat, value)
 
Sets the value of the specified option.
 
Available options:
 
{opts_list}
 
Parameters
----------
pat : str
    Regexp which should match a single option.
    Note: partial matches are supported for convenience, but unless you use the
    full option name (e.g. x.y.z.option_name), your code may break in future
    versions if new options with similar names are introduced.
value : object
    New value of option.
 
Returns
-------
None
 
Raises
------
OptionError if no such option exists
 
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
 
The available options with its descriptions:
 
{opts_desc}
 
Examples
--------
>>> pd.set_option('display.max_columns', 4)
>>> df = pd.DataFrame([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
>>> df
   0  1  ...  3   4
0  1  2  ...  4   5
1  6  7  ...  9  10
[2 rows x 5 columns]
>>> pd.reset_option('display.max_columns')
a
describe_option(pat, _print_desc=False)
 
Prints the description for one or more registered options.
 
Call with no arguments to get a listing for all registered options.
 
Available options:
 
{opts_list}
 
Parameters
----------
pat : str
    Regexp pattern. All matching keys will have their description displayed.
_print_desc : bool, default True
    If True (default) the description(s) will be printed to stdout.
    Otherwise, the description(s) will be returned as a unicode string
    (for testing).
 
Returns
-------
None by default, the description(s) as a unicode string if _print_desc
is False
 
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
 
The available options with its descriptions:
 
{opts_desc}
 
Examples
--------
>>> pd.describe_option('display.max_columns')  # doctest: +SKIP
display.max_columns : int
    If max_cols is exceeded, switch to truncate view...
aÍ
reset_option(pat)
 
Reset one or more options to their default value.
 
Pass "all" as argument to reset all options.
 
Available options:
 
{opts_list}
 
Parameters
----------
pat : str/regex
    If specified only options matching `prefix*` will be reset.
    Note: partial matches are supported for convenience, but unless you
    use the full option name (e.g. x.y.z.option_name), your code may break
    in future versions if new options with similar names are introduced.
 
Returns
-------
None
 
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
 
The available options with its descriptions:
 
{opts_desc}
 
Examples
--------
>>> pd.reset_option('display.max_columns')  # doctest: +SKIP
có(—eZdZdZdd„Zdd„Zdd„Zy)Úoption_contextaF
    Context manager to temporarily set options in the `with` statement context.
 
    You need to invoke as ``option_context(pat, val, [(pat, val), ...])``.
 
    Examples
    --------
    >>> from pandas import option_context
    >>> with option_context('display.max_rows', 10, 'display.max_columns', 5):
    ...     pass
    c    ó¤—t|«dzdk7st|«dkr td«‚tt|ddd…|ddd…««|_y)NrFrz>Need to invoke as option_context(pat, val, [(pat, val), ...]).r5)r7rIr}rNÚops)rprRs  r rqzoption_context.__init__×sS€Ü ˆt‹9q‰=˜AÒ ¤ T£¨Q¢ÜØPóð ôœ˜D¡ 1 ™I t¨A¨D¨q¨D¡zÓ2Ó3ˆrcó²—|jDcgc]\}}|t|«f‘Œc}}|_|jD]\}}t||d¬«Œycc}}wrh)r–rDÚundorY)rpr;rws   r Ú    __enter__zoption_context.__enter__ßsO€Ø=A¿X¹X×F±°°ccœ; sÓ+Ò,ÓFˆŒ    àŸ™ò    /‰HˆCÜ ˜˜S¨Ö .ñ    /ùóGsAcób—|jr#|jD]\}}t||d¬«Œyyrh)r˜rY)rprRr;rws    r Ú__exit__zoption_context.__exit__ås1€Ø 9Š9Ø ŸI™Iò 3‘SܘC ¨TÖ2ñ 3ð rN©r€r)rrrr3rqr™r›rrr r”r”Ês„ñ
ó4ó/ô 3rr”c
ó—ddl}ddl}|j«}|tvrt    d|›d«‚|t
vrt    d|›d«‚|r||«|j d«}|D]U}tjd|jzdz|«st|›d    «‚|j|«sŒIt|›d
«‚t}    d }
t|dd «D]P\} } t|    t«s-t    |
j!dj#|d| «¬ ««‚| |    vri|    | <|    | }    ŒRt|    t«s-t    |
j!dj#|dd «¬ ««‚||    |d <t%|||||¬«t|<y)aÎ
    Register an option in the package-wide pandas config object
 
    Parameters
    ----------
    key : str
        Fully-qualified key, e.g. "x.y.option - z".
    defval : object
        Default value of the option.
    doc : str
        Description of the option.
    validator : Callable, optional
        Function of a single argument, should raise `ValueError` if
        called with a value which is not a legal value for the option.
    cb
        a function of a single argument "key", which is called
        immediately after an option value is set/reset. key is
        the full name of the option.
 
    Raises
    ------
    ValueError if `validator` is specified and `defval` is not a valid value.
 
    rNúOption 'z' has already been registeredz' is a reserved keyrsú^ú$z is not a valid identifierz is a python keywordz5Path prefix to option '{option}' is already an optionéÿÿÿÿ)Úoption)rr$r%r'r))ÚkeywordÚtokenizeÚlowerr+r2r0ÚsplitÚreÚmatchÚNamerIÚ    iskeywordr-Ú    enumeraterurvr‘r]r") rr$r%r'r)r£r¤ÚpathrCÚcursorrÚiÚps              r Úregister_optionr°ës™€ó>Ûà
)‰)‹+€Cà
Ô!Ñ!ܘH S EÐ)FÐGÓHÐHØ
ŒnÑܘH S EÐ)<Ð=Ó>Ð>ñِ&Ôð 9‰9S‹>€Dà ò9ˆÜx‰x˜˜hŸm™mÑ+¨cÑ1°1Ô5Ü ˜sÐ"<Ð=Ó>Ð >Ø × Ñ ˜QÕ Ü ˜sÐ"6Ð7Ó8Ð 8ð    9ô €FØ
A€Cä˜$˜s ˜)Ó$ò‰ˆˆ1ܘ&¤$Ô'ܘcŸj™j°·±¸¸b¸q¸Ó0B˜jÓCÓDÐ DØ F‰?؈F1‰Iؘ‘‰ð ô fœdÔ #ܘ#Ÿ*™*¨C¯H©H°T¸#¸2°YÓ,?˜*Ó@ÓAÐAà€Fˆ4‰8Ñô 0Ø ˜ C°9Àô Ô˜Òrcó|—|j«}|tvrtd|›d«‚t||||«t|<y)a
    Mark option `key` as deprecated, if code attempts to access this option,
    a warning will be produced, using `msg` if given, or a default message
    if not.
    if `rkey` is given, any access to the key will be re-routed to `rkey`.
 
    Neither the existence of `key` nor that if `rkey` is checked. If they
    do not exist, any subsequence access will fail as usual, after the
    deprecation warning is given.
 
    Parameters
    ----------
    key : str
        Name of the option to be deprecated.
        must be a fully-qualified option name (e.g "x.y.z.rkey").
    msg : str, optional
        Warning message to output when the key is referenced.
        if no message is given a default message will be emitted.
    rkey : str, optional
        Name of an option to reroute access to.
        If specified, any referenced `key` will be
        re-routed to `rkey` including set/get/reset.
        rkey must be a fully-qualified option name (e.g "x.y.z.rkey").
        used by the default message if no `msg` is specified.
    removal_ver : str, optional
        Specifies the version in which this option will
        be removed. used by the default message if no `msg` is specified.
 
    Raises
    ------
    OptionError
        If the specified key has already been deprecated.
    ržz)' has already been defined as deprecated.N)r¥r*r2r)rrrrs    r Údeprecate_optionr²6sD€ðN )‰)‹+€Cà
Ô!Ñ!ܘH S EÐ)RÐSÓTÐTä/°°S¸$À ÓLÔ˜Òrcó֗|tvr|gSttj««}|dk(r|S|Dcgc]*}tj||tj
«sŒ)|‘Œ,c}Scc}w)zb
    returns a list of keys matching `pat`
 
    if pat=="all", returns all registered options
    r.)r+Úsortedr=r§ÚsearchÚI)r;r=rCs   r r6r6is]€ð Ô!Ñ!؈uˆ ô Ô%×*Ñ*Ó,Ó -€DØ
ˆe‚|؈ àÖ 7!œrŸy™y¨¨a´·±Õ6ŠAÒ 7Ð7ùÒ 7s ´*A&ÁA&có\—|jd«}t}|ddD]}||}Œ    ||dfS)Nrsr¡)r¦r-)rr¬r­r¯s    r rArA{sA€Ø 9‰9S‹>€DÜ €FØ #2ˆYòˆØ˜‘‰ðà 4˜‘8Ð Ðrcó2—|j«}|tvS)z4Returns True if the given option has been deprecated)r¥r*©rs r Ú_is_deprecatedrºƒs€à
)‰)‹+€CØ Ô%Ð %Ð%rcó8—    t|}|S#t$rYywxYw)z±
    Retrieves the metadata for a deprecated option, if `key` is deprecated.
 
    Returns
    -------
    DeprecatedOption (namedtuple) if key is deprecated, None otherwise
    N)r*ry©rrls  r Ú_get_deprecated_optionr½‰s,€ðÜ  Ñ $ˆðˆøô òÙðús ‚         ˜có,—tj|«S)z¨
    Retrieves the option metadata if `key` is a registered option.
 
    Returns
    -------
    RegisteredOption (namedtuple) if key is deprecated, None otherwise
    )r+Úgetr¹s r rOrO™s€ô × "Ñ " 3Ó 'Ð'rcó@—t|«}|r|jxs|S|S)z‚
    if key id deprecated and a replacement key defined, will return the
    replacement key, otherwise returns `key` as - is
    )r½rr¼s  r r:r:¤s$€ô
    ˜sÓ#€AÙØv‰vŠ}˜Ðàˆ
rcóp—t|«}|r©|jr/tj|jtt «¬«yd|›d}|j r|d|j ›z }|jr|d|j›dz }n|dz }tj|tt «¬«yy    )
    Checks if `key` is a deprecated option and if so, prints a warning.
 
    Returns
    -------
    bool - True if `key` is deprecated, False otherwise.
    )Ú
stacklevelú'z' is deprecatedz and will be removed in z, please use 'z
' instead.z, please refrain from using it.TF)r½rrPÚwarnÚ FutureWarningrrr)rrlrs   r r8r8°s©€ô    ˜sÓ#€AÙØ 5Š5Ü M‰MØ—‘ÜÜ+Ó-õ ððcU˜/Ð*ˆC؏}Š}ØÐ1°!·-±-°ÐAÑAØvŠvؘ¨¯© x¨zÐ:Ñ:‘àÐ8Ñ8ä M‰M˜#œ}Ô9IÓ9KÕ LØØ rcód—t|«}t|«}|›d}|jr<|dj|jj    «j d««z }n|dz }|r |d|j ›dt|d«›dz }|r#|jxsd}|d    z }|d
|›d z }|d z }|S) zCBuilds a formatted description of a registered option and prints itú r\zNo description available.z
    [default: z] [currently: Tú]rz
    (Deprecatedz, use `z
` instead.ú))    rOr½r%r]Ústripr¦r$rDr)rCrWrlrars     r r^r^ÎsÀ€ä˜qÓ!€AܘqÓ!€Aà ˆ#ˆQˆ€Aà‡u‚uØ    ˆTY‰Yq—u‘u—{‘{“}×*Ñ*¨4Ó0Ó 1Ñ1‰à    Ð (Ñ(ˆáØ    Ð §¡˜z¨¼ ÀAÀtÓ8LÐ7MÈQÐ OÑOˆá؏v‰vŠ|˜ˆØ    Ð  Ñ ˆØ    ˆwtf˜JÐ 'Ñ'ˆØ    ˆS‰ˆà €Hrcóꇇ —ddlm}ddlmŠ d ˆˆ fd„ }g}t    |«Dcgc]}|j d«dksŒ|‘Œ}}|r ||d|«z }|Dcgc]}|j d«dk\sŒ|‘Œ}}|t    |«d„«D]8\}}    t |    «Dcgc]}|t|«dzd    ‘Œ}
}||||
«z }Œ:d
j|«} |r t| «y    | Scc}wcc}wcc}w) z@Builds a concise listing of available options, grouped by prefixr)Úgroupby)Úwrapc󀕗|rd|zdznd}‰dj|«‰|dd¬«}|r|dr |r |dd    z|d<|S)
Nz- z.[rz, z  F)Úinitial_indentÚsubsequent_indentÚbreak_long_wordsr¡rÈ)r])ÚnameÚksÚpfxÚlsÚwidthrÍs    €€r Úppzpp_options_list.<locals>.ppësYø€Ù$(ˆdT‰k˜DÒ ¨bˆÙ Ø I‰Ib‹MØ ØØ"Ø"ô 
ˆñ "R’&™Tؘ‘V˜c‘\ˆBˆr‰F؈    rrsrcó*—|d|jd«S©Nrs)Úrfind)Úxs r ú<lambda>z!pp_options_list.<locals>.<lambda>þs€°°.°A·G±G¸C³LÐ0A€rr5Nr\)rÒrrÓú Iterable[str]r€r/)
Ú    itertoolsrÌÚtextwraprÍr´Úfindr}r7r]r_) r=rÖÚ_printrÌr×rÕrÛÚsinglesrCÚgrÓrarÍs  `          @r rræsïù€å!Ýö ð€BÜ  ›,Ö:Q¨!¯&©&°«+¸«/ŠqÐ:€GÐ:ÙØ
‰bW‹oшØÖ 0!˜qŸv™v c›{¨aÓ/ŠAÐ 0€DÐ 0᜘t› Ñ&AÓBò‰ˆˆ1Ü'+¨A£wÖ / !ˆa”A“˜‘
 ŠoÐ /ˆÐ /Ø
‰bB‹i‰‰ðð         ‰    "‹ €AÙ Ü ˆaàˆùò;ùò 1ùò0s¥C&¿C&ÁC+Á1C+ÂC0c#ó²‡K—dˆfd„ }t}t}t}|t«a|t«a|t«a    d–—|a|a|ay#|a|a|awxYw­w)aÂ
    contextmanager for multiple invocations of API with a common prefix
 
    supported API functions: (register / get / set )__option
 
    Warning: This is not thread - safe, and won't work properly if you import
    the API functions into your module using the "from x import y" construct.
 
    Example
    -------
    import pandas._config.config as cf
    with cf.config_prefix("display.font"):
        cf.register_option("color", "red")
        cf.register_option("size", " 5 pt")
        cf.set_option(size, " 6 pt")
        cf.get_option(size)
        ...
 
        etc'
 
    will register options "display.font.color", "display.font.size", set the
    value of "display.font.size"... and so on.
    có4•‡—dˆˆfd„ }tt|«S)Ncó*•—‰›d|›}‰|g|¢­i|¤ŽSrÙr)rrRr‹Úpkeyrˆrns    €€r Úinnerz*config_prefix.<locals>.wrap.<locals>.inner+s(ø€ØX˜Q˜s˜eÐ$ˆDÙ˜Ð,˜tÒ, tÑ,Ð ,rr‚)r r )rˆrèrns` €r rÍzconfig_prefix.<locals>.wrap*sù€ö    -ô”Au‹~ÐrN)rˆr r€r )r°Ú
get_optionÚ
set_option)rnrÍÚ_register_optionrDrYs`    r Ú config_prefixrì seøèø€õ<ô'ÐÜ€KÜ€KÙ”jÓ!€JÙ”jÓ!€JÙœ?Ó+€Oð+Û à ˆ
Ø ˆ
Ø*‰øð!ˆ
Ø ˆ
Ø*‰üsƒ=AÁA ÁAÁ AÁAcó‡—dˆfd„ }|S)a
 
    Parameters
    ----------
    `_type` - a type to be compared against (e.g. type(x) == `_type`)
 
    Returns
    -------
    validator - a function of a single argument x , which raises
                ValueError if type(x) is not equal to `_type`
 
    có@•—t|«‰k7rtd‰›d«‚y)NzValue must have type 'rÃ)ÚtyperI)rÛÚ_types €r rèzis_type_factory.<locals>.innerQs)ø€Ü ‹7eÒ ÜÐ5°e°W¸AÐ>Ó?Ð ?ð rrœr)rðrès` r Úis_type_factoryrñCsø€õ@ð €Lrc󦇇—t‰ttf«r+t‰«Šdjt    t
‰««Šnd‰›dŠdˆˆfd„ }|S)zê
 
    Parameters
    ----------
    `_type` - the type to be checked against
 
    Returns
    -------
    validator - a function of a single argument x , which raises
                ValueError if x is not an instance of `_type`
 
    ú|rÃcó:•—t|‰«std‰›«‚y)NzValue must be an instance of )rurI)rÛrðÚ    type_reprs €€r rèz"is_instance_factory.<locals>.innerks%ø€Ü˜!˜UÔ#ÜÐ<¸Y¸KÐHÓIÐ Ið$rrœ)ruÚtupler}r]Úmapr)rðrèrõs` @r Úis_instance_factoryrøXsJù€ô%œ%¤˜Ô'ܐe“ ˆØ—H‘HœS¤ e›_Ó-‰    à˜w˜aLˆ    öJð €Lrc󜇇—‰Dcgc]}t|«sŒ|‘Œc}ЉDcgc]}t|«rŒ|‘Œc}Šdˆˆfd„ }|Scc}wcc}w)Ncó֕‡—‰‰vr^tˆfd„‰D««sI‰Dcgc] }t|«‘Œ}}dj|«}d|›}t‰«r|dz }t    |«‚yycc}w)Nc3ó.•K—|] }|‰«–—Œy­wr@r)Ú.0ÚcrÛs  €r ú    <genexpr>z3is_one_of_factory.<locals>.inner.<locals>.<genexpr>xsøèø€Ò/ ‘q˜—tÑ/ùsƒrózValue must be one of z or a callable)Úanyrr]r7rI)rÛÚlvalÚuvalsÚ    pp_valuesrÚ    callablesÚ legal_valuess`    €€r rèz is_one_of_factory.<locals>.innervsrù€Ø LÑ  ÜÓ/ YÔ/Ô/Ø/;Ö< tœ˜TÐ<Ð<ØŸH™H U›O    Ø-¨i¨[Ð9Üy”>ØÐ+Ñ+CÜ  “oÐ%ð 0ð !ùâ<sŸA&rœ)Úcallable)rrýrèrs`  @r Úis_one_of_factoryrrsCù€Ø(Ö8q¬H°Q­K’Ò8€IØ+Ö?˜!´8¸Aµ;’AÒ?€Lö&ð €Lùò9ùÚ?s‡A˜A£A    ´A    cóN—|€yt|t«r|dk\ryd}t|«‚)zö
    Verify that value is None or a positive int.
 
    Parameters
    ----------
    value : None or int
            The `value` to be checked.
 
    Raises
    ------
    ValueError
        When the value is not None or is a negative integer
    Nrz+Value must be a nonnegative integer or None)ruÚintrI)Úvaluers  r Úis_nonnegative_intr
ƒs/€ð €}Øä    Eœ3Ô    Ø AŠ:Ø à
7€CÜ
S‹/Ðrcó0—t|«s td«‚y)z»
 
    Parameters
    ----------
    `obj` - the object to be checked
 
    Returns
    -------
    validator - returns True if object is callable
        raises ValueError otherwise.
 
    zValue must be a callableT)rrI)Úobjs r Ú is_callabler ¥s€ô CŒ=ÜÐ3Ó4Ð4Ø r)r;rr<Úboolr€r)F)r;rr<rr€rrœ)rT)r;rr`rr€r)r;rr<rr€r)r;r)rNN) rrr$r#r%rr'r&r)r(r€r)NNN)
rrrrrrrrr€r)r;rr€r/)rrr€ztuple[dict[str, Any], str])rrr€rr‚)rrr€r)rCrr€r)éPF)r=rÝrÖrrár)rnrr€zGenerator[None, None, None])rðz    type[Any]r€úCallable[[Any], None])r€r)r    r#r€r)r€r)Nr3Ú
__future__rÚ
contextlibrrr§Útypingrrrr    r
r rPÚpandas._typingr r Úpandas.util._exceptionsrÚcollections.abcrrrr"r*rr+r-r0ÚAttributeErrorryr2r>rDrYrbrfrirkr„Ú_get_option_tmplÚ_set_option_tmplÚ_describe_option_tmplÚ_reset_option_tmplrérêÚ reset_optionÚdescribe_optionÚoptionsr”r°r²r6rArºr½rOr:r8r^rrìrñrørr
rÚis_intrÚis_boolÚfloatÚis_floatrÚis_strÚbytesÚis_textr rrr ú<module>r&spðò0õd#÷ó
÷÷ó÷õ5á÷ô zôô$zô$ð46ÐÐ0Ó5ð46ÐÐ0Ó5ð"$€Ó#ð#˜G€    Ó#ô . (ô ó$ô$óô@
 ôEó".÷
$#ñ$#ô` R˜ ™ô Rð %ÐðN-Ðð^&ÐðP"ÐñL   Ð-=Ó >€
Ù   Ð-=Ó >€
Ù! -Ð1CÓD€ Ù$Ð%5Ð7LÓM€Ù
nÓ
%€ô 3Ð%ô3ðHØ04Ø&*ð HØ     ðHà ðHð
ðHð.ð    Hð
    $ð Hð 
ó HðZØØ"ð    ,MØ     ð,Mà    ð,Mð ð,Mðð    ,Mð
 
ó ,Móf8ó$ó&ó ó (ó    óó< ô0ðLò/+óð/+óló*ó4ó"ñ6
˜Ó    €Ù
˜$Ó
€Ù ˜5Ó !€Ù    ˜Ó    €Ù
˜s E˜lÓ
+€ôr