Skip to content

Commit

Permalink
Doctest for Codec
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Aug 23, 2022
1 parent 6b49d22 commit eed7303
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/pyarrow/io.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,17 @@ cdef class Codec(_Weakrefable):
------
ValueError
If invalid compression value is passed.
Examples
--------
>>> import pyarrow as pa
>>> pa.Codec.is_available('gzip')
True
>>> codec = pa.Codec('gzip')
>>> codec.name
'gzip'
>>> codec.compression_level
9
"""

def __init__(self, str compression not None, compression_level=None):
Expand Down

0 comments on commit eed7303

Please sign in to comment.