| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/pyarrow.dataset.Partitioning.html | [Back] [Original] |
Section Navigation
Bases: _Weakrefable
Methods
|
|
|
Convert a filter expression into a tuple of (directory, filename) using the current partitioning scheme |
|
Parse a path into a partition expression. |
Attributes
The arrow Schema attached to the partitioning. |
Convert a filter expression into a tuple of (directory, filename) using the current partitioning scheme
Examples
Specify the Schema for paths like /2009/June:
>>> import pyarrow as pa
>>> import pyarrow.dataset as ds
>>> import pyarrow.compute as pc
>>> part = ds.partitioning(pa.schema([("year", pa.int16()),
... ("month", pa.string())]))
>>> part.format(
... (pc.field("year") == 1862) & (pc.field("month") == "Jan")
... )
('1862/Jan', '')
The arrow Schema attached to the partitioning.
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |