HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/io/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/io/__pycache__/orc.cpython-36.pyc
3

���h��@shdZddlZddlmZmZmZddlmZddlm	Z	erHddl
mZdeeeedd�d	d
�Z
dS)z orc compat �N)�
TYPE_CHECKING�List�Optional)�FilePathOrBuffer)�get_filepath_or_buffer)�	DataFramer)�path�columns�returncKsbddl}tjj|j�dkr"td��ddl}t|�\}}}}|jj	|�}|j
fd|i|��j�}|S)az
    Load an ORC object from the file path, returning a DataFrame.

    .. versionadded:: 1.0.0

    Parameters
    ----------
    path : str, path object or file-like object
        Any valid string path is acceptable. 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``.

        If you want to pass in a path object, pandas accepts any
        ``os.PathLike``.

        By file-like object, we refer to objects with a ``read()`` method,
        such as a file handler (e.g. via builtin ``open`` function)
        or ``StringIO``.
    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
    rNz0.13.0z&pyarrow must be >= 0.13.0 for read_orcr	)�pyarrow�	distutils�versionZLooseVersion�__version__�ImportErrorZpyarrow.orcrZorcZORCFile�readZ	to_pandas)rr	�kwargsr�_Zorc_file�result�r�//tmp/pip-build-5_djhm0z/pandas/pandas/io/orc.py�read_orcs r)N)�__doc__rZtypingrrrZpandas._typingrZpandas.io.commonrZpandasr�strrrrrr�<module>s