Skip to content

Commit 08faa3c

Browse files
Use explicit copy=False in docstring example
- This change was made to prevent `FutureWarning` from being raised by the example
1 parent d304e10 commit 08faa3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sklearn/preprocessing/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,7 @@ def quantile_transform(X, axis=0, n_quantiles=1000,
25172517
>>> from sklearn.preprocessing import quantile_transform
25182518
>>> rng = np.random.RandomState(0)
25192519
>>> X = np.sort(rng.normal(loc=0.5, scale=0.25, size=(25, 1)), axis=0)
2520-
>>> quantile_transform(X, n_quantiles=10, random_state=0)
2520+
>>> quantile_transform(X, n_quantiles=10, random_state=0, copy=False)
25212521
... # doctest: +ELLIPSIS
25222522
array([...])
25232523

0 commit comments

Comments
 (0)