ray.data.Dataset.input_files#

Dataset.input_files() List[str][source]#

Return the list of input files for the dataset.

Examples

>>> import ray
>>> ds = ray.data.read_csv("s3://anonymous@ray-example-data/iris.csv")
>>> ds.input_files()
['ray-example-data/iris.csv']

Note

If this dataset consists of more than a read, then this operation will trigger execution of the lazy transformations performed on this dataset.

Time complexity: O(num input files)

Returns:

The list of input files used to create the dataset, or an empty list if the input files is not known.