Skip to content

Commit a56c840

Browse files
authored
DOC Corrected the datatype of target_names for load_iris (scikit-learn#31009)
1 parent 8951184 commit a56c840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/datasets/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def load_iris(*, return_X_y=False, as_frame=False):
673673
a pandas Series.
674674
feature_names: list
675675
The names of the dataset columns.
676-
target_names: list
676+
target_names: ndarray of shape (3, )
677677
The names of target classes.
678678
frame: DataFrame of shape (150, 5)
679679
Only present when `as_frame=True`. DataFrame with `data` and

0 commit comments

Comments
 (0)