a
    <b^                     @  sl   d Z ddlmZ ddlmZ ddlmZmZ ddlm	Z	 ddl
mZ erTddlmZ dd	d
ddddZdS )z orc compat     )annotations)TYPE_CHECKING)FilePath
ReadBuffer)import_optional_dependency)
get_handle)	DataFrameNzFilePath | ReadBuffer[bytes]zlist[str] | Noner   )pathcolumnsreturnc                 K  s^   t d}t| ddd4}||j}|jf d|i| W  d   S 1 sP0    Y  dS )a  
    Load an ORC object from the file path, returning a DataFrame.

    .. versionadded:: 1.0.0

    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, and file. For file URLs, a host is
        expected. A local file could be:
        ``file://localhost/path/to/table.orc``.
    columns : list, default None
        If not None, only these columns will be read from the file.
    **kwargs
        Any additional kwargs are passed to pyarrow.

    Returns
    -------
    DataFrame

    Notes
    -------
    Before using this function you should read the :ref:`user guide about ORC <io.orc>`
    and :ref:`install optional dependencies <install.warn_orc>`.
    zpyarrow.orcrbF)Zis_textr
   N)r   r   ZORCFilehandlereadZ	to_pandas)r	   r
   kwargsZorcZhandlesZorc_file r   ]/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/pandas/io/orc.pyread_orc   s     r   )N)__doc__
__future__r   typingr   Zpandas._typingr   r   Zpandas.compat._optionalr   Zpandas.io.commonr   Zpandasr   r   r   r   r   r   <module>   s    