diff --git a/python/pyarrow/_parquet.pyx b/python/pyarrow/_parquet.pyx index 097f1a6f06184..a06879d05031f 100644 --- a/python/pyarrow/_parquet.pyx +++ b/python/pyarrow/_parquet.pyx @@ -1612,11 +1612,10 @@ cdef shared_ptr[WriterProperties] _create_writer_properties( # page index - if isinstance(write_page_index, bool): - if write_page_index: - props.enable_write_page_index() - else: - props.disable_write_page_index() + if write_page_index: + props.enable_write_page_index() + else: + props.disable_write_page_index() properties = props.build()