ó
    wñ:iY\  ã                  ób  • S r SSKJr  SSKrSSKrSSKrSSKJrJrJ	r	  SSK
r
SSK
JrJ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  SSKJr  SSKJr  SSKJrJr  SSKJr  SSK J!r!  SSK"J#r#J$r$J%r%J&r&J'r'  \(       a  SSK(J)r)J*r*J+r+J,r,J-r-  SS jr.   S            S!S jjr/ " S S5      r0 " S S\05      r1 " S S\05      r2\" \S   S9       S"                 S#S jj5       r3\" \S   S9SSS\Rh                  \Rh                  SS4                 S$S jj5       r5g)%zparquet compat é    )ÚannotationsN)ÚTYPE_CHECKINGÚAnyÚLiteral)Úcatch_warningsÚfilterwarnings)Ú_get_option)Úlib)Úimport_optional_dependency©ÚAbstractMethodError)Údoc)Úfind_stack_level)Úcheck_dtype_backend)Ú	DataFrameÚ
get_option)Ú_shared_docs)Úarrow_table_to_pandas)Ú	IOHandlesÚ
get_handleÚis_fsspec_urlÚis_urlÚstringify_path)ÚDtypeBackendÚFilePathÚ
ReadBufferÚStorageOptionsÚWriteBufferÚBaseImplc                ó2  • U S:X  a  [        S5      n U S:X  a-  [        [        /nSnU H  n U" 5       s  $    [        SU 35      eU S:X  a
  [        5       $ U S:X  a
  [        5       $ [        S	5      e! [         a  nUS[	        U5      -   -  n SnAMi  SnAff = f)
zreturn our implementationÚautozio.parquet.engineÚ z
 - NzÉUnable to find a usable engine; tried using: 'pyarrow', 'fastparquet'.
A suitable version of pyarrow or fastparquet is required for parquet support.
Trying to import the above resulted in these errors:ÚpyarrowÚfastparquetz.engine must be one of 'pyarrow', 'fastparquet')r   ÚPyArrowImplÚFastParquetImplÚImportErrorÚstrÚ
ValueError)ÚengineÚengine_classesÚ
error_msgsÚengine_classÚerrs        ÚT/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/pandas/io/parquet.pyÚ
get_enginer0   4   s¸   € à�ÓÜÐ/Ó0ˆà�Óä%¤Ð7ˆàˆ
Û*ˆLð1Ù#“~Ò%ñ +ô ðCð ˆlðó
ð 	
ð �ÓÜ‹}ÐØ	�=Ó	 ÜÓ Ð ä
ÐEÓ
FÐFøô% ó 1Ø˜g¬¨C«Ñ0Ñ0–
ûð1ús   ¬A0Á0
BÁ:BÂBÚstorage_optionsc                óŽ  • [        U 5      nUb�  [        SSS9n[        SSS9nUb-  [        XR                  5      (       a  U(       a  [	        S5      eOIUb%  [        XR
                  R                  5      (       a  O![        S[        U5      R                   35      e[        U5      (       aq  Ucn  Uc4  [        S5      n[        S5      n UR                  R                  U 5      u  pUc3  [        S5      nUR                  R                  " U40 U=(       d    0 D6u  pO(U(       a!  [!        U5      (       a  US	:w  a  [        S
5      eSn	U(       dY  U(       dR  [        U["        5      (       a=  [$        R&                  R)                  U5      (       d  [+        XSSUS9n	SnU	R,                  nXYU4$ ! [        UR                  4 a     NÝf = f)zFile handling for PyArrow.Nz
pyarrow.fsÚignore)ÚerrorsÚfsspecz8storage_options not supported with a pyarrow FileSystem.z9filesystem must be a pyarrow or fsspec FileSystem, not a r#   Úrbz8storage_options passed with buffer, or non-supported URLF©Úis_textr1   )r   r   Ú
isinstanceÚ
FileSystemÚNotImplementedErrorÚspecÚAbstractFileSystemr)   ÚtypeÚ__name__r   Úfrom_uriÚ	TypeErrorÚArrowInvalidÚcoreÚ	url_to_fsr   r(   ÚosÚpathÚisdirr   Úhandle)
rF   Úfsr1   ÚmodeÚis_dirÚpath_or_handleÚpa_fsr5   ÚpaÚhandless
             r/   Ú_get_path_or_handlerP   V   sº  € ô $ DÓ)€NØ	�~Ü*¨<ÀÑIˆÜ+¨H¸XÑFˆØÑ¤¨B×0@Ñ0@×!AÑ!AÞÜ)ØNóð ð ð Ñ¤J¨r·;±;×3QÑ3Q×$RÑ$RØäðÜ˜b›×*Ñ*Ð+ð-óð ô �^×$Ñ$¨©ØÑ"Ü+¨IÓ6ˆBÜ.¨|Ó<ˆEðØ%*×%5Ñ%5×%>Ñ%>¸tÓ%DÑ"�ð ‰:Ü/°Ó9ˆFØ!'§¡×!6Ò!6Øñ"Ø#2×#8°bñ"ÑˆBøö 
¤&¨×"8Ñ"8¸DÀD»Lô ÐSÓTÐTà€GæÞÜ�~¤s×+Ñ+Ü—‘—‘˜n×-Ñ-ô
 Ø¨%Àñ
ˆð ˆØ Ÿ™ˆØ BÐ&Ð&øô7 ˜rŸ™Ð/ó Ùðús   Ã	F+ Æ+GÇGc                  ó@   • \ rS rSr\SS j5       rSS jrS	S
S jjrSrg)r   é•   c                óD   • [        U [        5      (       d  [        S5      eg )Nz+to_parquet only supports IO with DataFrames)r9   r   r)   )Údfs    r/   Úvalidate_dataframeÚBaseImpl.validate_dataframe–   s    € ä˜"œi×(Ñ(ÜÐJÓKÐKð )ó    c                ó   • [        U 5      e©Nr   )ÚselfrT   rF   ÚcompressionÚkwargss        r/   ÚwriteÚBaseImpl.write›   ó   € Ü! $Ó'Ð'rW   Nc                ó   • [        U 5      erY   r   )rZ   rF   Úcolumnsr\   s       r/   ÚreadÚBaseImpl.readž   r_   rW   © )rT   r   ÚreturnÚNone)rT   r   rY   )re   r   )	r?   Ú
__module__Ú__qualname__Ú__firstlineno__ÚstaticmethodrU   r]   rb   Ú__static_attributes__rd   rW   r/   r   r   •   s%   † ØóLó ðLô(÷(ñ (rW   c                  óŒ   • \ rS rSrSS jr     S	             S
S jjrSSS\R                  SS4       SS jjrSr	g)r%   é¢   c                ó4   • [        SSS9  SS KnSS KnXl        g )Nr#   z(pyarrow is required for parquet support.©Úextrar   )r   Úpyarrow.parquetÚ(pandas.core.arrays.arrow.extension_typesÚapi)rZ   r#   Úpandass      r/   Ú__init__ÚPyArrowImpl.__init__£   s   € Ü"ØÐGò	
ó 	ó 	8à�rW   Nc                óÖ  • U R                  U5        SUR                  SS 5      0n	Ub  XIS'   U R                  R                  R                  " U40 U	D6n
UR
                  (       aO  S[        R                  " UR
                  5      0nU
R                  R                  n0 UEUEnU
R                  U5      n
[        UUUSUS LS9u  pïn[        U[        R                  5      (       a|  [        US5      (       ak  [        UR                   ["        [$        45      (       aF  [        UR                   [$        5      (       a  UR                   R'                  5       nOUR                   n Ub-  U R                  R(                  R*                  " U
U4UUUS.UD6  O+U R                  R(                  R,                  " U
U4UUS.UD6  Ub  UR/                  5         g g ! Ub  UR/                  5         f f = f)	NÚschemaÚpreserve_indexÚPANDAS_ATTRSÚwb)r1   rJ   rK   Úname)r[   Úpartition_colsÚ
filesystem)r[   r~   )rU   Úpoprs   ÚTableÚfrom_pandasÚattrsÚjsonÚdumpsrx   ÚmetadataÚreplace_schema_metadatarP   r9   ÚioÚBufferedWriterÚhasattrr|   r(   ÚbytesÚdecodeÚparquetÚwrite_to_datasetÚwrite_tableÚclose)rZ   rT   rF   r[   Úindexr1   r}   r~   r\   Úfrom_pandas_kwargsÚtableÚdf_metadataÚexisting_metadataÚmerged_metadatarL   rO   s                   r/   r]   ÚPyArrowImpl.write®   sÖ  € ð 	×Ñ Ô#à.6¸¿
¹
À8ÈTÓ8RÐ-SÐØÑØ38Ð/Ñ0à—‘—‘×*Ò*¨2ÑDÐ1CÑDˆà�8�8Ø)¬4¯:ª:°b·h±hÓ+?Ð@ˆKØ %§¡× 5Ñ 5ÐØBÐ!2ÐB°kÐBˆOØ×1Ñ1°/ÓBˆEä.AØØØ+ØØ!¨Ð-ñ/
Ñ+ˆ ô �~¤r×'8Ñ'8×9Ñ9Ü˜¨×/Ñ/Ü˜>×.Ñ.´´e°×=Ñ=ä˜.×-Ñ-¬u×5Ñ5Ø!/×!4Ñ!4×!;Ñ!;Ó!=‘à!/×!4Ñ!4�ð	 ØÑ)à—‘× Ñ ×1Ò1ØØ"ðð !,Ø#1Ø)ñð óð —‘× Ñ ×,Ò,ØØ"ðð !,Ø)ñ	ð
 òð Ñ"Ø—‘•ð #øˆwÑ"Ø—‘•ð #ús   Å"AG ÇG(Fc                óŒ  • SUS'   0 n	[        SSS9n
U
S:X  a  SU	S'   [        UUUSS9u  p¼n U R                  R                  R                  " U4UUUS	.UD6n[        5          [        S
S[        5        [        UUU	S9nS S S 5        U
S:X  a  WR                  SSS9nUR                  R                  (       aN  SUR                  R                  ;   a4  UR                  R                  S   n[        R                  " U5      Wl        WUb  UR                  5         $ $ ! , (       d  f       N£= f! Ub  UR                  5         f f = f)NTÚuse_pandas_metadatazmode.data_manager)ÚsilentÚarrayÚsplit_blocksr6   )r1   rJ   )ra   r~   Úfiltersr3   zmake_block is deprecated)Údtype_backendÚto_pandas_kwargsF)Úcopys   PANDAS_ATTRS)r	   rP   rs   rŒ   Ú
read_tabler   r   ÚDeprecationWarningr   Ú_as_managerrx   r…   rƒ   Úloadsr‚   r�   )rZ   rF   ra   rœ   Úuse_nullable_dtypesr�   r1   r~   r\   rž   ÚmanagerrL   rO   Úpa_tableÚresultr“   s                   r/   rb   ÚPyArrowImpl.readð   sV  € ð )-ˆÐ$Ñ%àÐäÐ1¸$Ñ?ˆØ�gÓØ/3Ð˜^Ñ,Ü.AØØØ+Øñ	/
Ñ+ˆ ð	 Ø—x‘x×'Ñ'×2Ò2ØðàØ%Øñ	ð
 ñˆHô  Õ!ÜØØ.Ü&ôô
 /ØØ"/Ø%5ñ�÷ "ð ˜'Ó!Ø×+Ñ+¨G¸%Ð+Ð@�à�‰×'×'Ø" h§o¡o×&>Ñ&>Ó>Ø"*§/¡/×":Ñ":¸?Ñ"K�KÜ#'§:¢:¨kÓ#:�F”LØàÑ"Ø—‘•ð #÷+ "Õ!ûð* Ñ"Ø—‘•ð #ús$   ­5D- Á"DÁ?BD- Ä
D*Ä&D- Ä-E©rs   ©re   rf   ©ÚsnappyNNNN)rT   r   rF   zFilePath | WriteBuffer[bytes]r[   ú
str | Noner�   úbool | Noner1   úStorageOptions | Noner}   úlist[str] | Nonere   rf   )r¤   Úboolr�   úDtypeBackend | lib.NoDefaultr1   r¯   re   r   )
r?   rg   rh   ri   ru   r]   r
   Ú
no_defaultrb   rk   rd   rW   r/   r%   r%   ¢   s´   † ô	ð #+Ø!Ø15Ø+/Øð@ àð@ ð ,ð@ ð  ð	@ ð
 ð@ ð /ð@ ð )ð@ ð 
õ@ ðJ ØØ$)Ø69·n±nØ15Øð7 ð
 "ð7 ð 4ð7 ð /ð7 ð 
÷7 ð 7 rW   r%   c                  ó`   • \ rS rSrSS jr     S       S	S jjr    S
   SS jjrSrg)r&   i*  c                ó$   • [        SSS9nXl        g )Nr$   z,fastparquet is required for parquet support.ro   )r   rs   )rZ   r$   s     r/   ru   ÚFastParquetImpl.__init__+  s   € ô 1ØÐ!Oñ
ˆð �rW   Nc                ó¼  ^^	• U R                  U5        SU;   a  Ub  [        S5      eSU;   a  UR                  S5      nUb  SUS'   Ub  [        S5      e[	        U5      n[        U5      (       a  [        S5      m	U	U4S jUS'   OT(       a  [        S	5      e[        S
S9   U R                  R                  " UU4UUUS.UD6  S S S 5        g ! , (       d  f       g = f)NÚpartition_onzYCannot use both partition_on and partition_cols. Use partition_cols for partitioning dataÚhiveÚfile_schemeú9filesystem is not implemented for the fastparquet engine.r5   c                óZ   >• TR                   " U S40 T=(       d    0 D6R                  5       $ )Nr{   )Úopen)rF   Ú_r5   r1   s     €€r/   Ú<lambda>Ú'FastParquetImpl.write.<locals>.<lambda>V  s,   ø€ °&·+²+Ø�dñ3Ø.×4°"ñ3ç‰d‹fð3rW   Ú	open_withz?storage_options passed with file object or non-fsspec file pathT)Úrecord)r[   Úwrite_indexr¸   )
rU   r)   r   r;   r   r   r   r   rs   r]   )
rZ   rT   rF   r[   r�   r}   r1   r~   r\   r5   s
         `  @r/   r]   ÚFastParquetImpl.write3  sù   ù€ ð 	×Ñ Ô#à˜VÓ#¨Ñ(BÜðKóð ð ˜VÓ#Ø#ŸZ™Z¨Ó7ˆNàÑ%Ø$*ˆF�=Ñ!àÑ!Ü%ØKóð ô
 ˜dÓ#ˆÜ˜×ÑÜ/°Ó9ˆFõ#ˆF�;Òö ÜØQóð ô  4Ó(Ø�H‰H�NŠNØØðð (Ø!Ø+ñð ò÷ )×(Ö(ús   Â!#CÃ
Cc                óö  • 0 nUR                  SS5      nUR                  S[        R                  5      n	SUS'   U(       a  [        S5      eU	[        R                  La  [        S5      eUb  [	        S5      e[        U5      nS n
[        U5      (       a6  [        S5      nUR                  " US	40 U=(       d    0 D6R                  US
'   OQ[        U[        5      (       a<  [        R                  R                  U5      (       d  [        US	SUS9n
U
R                   n U R"                  R$                  " U40 UD6nUR&                  " SX#S.UD6U
b  U
R)                  5         $ $ ! U
b  U
R)                  5         f f = f)Nr¤   Fr�   Úpandas_nullszNThe 'use_nullable_dtypes' argument is not supported for the fastparquet enginezHThe 'dtype_backend' argument is not supported for the fastparquet enginer»   r5   r6   rI   r7   )ra   rœ   rd   )r   r
   r³   r)   r;   r   r   r   r½   rI   r9   r(   rE   rF   rG   r   rH   rs   ÚParquetFileÚ	to_pandasr�   )rZ   rF   ra   rœ   r1   r~   r\   Úparquet_kwargsr¤   r�   rO   r5   Úparquet_files                r/   rb   ÚFastParquetImpl.readh  sn  € ð *,ˆØ$Ÿj™jÐ)>ÀÓFÐØŸ
™
 ?´C·N±NÓCˆà).ˆ�~Ñ&ÞÜð%óð ð ¤§¡Ò.Üð%óð ð Ñ!Ü%ØKóð ô ˜dÓ#ˆØˆÜ˜×ÑÜ/°Ó9ˆFà#)§;¢;¨t°TÑ#U¸o×>SÐQSÑ#U×#XÑ#XˆN˜4Ò Ü˜œc×"Ñ"¬2¯7©7¯=©=¸×+>Ñ+>ô !Ø�d E¸?ñˆGð —>‘>ˆDð	 ØŸ8™8×/Ò/°ÑG¸ÑGˆLØ×)Ò)ÐU°'ÑUÈfÑUàÑ"Ø—‘•ð #øˆwÑ"Ø—‘•ð #ús   Ä0E" Å"E8r©   rª   r«   )rT   r   r[   z*Literal['snappy', 'gzip', 'brotli'] | Noner1   r¯   re   rf   )NNNN)r1   r¯   re   r   )r?   rg   rh   ri   ru   r]   rb   rk   rd   rW   r/   r&   r&   *  ss   † ôð CKØØØ15Øð3àð3ð @ð	3ð /ð3ð 
õ3ðp ØØ15Øð0 ð
 /ð0 ð 
÷0 ð 0 rW   r&   )r1   r!   c           	     ó  • [        U[        5      (       a  U/n[        U5      n	Uc  [        R                  " 5       OUn
U	R
                  " U U
4UUUUUS.UD6  Uc1  [        U
[        R                  5      (       d   eU
R                  5       $ g)aÎ  
Write a DataFrame to the parquet format.

Parameters
----------
df : DataFrame
path : str, path object, file-like object, or None, default None
    String, path object (implementing ``os.PathLike[str]``), or file-like
    object implementing a binary ``write()`` function. If None, the result is
    returned as bytes. If a string, it will be used as Root Directory path
    when writing a partitioned dataset. The engine fastparquet does not
    accept file-like objects.
engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto'
    Parquet library to use. If 'auto', then the option
    ``io.parquet.engine`` is used. The default ``io.parquet.engine``
    behavior is to try 'pyarrow', falling back to 'fastparquet' if
    'pyarrow' is unavailable.

    When using the ``'pyarrow'`` engine and no storage options are provided
    and a filesystem is implemented by both ``pyarrow.fs`` and ``fsspec``
    (e.g. "s3://"), then the ``pyarrow.fs`` filesystem is attempted first.
    Use the filesystem keyword with an instantiated fsspec filesystem
    if you wish to use its implementation.
compression : {{'snappy', 'gzip', 'brotli', 'lz4', 'zstd', None}},
    default 'snappy'. Name of the compression to use. Use ``None``
    for no compression.
index : bool, default None
    If ``True``, include the dataframe's index(es) in the file output. If
    ``False``, they will not be written to the file.
    If ``None``, similar to ``True`` the dataframe's index(es)
    will be saved. However, instead of being saved as values,
    the RangeIndex will be stored as a range in the metadata so it
    doesn't require much space and is faster. Other indexes will
    be included as columns in the file output.
partition_cols : str or list, optional, default None
    Column names by which to partition the dataset.
    Columns are partitioned in the order they are given.
    Must be None if path is not a string.
{storage_options}

filesystem : fsspec or pyarrow filesystem, default None
    Filesystem object to use when reading the parquet file. Only implemented
    for ``engine="pyarrow"``.

    .. versionadded:: 2.1.0

kwargs
    Additional keyword arguments passed to the engine

Returns
-------
bytes if no path argument is provided else None
N)r[   r�   r}   r1   r~   )r9   r(   r0   r‡   ÚBytesIOr]   Úgetvalue)rT   rF   r*   r[   r�   r1   r}   r~   r\   ÚimplÚpath_or_bufs              r/   Ú
to_parquetrÑ   ›  s˜   € ôB �.¤#×&Ñ&Ø(Ð)ˆÜ�fÓ€DàAEÁ´·²´ÐSW€Kà‡J‚JØ
Øð	ð  ØØ%Ø'Øñ	ð ò	ð �|Ü˜+¤r§z¡z×2Ñ2Ð2Ð2Ø×#Ñ#Ó%Ð%àrW   c           
     óê   • [        U5      n	U[        R                  La/  Sn
USL a  U
S-  n
[        R                  " U
[
        [        5       S9  OSn[        U5        U	R                  " U 4UUUUUUS.UD6$ )aÆ  
Load a parquet object from the file path, returning a DataFrame.

Parameters
----------
path : str, path object or file-like object
    String, path object (implementing ``os.PathLike[str]``), or file-like
    object implementing a binary ``read()`` function.
    The string could be a URL. Valid URL schemes include http, ftp, s3,
    gs, and file. For file URLs, a host is expected. A local file could be:
    ``file://localhost/path/to/table.parquet``.
    A file URL can also be a path to a directory that contains multiple
    partitioned parquet files. Both pyarrow and fastparquet support
    paths to directories as well as file URLs. A directory path could be:
    ``file://localhost/path/to/tables`` or ``s3://bucket/partition_dir``.
engine : {{'auto', 'pyarrow', 'fastparquet'}}, default 'auto'
    Parquet library to use. If 'auto', then the option
    ``io.parquet.engine`` is used. The default ``io.parquet.engine``
    behavior is to try 'pyarrow', falling back to 'fastparquet' if
    'pyarrow' is unavailable.

    When using the ``'pyarrow'`` engine and no storage options are provided
    and a filesystem is implemented by both ``pyarrow.fs`` and ``fsspec``
    (e.g. "s3://"), then the ``pyarrow.fs`` filesystem is attempted first.
    Use the filesystem keyword with an instantiated fsspec filesystem
    if you wish to use its implementation.
columns : list, default=None
    If not None, only these columns will be read from the file.
{storage_options}

    .. versionadded:: 1.3.0

use_nullable_dtypes : bool, default False
    If True, use dtypes that use ``pd.NA`` as missing value indicator
    for the resulting DataFrame. (only applicable for the ``pyarrow``
    engine)
    As new dtypes are added that support ``pd.NA`` in the future, the
    output with this option will change to use those dtypes.
    Note: this is an experimental option, and behaviour (e.g. additional
    support dtypes) may change without notice.

    .. deprecated:: 2.0

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

filesystem : fsspec or pyarrow filesystem, default None
    Filesystem object to use when reading the parquet file. Only implemented
    for ``engine="pyarrow"``.

    .. versionadded:: 2.1.0

filters : List[Tuple] or List[List[Tuple]], default None
    To filter out data.
    Filter syntax: [[(column, op, val), ...],...]
    where op is [==, =, >, >=, <, <=, !=, in, not in]
    The innermost tuples are transposed into a set of filters applied
    through an `AND` operation.
    The outer list combines these sets of filters through an `OR`
    operation.
    A single list of tuples can also be used, meaning that no `OR`
    operation between set of filters is to be conducted.

    Using this argument will NOT result in row-wise filtering of the final
    partitions unless ``engine="pyarrow"`` is also specified.  For
    other engines, filtering is only performed at the partition level, that is,
    to prevent the loading of some row-groups and/or files.

    .. versionadded:: 2.1.0

**kwargs
    Any additional kwargs are passed to the engine.

Returns
-------
DataFrame

See Also
--------
DataFrame.to_parquet : Create a parquet object that serializes a DataFrame.

Examples
--------
>>> original_df = pd.DataFrame(
...     {{"foo": range(5), "bar": range(5, 10)}}
...    )
>>> original_df
   foo  bar
0    0    5
1    1    6
2    2    7
3    3    8
4    4    9
>>> df_parquet_bytes = original_df.to_parquet()
>>> from io import BytesIO
>>> restored_df = pd.read_parquet(BytesIO(df_parquet_bytes))
>>> restored_df
   foo  bar
0    0    5
1    1    6
2    2    7
3    3    8
4    4    9
>>> restored_df.equals(original_df)
True
>>> restored_bar = pd.read_parquet(BytesIO(df_parquet_bytes), columns=["bar"])
>>> restored_bar
    bar
0    5
1    6
2    7
3    8
4    9
>>> restored_bar.equals(original_df[['bar']])
True

The function uses `kwargs` that are passed directly to the engine.
In the following example, we use the `filters` argument of the pyarrow
engine to filter the rows of the DataFrame.

Since `pyarrow` is the default engine, we can omit the `engine` argument.
Note that the `filters` argument is implemented by the `pyarrow` engine,
which can benefit from multithreading and also potentially be more
economical in terms of memory.

>>> sel = [("foo", ">", 2)]
>>> restored_part = pd.read_parquet(BytesIO(df_parquet_bytes), filters=sel)
>>> restored_part
    foo  bar
0    3    8
1    4    9
zYThe argument 'use_nullable_dtypes' is deprecated and will be removed in a future version.TzFUse dtype_backend='numpy_nullable' instead of use_nullable_dtype=True.)Ú
stacklevelF)ra   rœ   r1   r¤   r�   r~   )	r0   r
   r³   ÚwarningsÚwarnÚFutureWarningr   r   rb   )rF   r*   ra   r1   r¤   r�   r~   rœ   r\   rÏ   Úmsgs              r/   Úread_parquetrØ   ô  s•   € ôr �fÓ€Dà¤#§.¡.Ò0ð#ð 	ð  $Ò&ØØXñˆCô 	�Š�cœ=Ô5EÓ5GÓHà#ÐÜ˜Ô&à�9Š9Øð	àØØ'Ø/Ø#Øñ	ð ñ	ð 	rW   )r*   r(   re   r   )Nr6   F)rF   z1FilePath | ReadBuffer[bytes] | WriteBuffer[bytes]rI   r   r1   r¯   rJ   r(   rK   r±   re   zVtuple[FilePath | ReadBuffer[bytes] | WriteBuffer[bytes], IOHandles[bytes] | None, Any])Nr!   r¬   NNNN)rT   r   rF   z$FilePath | WriteBuffer[bytes] | Noner*   r(   r[   r­   r�   r®   r1   r¯   r}   r°   r~   r   re   zbytes | None)rF   zFilePath | ReadBuffer[bytes]r*   r(   ra   r°   r1   r¯   r¤   zbool | lib.NoDefaultr�   r²   r~   r   rœ   z&list[tuple] | list[list[tuple]] | Nonere   r   )6Ú__doc__Ú
__future__r   r‡   rƒ   rE   Útypingr   r   r   rÔ   r   r   Úpandas._config.configr	   Úpandas._libsr
   Úpandas.compat._optionalr   Úpandas.errorsr   Úpandas.util._decoratorsr   Úpandas.util._exceptionsr   Úpandas.util._validatorsr   rt   r   r   Úpandas.core.shared_docsr   Úpandas.io._utilr   Úpandas.io.commonr   r   r   r   r   Úpandas._typingr   r   r   r   r   r0   rP   r   r%   r&   rÑ   r³   rØ   rd   rW   r/   Ú<module>rç      s  ðÙ Ý "ã 	Û Û 	÷ñ ó
 ÷õ
 .å Ý >Ý -Ý 'Ý 4Ý 7÷õ 1å 1÷õ ö ÷õ ôGðJ .2ØØð<'Ø
;ð<'àð<'ð +ð<'ð ð	<'ð
 ð<'ðõ<'÷~
(ñ 
(ôE �(ô E ôPn �hô n ñb �\Ð"3Ñ4Ñ5ð 26ØØ&ØØ-1Ø'+ØðUØðUà
.ðUð ðUð ð	Uð
 ðUð +ðUð %ðUð ðUð ôUó 6ðUñp �\Ð"3Ñ4Ñ5ð Ø $Ø-1Ø03·±Ø25·.±.ØØ6:ðqØ
&ðqàðqð ðqð +ð	qð
 .ðqð 0ðqð ðqð 4ðqð ôqó 6ñqrW   