ó
    wñ:iÅ  ã                   óz  • S SK r S SKrS SKJr  S SKJrJr  \R                  S 5       r\R                  S 5       r	\R                  S 5       r
\R                  S 5       r\R                  " SS	/S
9S 5       r\R                  S 5       r\R                  S 5       r\R                  S 5       r\R                  S 5       r\R                  S 5       r\R                  S 5       r\R                  " SS/S
9S 5       r\R                  " S S S S // SQS9S 5       r\R                  " SS/S
9S 5       r\R                  " SS/S
9S 5       r\R                  " SS/S
9S 5       r\R                  " SS /S
9S! 5       r\R                  " SS/S
9S" 5       r\R                  S# 5       r\R                  S$\4S% j5       rg)&é    N)Ú_get_option)ÚSeriesÚoptionsc                  ó   • [         e)z3A fixture providing the ExtensionDtype to validate.©ÚNotImplementedError© ó    Úb/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/pandas/tests/extension/conftest.pyÚdtyper      ó
   € ô Ðr
   c                  ó   • [         e)z}
Length-100 array for this type.

* data[0] and data[1] should both be non missing
* data[0] and data[1] should not be equal
r   r	   r
   r   Údatar      ó
   € ô Ðr
   c                 ó‚   • U R                   (       d)  U R                  S:X  d  [        R                  " U  S35        [        e)z}
Length-100 array in which all the elements are two.

Call pytest.skip in your fixture if the dtype does not support divmod.
Úmz is not a numeric dtype)Ú_is_numericÚkindÚpytestÚskipr   ©r   s    r   Údata_for_twosr      s4   € ð ×× §¡¨sÓ!2ô 	�Š�u�gÐ4Ð5Ô6ä
Ðr
   c                  ó   • [         e)zLength-2 array with [NA, Valid]r   r	   r
   r   Údata_missingr   -   r   r
   r   r   )Úparamsc                 óL   • U R                   S:X  a  U$ U R                   S:X  a  U$ g)z5Parametrized fixture giving 'data' and 'data_missing'r   r   N©Úparam)Úrequestr   r   s      r   Úall_datar    3   s,   € ð ‡}�}˜ÓØˆØ	�‰˜.Ó	(ØÐð 
)r
   c                 ó   ^ • U 4S jnU$ )zä
Generate many datasets.

Parameters
----------
data : fixture implementing `data`

Returns
-------
Callable[[int], Generator]:
    A callable that takes a `count` argument and
    returns a generator yielding `count` datasets.
c              3   ó:   >#   • [        U 5       H  nTv •  M	     g 7f©N)Úrange)ÚcountÚ_r   s     €r   ÚgenÚdata_repeated.<locals>.genL   s   øé € Ü�u–ˆAØŒJò ùs   ƒr	   )r   r'   s   ` r   Údata_repeatedr)   <   s   ø€ õ ð €Jr
   c                  ó   • [         e)z®
Length-3 array with a known sort order.

This should be three items [B, C, A] with
A < B < C

For boolean dtypes (for which there are only 2 values available),
set B=C=True
r   r	   r
   r   Údata_for_sortingr+   S   s
   € ô Ðr
   c                  ó   • [         e)zk
Length-3 array with a known sort order.

This should be three items [B, NA, A] with
A < B and NA missing.
r   r	   r
   r   Údata_missing_for_sortingr-   a   r   r
   c                  ó"   • [         R                  $ )z»
Binary operator for comparing NA values.

Should return a function of two arguments that returns
True if both arguments are (scalar) NA for your type.

By default, uses ``operator.is_``
)ÚoperatorÚis_r	   r
   r   Úna_cmpr1   l   s   € ô �<‰<Ðr
   c                 ó   • U R                   $ )z”
The scalar missing value for this type. Default dtype.na_value.

TODO: can be removed in 3.x (see https://github.com/pandas-dev/pandas/pull/54930)
)Úna_valuer   s    r   r3   r3   y   s   € ð �>‰>Ðr
   c                  ó   • [         e)zÞ
Data for factorization, grouping, and unique tests.

Expected to be like [B, B, NA, NA, A, A, B, C]

Where A < B < C and NA is missing.

If a dtype has _is_boolean = True, i.e. only 2 unique non-NA entries,
then set C=B.
r   r	   r
   r   Údata_for_groupingr5   ƒ   s
   € ô Ðr
   TFc                 ó   • U R                   $ )z#Whether to box the data in a Seriesr   ©r   s    r   Úbox_in_seriesr8   ’   s   € ð �=‰=Ðr
   c                 ó   • g©Né   r	   ©Úxs    r   Ú<lambda>r>   š   s   € �!r
   c                 ó    • S/[        U 5      -  $ r:   )Úlenr<   s    r   r>   r>   ›   s   € �1�#œ˜A›’,r
   c                 ó2   • [        S/[        U 5      -  5      $ r:   )r   r@   r<   s    r   r>   r>   œ   s   € ”&˜!˜œs 1›v™Ô&r
   c                 ó   • U $ r#   r	   r<   s    r   r>   r>   �   s   € ‘!r
   )ÚscalarÚlistÚseriesÚobject)r   Úidsc                 ó   • U R                   $ )z$
Functions to test groupby.apply().
r   r7   s    r   Úgroupby_apply_oprI   ˜   s   € ð �=‰=Ðr
   c                 ó   • U R                   $ )zM
Boolean fixture to support Series and Series.to_frame() comparison testing.
r   r7   s    r   Úas_framerK   ¨   ó   € ð
 �=‰=Ðr
   c                 ó   • U R                   $ )zD
Boolean fixture to support arr and Series(arr) comparison testing.
r   r7   s    r   Ú	as_seriesrN   °   rL   r
   c                 ó   • U R                   $ )zX
Boolean fixture to support comparison testing of ExtensionDtype array
and numpy array.
r   r7   s    r   Ú	use_numpyrP   ¸   ó   € ð �=‰=Ðr
   ÚffillÚbfillc                 ó   • U R                   $ )zo
Parametrized fixture giving method parameters 'ffill' and 'bfill' for
Series.fillna(method=<method>) testing.
r   r7   s    r   Úfillna_methodrU   Á   rQ   r
   c                 ó   • U R                   $ )zJ
Boolean fixture to support ExtensionDtype _from_sequence method testing.
r   r7   s    r   Úas_arrayrW   Ê   rL   r
   c                 ó4   • [         R                  [         5      $ )zÈ
A scalar that *cannot* be held by this ExtensionArray.

The default should work for most subclasses, but is not guaranteed.

If the array can hold any item (i.e. object dtype), then use pytest.skip.
)rF   Ú__new__)r   s    r   Úinvalid_scalarrZ   Ò   s   € ô �>‰>œ&Ó!Ð!r
   Úreturnc                  ób   • [         R                  R                  SL =(       a    [        SSS9S:H  $ )z/
Fixture to check if Copy-on-Write is enabled.
Tzmode.data_manager)ÚsilentÚblock)r   ÚmodeÚcopy_on_writer   r	   r
   r   Úusing_copy_on_writera   Þ   s1   € ô 	�‰×"Ñ" dÐ*÷ 	EÜÐ+°DÑ9¸WÑDðr
   )r/   r   Úpandas._config.configr   Úpandasr   r   Úfixturer   r   r   r   r    r)   r+   r-   r1   r3   r5   r8   rI   rK   rN   rP   rU   rW   rZ   Úboolra   r	   r
   r   Ú<module>rf      sV  ðÛ ã å -÷ð ‡�ñó ðð
 ‡�ñó ðð ‡�ñó ðð ‡�ñó ðð
 ‡‚˜ Ð/Ñ0ñó 1ðð ‡�ñó ðð, ‡�ñ
ó ð
ð ‡�ñó ðð ‡�ñ	ó ð	ð ‡�ñó ðð ‡�ñó ðð ‡‚˜˜e�}Ñ%ñó &ðð
 ‡‚áÙÙ&Ùð	ò 	/ññóðð ‡‚˜˜e�}Ñ%ñó &ðð ‡‚˜˜e�}Ñ%ñó &ðð ‡‚˜˜e�}Ñ%ñó &ðð ‡‚˜ Ð)Ñ*ñó +ðð ‡‚˜˜e�}Ñ%ñó &ðð ‡�ñ"ó ð"ð ‡�ð˜Tó ó ñr
   