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

Method files

python/pyarrow/parquet/core.py:1704–1727  ·  view source on GitHub ↗

A list of absolute Parquet file paths in the Dataset source. Examples -------- Generate an example dataset: >>> import pyarrow as pa >>> table = pa.table({'year': [2020, 2022, 2021, 2022, 2019, 2021], ... 'n_legs': [2, 2, 4

(self)

Source from the content-addressed store, hash-verified

1702
1703 @property
1704 def files(self):
1705 """
1706 A list of absolute Parquet file paths in the Dataset source.
1707
1708 Examples
1709 --------
1710 Generate an example dataset:
1711
1712 >>> import pyarrow as pa
1713 >>> table = pa.table({'year': [2020, 2022, 2021, 2022, 2019, 2021],
1714 ... 'n_legs': [2, 2, 4, 4, 5, 100],
1715 ... 'animal': ["Flamingo", "Parrot", "Dog", "Horse",
1716 ... "Brittle stars", "Centipede"]})
1717 >>> import pyarrow.parquet as pq
1718 >>> pq.write_to_dataset(table, root_path='dataset_v2_files',
1719 ... partition_cols=['year'])
1720 >>> dataset = pq.ParquetDataset('dataset_v2_files/')
1721
1722 List the files:
1723
1724 >>> dataset.files
1725 ['dataset_v2_files/year=2019/...-0.parquet', ...
1726 """
1727 return self._dataset.files
1728
1729 @property
1730 def filesystem(self):

Callers 1

conftest.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected