Skip to content

Commit

Permalink
MINOR: [Python] Fix Partitioning parse() docstring example (apache#13269
Browse files Browse the repository at this point in the history
)

Authored-by: Joris Van den Bossche <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
  • Loading branch information
jorisvandenbossche authored May 31, 2022
1 parent 56cdaae commit 4847b85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyarrow/_dataset.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ cdef class DirectoryPartitioning(KeyValuePartitioning):
>>> from pyarrow.dataset import DirectoryPartitioning
>>> partitioning = DirectoryPartitioning(
... pa.schema([("year", pa.int16()), ("month", pa.int8())]))
>>> print(partitioning.parse("/2009/11"))
>>> print(partitioning.parse("/2009/11/"))
((year == 2009) and (month == 11))
"""

Expand Down Expand Up @@ -1595,7 +1595,7 @@ cdef class HivePartitioning(KeyValuePartitioning):
>>> from pyarrow.dataset import HivePartitioning
>>> partitioning = HivePartitioning(
... pa.schema([("year", pa.int16()), ("month", pa.int8())]))
>>> print(partitioning.parse("/year=2009/month=11"))
>>> print(partitioning.parse("/year=2009/month=11/"))
((year == 2009) and (month == 11))
"""
Expand Down Expand Up @@ -1719,7 +1719,7 @@ cdef class FilenamePartitioning(KeyValuePartitioning):
>>> from pyarrow.dataset import FilenamePartitioning
>>> partitioning = FilenamePartitioning(
... pa.schema([("year", pa.int16()), ("month", pa.int8())]))
>>> print(partitioning.parse("2009_11_"))
>>> print(partitioning.parse("2009_11_data.parquet"))
((year == 2009) and (month == 11))
"""

Expand Down

0 comments on commit 4847b85

Please sign in to comment.