The WiML Symposium 2023 returns December 7! Join the livestream at 9:30 AM PST
Register
tfds.as_dataframe
Stay organized with collections
Save and categorize content based on your preferences.
Convert the dataset into a pandas dataframe.
tfds.as_dataframe(
ds: tf.data.Dataset, ds_info: Optional[dataset_info.DatasetInfo] = None
) -> pd.DataFrame
Used in the notebooks
Warning: The dataframe will be loaded entirely in memory, you may
want to call tfds.as_dataframe
on a subset of the data instead: df = tfds.as_dataframe(ds.take(10), ds_info)
Args
ds
tf.data.Dataset
. The tf.data.Dataset 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
Returns
dataframe
The pandas.DataFrame
object
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-09-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]