diff --git a/sklearn/tests/test_docstrings.py b/sklearn/tests/test_docstrings.py index e0ec4c12f3534..c1d3c54339e65 100644 --- a/sklearn/tests/test_docstrings.py +++ b/sklearn/tests/test_docstrings.py @@ -32,7 +32,6 @@ "sklearn.utils.is_scalar_nan", "sklearn.utils.metaestimators.available_if", "sklearn.utils.metaestimators.if_delegate_has_method", - "sklearn.utils.sparsefuncs.inplace_swap_row_csr", ] FUNCTION_DOCSTRING_IGNORE_LIST = set(FUNCTION_DOCSTRING_IGNORE_LIST) diff --git a/sklearn/utils/sparsefuncs.py b/sklearn/utils/sparsefuncs.py index 0e1a4e19f7f6b..b9427f208b42e 100644 --- a/sklearn/utils/sparsefuncs.py +++ b/sklearn/utils/sparsefuncs.py @@ -294,8 +294,7 @@ def inplace_swap_row_csc(X, m, n): def inplace_swap_row_csr(X, m, n): - """ - Swaps two rows of a CSR matrix in-place. + """Swap two rows of a CSR matrix in-place. Parameters ----------