pandas.read_orc

pandas 3.1.1 · Input and output · function

Load an ORC file into a DataFrame, with optional column selection.

Call syntax

pd.read_orc(path, columns=None, dtype_backend=…, filesystem=None, **kwargs)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
path Required
Positional or keyword
str, path object, or file-like object

Supply a file path or file-like object where supported.

columns Optional
Positional or keyword
Default None
list

Supply column labels or control how columns are handled.

dtype_backend Optional
Positional or keyword
{'numpy_nullable', 'pyarrow'}

Choose nullable NumPy-backed dtypes or Arrow-backed dtypes.

filesystem Optional
Positional or keyword
Default None
fsspec or pyarrow filesystem

Provide a filesystem object for accessing the dataset.

**kwargs Optional
Additional keyword arguments

Returns

DataFrame