ó
    wñ:i°  ã                  óÔ   • S r SSKJr  SSKJr  SSKJr  SSKrSSKJ	r	  SSK
Jr  SSKJr  SS	KJr  SS
KJrJr  \(       a  SSKJr  S\	R*                  4   SS jjr S     SS jjrg)zio on the clipboard é    )Úannotations)ÚStringIO)ÚTYPE_CHECKINGN)Úlib)Úfind_stack_level)Úcheck_dtype_backend)ÚABCDataFrame)Ú
get_optionÚoption_context)ÚDtypeBackendú\s+c                ó$  • UR                  SS5      nUb/  UR                  5       R                  SS5      S:w  a  [        S5      e[	        U5        SS	KJn  SS
KJn  U" 5       n UR                  UR                  S5      =(       d    [        S5      5      nUSS R                  S5      SS SS nU Vs1 s H"  oˆR                  S5      R                  S5      iM$     n	n[!        U5      S:”  a{  [!        U	5      S:X  al  U	R                  5       S:w  aX  Sn [!        US   5      [!        US   R                  S5      5      -
  n
U
S:w  a$  UR#                  S[%        ['        U
5      5      5        U c  UR                  S5      c  Sn [!        U 5      S:”  a  UR                  S5      c  SUS'   OA[!        U 5      S:”  a2  UR                  S5      S:X  a  [(        R*                  " S[-        5       S9  U" [/        U5      4XS.UD6$ ! [         a     GNsf = fs  snf )a  
Read text from clipboard and pass to :func:`~pandas.read_csv`.

Parses clipboard contents similar to how CSV files are parsed
using :func:`~pandas.read_csv`.

Parameters
----------
sep : str, default '\\s+'
    A string or regex delimiter. The default of ``'\\s+'`` denotes
    one or more whitespace characters.

dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
    Back-end data type applied to the resultant :class:`DataFrame`
    (still experimental). Behaviour is as follows:

    * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
      (default).
    * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
      DataFrame.

    .. versionadded:: 2.0

**kwargs
    See :func:`~pandas.read_csv` for the full argument list.

Returns
-------
DataFrame
    A parsed :class:`~pandas.DataFrame` object.

See Also
--------
DataFrame.to_clipboard : Copy object to the system clipboard.
read_csv : Read a comma-separated values (csv) file into DataFrame.
read_fwf : Read a table of fixed-width formatted lines into DataFrame.

Examples
--------
>>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['A', 'B', 'C'])
>>> df.to_clipboard()  # doctest: +SKIP
>>> pd.read_clipboard()  # doctest: +SKIP
     A  B  C
0    1  2  3
1    4  5  6
Úencodingúutf-8NÚ-Ú Úutf8z3reading from clipboard only supports utf-8 encodingr   )Úclipboard_get)Úread_csvzdisplay.encodingi'  Ú
éÿÿÿÿé
   Ú Ú	é   z 	Ú	index_colÚdelim_whitespacer   ÚengineÚpythonÚczIread_clipboard with regex separator does not work properly with c engine.©Ú
stacklevel)ÚsepÚdtype_backend)ÚpopÚlowerÚreplaceÚNotImplementedErrorr   Úpandas.io.clipboardr   Úpandas.io.parsersr   ÚdecodeÚgetr
   ÚAttributeErrorÚsplitÚlstripÚcountÚlenÚ
setdefaultÚlistÚrangeÚwarningsÚwarnr   r   )r#   r$   Úkwargsr   r   r   ÚtextÚlinesÚxÚcountsÚindex_lengths              ÚW/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/pandas/io/clipboards.pyÚread_clipboardr>      sá  € ðf �z‰z˜* gÓ.€Hð Ñ §¡Ó 0× 8Ñ 8¸¸bÓ AÀVÓ KÜ!Ð"WÓXÐXä˜Ô&å1Ý*á‹?€DðØ�{‰{˜6Ÿ:™: jÓ1×S´ZÐ@RÓ5SÓTˆð ��%ˆL×Ñ˜tÓ$ S bÐ)¨#¨2Ð.€Eñ 27Ó7²¨A�h‰h�s‹m×!Ñ! $Ö'±€FÐ7Ü
ˆ5ƒz�Aƒ~œ#˜f›+¨Ó*¨v¯z©z«|¸qÓ/@Øˆô ˜5 ™8“}¤s¨5°©8¯?©?¸5Ó+AÓ'BÑBˆØ˜1ÓØ×Ñ˜k¬4´°lÓ0CÓ+DÔEð �{�v—z‘zÐ"4Ó5Ñ=Øˆô ˆ3ƒx�!ƒ|˜Ÿ
™
 8Ó,Ñ4Ø#ˆˆxÒÜ	ˆS‹�A‹˜&Ÿ*™* XÓ.°#Ó5Ü�ŠØWÜ'Ó)ò	
ñ
 ”H˜T“NÐS¨ÑSÈFÑSÐSøôM ó Úðüò 8s   Á$2G< Â4)HÇ<
H
È	H
c                óŠ  • UR                  SS5      nUb/  UR                  5       R                  SS5      S:w  a  [        S5      eSS	KJn  Uc  S
nU(       a?   Uc  Sn[        5       nU R                  " U4USS.UD6  UR                  5       nU" U5        gUb  [        R                  " S[        5       S9  [        U [        5      (       a(  [        SS5         U R                   " S0 UD6nSSS5        O[#        U 5      nU" W5        g! [         a     [        R                  " S[        5       S9   Nzf = f! , (       d  f       ND= f)ab  
Attempt to write text representation of object to the system clipboard
The clipboard can be then pasted into Excel for example.

Parameters
----------
obj : the object to write to the clipboard
excel : bool, defaults to True
        if True, use the provided separator, writing in a csv
        format for allowing easy pasting into excel.
        if False, write a string representation of the object
        to the clipboard
sep : optional, defaults to tab
other keywords are passed to to_csv

Notes
-----
Requirements for your platform
  - Linux: xclip, or xsel (with PyQt4 modules)
  - Windows:
  - OS X:
r   r   Nr   r   r   z&clipboard only supports utf-8 encodingr   )Úclipboard_setTr   )r#   r   zAto_clipboard in excel mode requires a single character separator.r!   z7to_clipboard with excel=False ignores the sep argument.zdisplay.max_colwidth© )r%   r&   r'   Ú
ValueErrorr)   r@   r   Úto_csvÚgetvalueÚ	TypeErrorr5   r6   r   Ú
isinstancer	   r   Ú	to_stringÚstr)	ÚobjÚexcelr#   r7   r   r@   Úbufr8   Úobjstrs	            r=   Úto_clipboardrM   „   s*  € ð2 �z‰z˜* gÓ.€Hð Ñ §¡Ó 0× 8Ñ 8¸¸bÓ AÀVÓ KÜÐAÓBÐBå1à�}Øˆæð	Ø‰{Ø�Ü“*ˆCð �JŠJ�sÐ@ ¨gÑ@¸Ò@Ø—<‘<“>ˆDá˜$ÔØð 
‰Ü�ŠØEÜ'Ó)ò	
ô
 �#”|×$Ñ$äÐ2°DÕ9Ø—]’]Ñ, VÑ,ˆF÷ :Ð9ô �S“ˆÙ�&Õøô# ó 	Ü�MŠMØSÜ+Ó-ôð	ú÷ :Õ9ús   Á=D ÃD4Ä'D1Ä0D1Ä4
E)r#   rH   r$   zDtypeBackend | lib.NoDefault)TN)rJ   zbool | Noner#   z
str | NoneÚreturnÚNone)Ú__doc__Ú
__future__r   Úior   Útypingr   r5   Úpandas._libsr   Úpandas.util._exceptionsr   Úpandas.util._validatorsr   Úpandas.core.dtypes.genericr	   Úpandasr
   r   Úpandas._typingr   Ú
no_defaultr>   rM   rA   ó    r=   Ú<module>r\      s{   ðÙ Ý "å Ý  Û å Ý 4Ý 7å 3÷ö
 Ý+ð Ø25·.±.ðjTØ	ðjTà/õjTð\ 7;ðAØðAØ)3ðAà	öAr[   