TextData.head#
- TextData.head(n_samples: int = 5, model_classes: Optional[list] = None) DataFrame [source]#
Return a copy of the dataset as a pandas Dataframe with the first n_samples samples.
- Parameters
- n_samplesint, default 5
Number of samples to return.
- model_classeslist, default None
List of classes names to use for multi-label display. Only used if the dataset is multi-label.
- Returns
- pd.DataFrame
A copy of the dataset as a pandas Dataframe with the first n_samples samples.