Attend the Women in ML Symposium on December 7 Register now


Stay organized with collections Save and categorize content based on your preferences.

Convert the dataset into a pandas dataframe.

Used in the notebooks

Used in the tutorials
df = tfds.as_dataframe(ds.take(10), ds_info)

ds The object to convert to panda dataframe. Examples should not be batched. The full dataset will be loaded.
ds_info Dataset info object. If given, helps improving the formatting. Available either through tfds.load('mnist', with_info=True) or tfds.builder('mnist').info

dataframe The pandas.DataFrame object