in tools/pq.py [0:0]
def bytes_per_row(self) -> int:
nbits = 0
for t in self._ds.schema.types:
try:
nbits += t.bit_width
except:
# Just estimate size if it is variable
nbits += 8
return nbits // 8