+
    JV-j×&  ã                   ó¢   € ^ RI Ht ^ RIt^ RIHt ^ RIHtHtHtH	t	 ^ RIH
t ^ RIHt ^ RIHt  ! R R4      tR	 t0 RmtRR
 ltRR ltRR ltR# )é    )ÚSequenceN)Ú_pandas_api)ÚCodecÚTableÚconcat_tablesÚschema)Ú_feather)ÚFeatherErrorc                   óH   a € ] tR t^t o RtRR ltR	R ltR tR
R ltRt	V t
R# )ÚFeatherDatasetzî
Encapsulates details of reading a list of Feather files.

Parameters
----------
path_or_paths : List[str]
    A list of file names
validate_schema : bool, default True
    Check that individual file schemas are all the same / compatible
c                ó   € Wn         W n        R # ©N)ÚpathsÚvalidate_schema)ÚselfÚpath_or_pathsr   s   &&&Ú`/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pyarrow/feather.pyÚ__init__ÚFeatherDataset.__init__*   s   € Ø"Œ
Ø.Öó    Nc                ób  € \        V P                  ^ ,          VR7      pV.V n        VP                  V n        V P                  R,           FM  p\        W1R7      pV P                  '       d   V P                  W44       V P                  P                  V4       KO  	  \        V P                  4      # )zÜ
Read multiple feather files as a single pyarrow.Table

Parameters
----------
columns : List[str]
    Names of columns to read from the file

Returns
-------
pyarrow.Table
    Content of the file as a table (of columns)
©Úcolumns:é   NN)Ú
read_tabler   Ú_tablesr   r   Úvalidate_schemasÚappendr   )r   r   Ú_filÚpathÚtables   &&   r   r   ÚFeatherDataset.read_table.   s‡   € ô ˜$Ÿ*™* Q�-°Ô9ˆØ�vˆŒØ—k‘kˆŒà—J‘J˜r—N�NˆDÜ˜tÔ5ˆEØ×#×#Ð#Ø×%Ñ% dÔ2Ø�L‰L×Ñ Ö&ñ	 #ô
 ˜TŸ\™\Ó*Ð*r   c                ó¬   € V P                   P                  VP                   4      '       g)   \        R V RV P                    RVP                    24      hR# )z
Schema in z was different. 
z

vs

N)r   ÚequalsÚ
ValueError)r   Úpiecer!   s   &&&r   r   ÚFeatherDataset.validate_schemasG   sQ   € Ø�{‰{×!Ñ! %§,¡,×/Ò/Ü˜z¨%¨Ð0BØ $§¡˜}¨J°u·|±|°nðFó Gð Gñ 0r   c                óF   € V P                  VR7      P                  VR7      # )aA  
Read multiple Parquet files as a single pandas DataFrame

Parameters
----------
columns : List[str]
    Names of columns to read from the file
use_threads : bool, default True
    Use multiple threads when converting to pandas

Returns
-------
pandas.DataFrame
    Content of the file as a pandas DataFrame (of columns)
r   )Úuse_threads©r   Ú	to_pandas)r   r   r)   s   &&&r   Úread_pandasÚFeatherDataset.read_pandasL   s*   € ð  �‰ wˆÓ/×9Ñ9Ø#ð :ó %ð 	%r   )r   r   r   r   )Tr   )NT)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r,   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s$   ø‡ € ñ	ô/ô+ò2G÷
%ò %r   r   c                 óð   € VP                   ^8X  d   R# VP                  \        P                  ! 4       \        P                  ! 4       39   d   \        RV  R24      h\        RV  RVP                   R24      h)r   NzColumn 'zg' exceeds 2GB maximum capacity of a Feather binary column. This restriction may be lifted in the futurez
' of type zU was chunked on conversion to Arrow and cannot be currently written to Feather format)Ú
num_chunksÚtypeÚextÚbinaryÚstringr%   )ÚnameÚcols   &&r   Úcheck_chunked_overflowr>   `   sw   € Ø
‡~�~˜ÔÙà
‡x�x”C—J’J“L¤#§*¢*£,Ð/Ô/Ü˜8 D 6ð *0ð 0ó 1ð 	1ô
 Ø�t�f˜J s§x¡x jð 1@ð @ó
ð 	
r   c           	     óD  € \         P                  '       dQ   \         P                  '       d;   \        V \         P                  P
                  4      '       d   V P                  4       p \         P                  ! V 4      '       dz   V^8X  d   RpMV^8X  d   RpM\        R4      h\        P                  ! WR7      pV^8X  d<   \        VP                  P                  4       F  w  r‰Wx,          p
\        Wš4       K  	  MT pV^8X  da   \        VP                   4      \        \#        VP                   4      4      8”  d   \        R4      hVe   \        R4      hVe   \        R4      hMGVf    \$        P&                  ! R4      '       d   R	pM$Ve!   V\(        9  d   \        R
V R\(         24      h \*        P,                  ! WqVVWER7       R#   \.         dL    \        T\0        4      '       d4    \2        P4                  ! T4       h   \2        P6                   d     h i ; ih i ; i)aF  
Write a pandas.DataFrame to Feather format.

Parameters
----------
df : pandas.DataFrame or pyarrow.Table
    Data to write out as Feather format.
dest : str
    Local destination path.
compression : string, default None
    Can be one of {"zstd", "lz4", "uncompressed"}. The default of None uses
    LZ4 for V2 files if it is available, otherwise uncompressed.
compression_level : int, default None
    Use a compression level particular to the chosen compressor. If None
    use the default compression level
chunksize : int, default None
    For V2 files, the internal maximum size of Arrow RecordBatch chunks
    when writing the Arrow IPC file format. None means use the default,
    which is currently 64K
version : int, default 2
    Feather file version. Version 2 is the current. Version 1 is the more
    limited legacy format
FNz%Version value should either be 1 or 2)Úpreserve_indexz'cannot serialize duplicate column namesz2Feather V1 files do not support compression optionz0Feather V1 files do not support chunksize optionÚ	lz4_frameÚlz4zcompression="z " not supported, must be one of )ÚcompressionÚcompression_levelÚ	chunksizeÚversion)r   Úhave_pandasÚ
has_sparseÚ
isinstanceÚpdÚSparseDataFrameÚto_denseÚis_data_framer%   r   Úfrom_pandasÚ	enumerater   Únamesr>   ÚlenÚcolumn_namesÚsetr   Úis_availableÚ_FEATHER_SUPPORTED_CODECSr	   Úwrite_featherÚ	ExceptionÚstrÚosÚremoveÚerror)ÚdfÚdestrC   rD   rE   rF   r@   r!   Úir<   r=   s   &&&&&&     r   rV   rV   s   sì  € ô2 ××ÐÜ×"×"Ð"Ü˜2œ{Ÿ~™~×=Ñ=×>Ò>Ø—‘“ˆBä× Ò  ×$Ò$ð �aŒ<Ø"‰NØ˜Œ\Ø!‰NäÐDÓEÐEä×!Ò! "ÔDˆà�aŒ<ä$ U§\¡\×%7Ñ%7Ö8‘�Ø•h�Ü& tÖ1ñ 9øð ˆà�!„|Üˆu×!Ñ!Ó"¤S¬¨U×-?Ñ-?Ó)@Ó%AÔAÜÐFÓGÐGàÒ"Üð &ó 'ð 'ð Ò Üð &ó 'ð 'ð !ð Ò¤5×#5Ò#5°k×#BÒ#BØ‰KØÒ%ØÔ!:Ô:Ü˜}¨[¨Mð :'Ü'@Ð&AðCó Dð Dð
Ü×Ò˜u¸Ø1BØ)2÷	Eøô ô Ü�dœC× Ò ðÜ—	’	˜$”ð 	øô —8‘8ô ØØðúàðús0   Æ-G	 Ç	!HÇ+HÈHÈHÈHÈHÈHc                óB   € \        WVVR7      P                  ! RRV/VB # )aN  
Read a pandas.DataFrame from Feather format. To read as pyarrow.Table use
feather.read_table.

Parameters
----------
source : str file path, or file-like object
    You can use MemoryMappedFile as source, for explicitly use memory map.
columns : sequence, optional
    Only read a specific set of columns. If not provided, all columns are
    read.
use_threads : bool, default True
    Whether to parallelize reading using multiple threads. If false the
    restriction is used in the conversion to Pandas as well as in the
    reading from Feather format.
memory_map : boolean, default False
    Use memory mapping when opening file on disk, when source is a str.
**kwargs
    Additional keyword arguments passed on to `pyarrow.Table.to_pandas`.

Returns
-------
df : pandas.DataFrame
    The contents of the Feather file as a pandas.DataFrame
)r   Ú
memory_mapr)   r)   © r*   )Úsourcer   r)   r`   Úkwargss   &&&&,r   Úread_featherrd   Æ   s<   € ô6 Ø¨JØô!ç!*¡ð+ñ Nà7BðNàFLñNð Or   c                ó´  € \         P                  ! WVR7      pVf   VP                  4       # \        V\        4      '       g.   \        RP                  \        V4      P                  4      4      hV Uu. uF  p\        V4      NK  	  pp\        \        R V4      4      '       d   VP                  V4      pMY\        \        R V4      4      '       d   VP                  V4      pM+V Uu. uF  qˆP                  NK  	  p	p\        RV RV	 24      hVP                  ^8  d   V# \        \        V4      4      V8X  d   V# VP!                  V4      # u upi u upi )aO  
Read a pyarrow.Table from Feather format

Parameters
----------
source : str file path, or file-like object
    You can use MemoryMappedFile as source, for explicitly use memory map.
columns : sequence, optional
    Only read a specific set of columns. If not provided, all columns are
    read.
memory_map : boolean, default False
    Use memory mapping when opening file on disk, when source is a str
use_threads : bool, default True
    Whether to parallelize reading using multiple threads.

Returns
-------
table : pyarrow.Table
    The contents of the Feather file as a pyarrow.Table
)Úuse_memory_mapr)   z&Columns must be a sequence but, got {}c                 ó   € V \         8H  # r   )Úint©Úts   &r   Ú<lambda>Úread_table.<locals>.<lambda>  s   € ˜œcšr   c                 ó   € V \         8H  # r   )rX   ri   s   &r   rk   rl     s   € ˜1¤š8r   z.Columns must be indices or names. Got columns z
 of types )r	   ÚFeatherReaderÚreadrI   r   Ú	TypeErrorÚformatr8   r.   ÚallÚmapÚread_indicesÚ
read_namesrF   ÚsortedrS   Úselect)
rb   r   r`   r)   ÚreaderÚcolumnÚcolumn_typesr!   rj   Úcolumn_type_namess
   &&&&      r   r   r   æ   s@  € ô* ×#Ò#Ø°{ôD€Fð ‚Ø�{‰{‹}Ðä�gœx×(Ò(ÜÐ@ß™¤ W£× 6Ñ 6Ó7ó9ð 	9ñ 07Ó7©w V”D˜–L©w€LÐ7Ü
Œ3Ñ! <Ó0×1Ò1Ø×#Ñ# GÓ,‰Ü	ŒSÑ# \Ó2×	3Ò	3Ø×!Ñ! 'Ó*‰á1=Ó>±¨AŸZœZ±ÐÐ>Üð 'Ø'. i¨zÐ:KÐ9LðNó Oð 	Oð ‡~�~˜ÔØˆä	”�G“Ó	 Ô	(Øˆð �|‰|˜GÓ$Ð$ùò% 8ùò ?s   Á4EÃ*E>   rB   ÚzstdÚuncompressed)NNNé   )NTF)NFT)Úcollections.abcr   rY   Úpyarrow.pandas_compatr   Úpyarrow.libr   r   r   r   Úlibr9   Úpyarrowr	   Úpyarrow._featherr
   r   r>   rU   rV   rd   r   ra   r   r   Ú<module>r…      sN   ðõ& %Û 	å -÷0ó 0å Ý Ý )÷?%ñ ?%òD
ò  <Ð ôPôfOö@1%r   