xorbits.datasets.Dataset.to_dataframe#
- Dataset.to_dataframe(types_mapper=None)[源代码]#
Convert the dataset to xorbits dataframe.
The conversion will be chunk to chunk.
- 参数
types_mapper (Callable) – The types mapper to pandas dataframe.
- 返回类型
实际案例
>>> import xorbits.datasets as xdatasets >>> ds = xdatasets.from_huggingface("rotten_tomatoes", split="train") >>> df = ds.to_dataframe()