ray.data.Dataset.count#

Dataset.count() int[source]#

Count the number of records in the dataset.

Time complexity: O(dataset size / parallelism), O(1) for parquet

Returns

The number of records in the dataset.