xorbits.datasets.Dataset.to_dataframe#

Dataset.to_dataframe(types_mapper=None)[source]#

Convert the dataset to xorbits dataframe.

The conversion will be chunk to chunk.

Parameters

types_mapper (Callable) – The types mapper to pandas dataframe.

Return type

DataFrame

Examples

>>> import xorbits.datasets as xdatasets
>>> ds = xdatasets.from_huggingface("rotten_tomatoes", split="train")
>>> df = ds.to_dataframe()