ray.data.Dataset.show#

Dataset.show(limit: int = 20) None[source]#

Print up to the given number of rows from the Dataset.

This method is useful for inspecting data.

Note

This operation will trigger execution of the lazy transformations performed on this dataset.

Examples

>>> import ray
>>> ds = ray.data.range(100)
>>> ds.show(3)
{'id': 0}
{'id': 1}
{'id': 2}

Time complexity: O(limit specified)

Parameters:

limit – The maximum number of row to print.

See also

take()

Call this method to get (not print) a given number of rows.