From a7a635db8ef921b0af0fa999719992ae86cc421d Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Fri, 7 Feb 2025 15:46:37 -0600 Subject: [PATCH] more format --- python/pyarrow/_parquet.pyx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/pyarrow/_parquet.pyx b/python/pyarrow/_parquet.pyx index 23e54ed52b0e6..fbd05cf161752 100644 --- a/python/pyarrow/_parquet.pyx +++ b/python/pyarrow/_parquet.pyx @@ -452,7 +452,11 @@ cdef class ColumnChunkMetaData(_Weakrefable): Dictionary with a key for each attribute of this class. """ statistics = self.statistics.to_dict() if self.is_stats_set else None - geospatial_statistics = self.geospatial_statistics.to_dict() if self.is_geometry_stats_set else None + if self.is_geometry_stats_set: + geospatial_statistics = self.geospatial_statistics.to_dict() + else: + geospatial_statistics = None + d = dict( file_offset=self.file_offset, file_path=self.file_path,