summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorRohit Goswami <rgoswami@quansight.com>2022-03-21 10:43:06 +0000
committerGitHub <noreply@github.com>2022-03-21 10:43:06 +0000
commit145ed90f638c1a12ce5b06e9100421f99783f431 (patch)
treec51eab206de10693fd69fd12732790b2d677b25a /numpy/lib
parent1d9ade8895f8f385e1d44f41a752dbb9ba3438b2 (diff)
parentc4efd1f2f23bffb5de34a6348bcdbb33d7d0365a (diff)
downloadnumpy-145ed90f638c1a12ce5b06e9100421f99783f431.tar.gz
Merge pull request #21226 from Carreau/more-docs_II
DOC: misc fixes
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/_datasource.py5
-rw-r--r--numpy/lib/arraysetops.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/numpy/lib/_datasource.py b/numpy/lib/_datasource.py
index 8201d3772..b7778234e 100644
--- a/numpy/lib/_datasource.py
+++ b/numpy/lib/_datasource.py
@@ -280,8 +280,9 @@ class DataSource:
def _splitzipext(self, filename):
"""Split zip extension from filename and return filename.
- *Returns*:
- base, zip_ext : {tuple}
+ Returns
+ -------
+ base, zip_ext : {tuple}
"""
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index bd56b6975..d44e1a983 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -640,7 +640,7 @@ def _isin_dispatcher(element, test_elements, assume_unique=None, invert=None):
@array_function_dispatch(_isin_dispatcher)
def isin(element, test_elements, assume_unique=False, invert=False):
"""
- Calculates `element in test_elements`, broadcasting over `element` only.
+ Calculates ``element in test_elements``, broadcasting over `element` only.
Returns a boolean array of the same shape as `element` that is True
where an element of `element` is in `test_elements` and False otherwise.