File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2813,9 +2813,10 @@ def train_test_split(
28132813
28142814 Parameters
28152815 ----------
2816- *arrays : sequence of indexables with same length / shape[0]
2817- Allowed inputs are lists, numpy arrays, scipy-sparse
2818- matrices or pandas dataframes.
2816+ *arrays : sequence of array-like of shape (n_samples,) or \
2817+ (n_samples, n_outputs)
2818+ Indexable data-structures can be arrays, lists, dataframes, scipy
2819+ sparse matrices or pandas dataframes with consistent first dimension.
28192820
28202821 test_size : float or int, default=None
28212822 If float, should be between 0.0 and 1.0 and represent the proportion
@@ -2839,7 +2840,7 @@ def train_test_split(
28392840 Whether or not to shuffle the data before splitting. If shuffle=False
28402841 then stratify must be None.
28412842
2842- stratify : array-like, default=None
2843+ stratify : array-like of shape (n_samples,) , default=None
28432844 If not None, data is split in a stratified fashion, using this as
28442845 the class labels.
28452846 Read more in the :ref:`User Guide <stratification>`.
You can’t perform that action at this time.
0 commit comments