Skip to content

Commit

Permalink
more format
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Feb 7, 2025
1 parent b5dec3b commit a7a635d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pyarrow/_parquet.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a7a635d

Please sign in to comment.