mindspore.dataset.Dataset.get_col_names

Dataset.get_col_names()[source]

Return the names of the columns in dataset.

Returns

list, list of column names in the dataset.

Examples

>>> # dataset is an instance object of Dataset
>>> col_names = dataset.get_col_names()