ray.data.preprocessors.Categorizer.preferred_batch_format#

classmethod Categorizer.preferred_batch_format() BatchFormat#

Batch format hint for upstream producers to try yielding best block format.

The preferred batch format to use if both _transform_pandas and _transform_numpy are implemented. Defaults to Pandas.

Can be overriden by Preprocessor classes depending on which transform path is the most optimal.

DeveloperAPI: This API may change across minor Ray releases.