
    'h                        S SK Jr  S SK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  \R                  " \5         S SKJr  SSS5        \(       a  S S	KJr  SSS
.       SS jjrg! , (       d  f       N-= f)    )annotationsN)Path)IOTYPE_CHECKING)normalize_filepath)wrap_df)parse_columns_arg)PyDataFrame)	DataFrame)columnsn_rowsc                   [        U [        [        45      (       a  [        U 5      n [	        U5      u  p4[
        R                  " XX25      n[        U5      $ )aJ  
Read into a DataFrame from Apache Avro format.

Parameters
----------
source
    Path to a file or a file-like object (by "file-like object" we refer to objects
    that have a `read()` method, such as a file handler like the builtin `open`
    function, or a `BytesIO` instance). For file-like objects, the stream position
    may not be updated accordingly after reading.
columns
    Columns to select. Accepts a list of column indices (starting at zero) or a list
    of column names.
n_rows
    Stop reading from Apache Avro file after reading `n_rows`.

Returns
-------
DataFrame
)
isinstancestrr   r   r	   r
   	read_avror   )sourcer   r   
projectioncolumn_namespydfs         aC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\polars/io/avro.pyr   r      sH    4 &3+&&#F+09J  zJD4=    )r   zstr | Path | IO[bytes] | bytesr   zlist[int] | list[str] | Noner   z
int | Nonereturnr   )
__future__r   
contextlibpathlibr   typingr   r   polars._utils.variousr   polars._utils.wrapr   polars.io._utilsr	   suppressImportErrorpolars._plrr
   polarsr   r    r   r   <module>r%      st    "   $ 4 & .%' &   -1	* * 	
  &%s   A++
A9