Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pandas/io/__pycache__/orc.cpython-37.pyc
Назад
B �5�g� � @ sh d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z erPddlmZ dd d dd�d d�Z dS )z orc compat � )�annotations)� TYPE_CHECKING)�FilePathOrBuffer)�import_optional_dependency)� get_handle)� DataFrameNr zlist[str] | Noner )�path�columns�returnc K sF t d�}t| ddd��&}|�|j�}|jf d|i|���� S Q R X dS )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 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 handle (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 Notes ------- Before using this function you should read the :ref:`user guide about ORC <io.orc>` and :ref:`install optional dependencies <install.warn_orc>`. zpyarrow.orc�rbF)Zis_textr N)r r ZORCFile�handle�readZ to_pandas)r r �kwargsZorcZhandlesZorc_file� r �C/home/digitalm-up/venv/lib/python3.7/site-packages/pandas/io/orc.py�read_orc s &r )N)�__doc__� __future__r �typingr Zpandas._typingr Zpandas.compat._optionalr Zpandas.io.commonr Zpandasr r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка