MCPcopy Create free account
hub / github.com/apache/arrow / _build_nested_paths

Method _build_nested_paths

python/pyarrow/parquet/core.py:358–375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

356 self.close()
357
358 def _build_nested_paths(self):
359 paths = self.reader.column_paths
360
361 result = defaultdict(list)
362
363 for i, path in enumerate(paths):
364 key = path[0]
365 rest = path[1:]
366 while True:
367 result[key].append(i)
368
369 if not rest:
370 break
371
372 key = '.'.join((key, rest[0]))
373 rest = rest[1:]
374
375 return result
376
377 @property
378 def metadata(self):

Callers 1

__init__Method · 0.95

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected