pandas.DataFrame.to_orc

pandas 3.1.1 · DataFrame · method

Write a DataFrame in the ORC columnar format.

Call syntax

DataFrame.to_orc(path=None, *, engine='pyarrow', index=None, engine_kwargs=None)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
path Optional
Positional or keyword
Default None
str, file-like object or None

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

engine Optional
Keyword only
Default 'pyarrow'
{'pyarrow'}

Choose the implementation that performs the operation.

index Optional
Keyword only
Default None
bool

Supply row labels or control how existing row labels are used.

engine_kwargs Optional
Keyword only
Default None
dict[str, Any] or None

Pass a dictionary of options to the selected engine.

Returns

bytes if no path argument is provided else None