From 3d1be2f1c79a4029857748d7c0755a08f316e18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Verrier?= Date: Mon, 26 Sep 2022 21:38:36 +0200 Subject: [PATCH] Ensure inplace_swap_row_csr passes numpydoc --- sklearn/tests/test_docstrings.py | 1 - sklearn/utils/sparsefuncs.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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 ----------