Skip to content

Commit 92d5602

Browse files
authored
DOC: Remove empty notes (numpy#27706)
* DOC: remove empty notes * DOC: remove empty line
1 parent 744da5f commit 92d5602

17 files changed

+0
-251
lines changed

numpy/_core/_add_newdocs.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,9 +3246,6 @@
32463246
is a new array of the same shape as the input array, with dtype, order
32473247
given by `dtype`, `order`.
32483248
3249-
Notes
3250-
-----
3251-
32523249
Raises
32533250
------
32543251
ComplexWarning

numpy/_core/code_generators/ufunc_docstrings.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,6 @@ def add_newdoc(place, name, doc):
836836
--------
837837
ceil, floor, rint, fix
838838
839-
Notes
840-
-----
841-
842839
Examples
843840
--------
844841
>>> import numpy as np
@@ -1028,7 +1025,6 @@ def add_newdoc(place, name, doc):
10281025
10291026
Notes
10301027
-----
1031-
10321028
rad2deg(x) is ``180 * x / pi``.
10331029
10341030
Examples
@@ -1066,9 +1062,6 @@ def add_newdoc(place, name, doc):
10661062
The output array, element-wise Heaviside step function of `x1`.
10671063
$OUT_SCALAR_2
10681064
1069-
Notes
1070-
-----
1071-
10721065
References
10731066
----------
10741067
.. [1] Wikipedia, "Heaviside step function",
@@ -1269,9 +1262,6 @@ def add_newdoc(place, name, doc):
12691262
--------
12701263
power
12711264
1272-
Notes
1273-
-----
1274-
12751265
Examples
12761266
--------
12771267
>>> import numpy as np
@@ -2219,9 +2209,6 @@ def add_newdoc(place, name, doc):
22192209
--------
22202210
logaddexp2: Logarithm of the sum of exponentiations of inputs in base 2.
22212211
2222-
Notes
2223-
-----
2224-
22252212
Examples
22262213
--------
22272214
>>> import numpy as np
@@ -2262,9 +2249,6 @@ def add_newdoc(place, name, doc):
22622249
--------
22632250
logaddexp: Logarithm of the sum of exponentiations of the inputs.
22642251
2265-
Notes
2266-
-----
2267-
22682252
Examples
22692253
--------
22702254
>>> import numpy as np
@@ -2662,7 +2646,6 @@ def add_newdoc(place, name, doc):
26622646
26632647
Notes
26642648
-----
2665-
26662649
The fmax is equivalent to ``np.where(x1 >= x2, x1, x2)`` when neither
26672650
x1 nor x2 are NaNs, but it is faster and does proper broadcasting.
26682651
@@ -2720,7 +2703,6 @@ def add_newdoc(place, name, doc):
27202703
27212704
Notes
27222705
-----
2723-
27242706
The fmin is equivalent to ``np.where(x1 <= x2, x1, x2)`` when neither
27252707
x1 nor x2 are NaNs, but it is faster and does proper broadcasting.
27262708
@@ -2818,7 +2800,6 @@ def add_newdoc(place, name, doc):
28182800
28192801
Notes
28202802
-----
2821-
28222803
The behavior depends on the arguments in the following way.
28232804
28242805
- If both arguments are 2-D they are multiplied like conventional

numpy/_core/fromnumeric.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ def take(a, indices, axis=None, out=None, mode='raise'):
166166
167167
Notes
168168
-----
169-
170169
By eliminating the inner loop in the description above, and using `s_` to
171170
build simple slice objects, `take` can be expressed in terms of applying
172171
fancy indexing to each 1-d slice::

numpy/_core/multiarray.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,6 @@ def min_scalar_type(a):
632632
out : dtype
633633
The minimal data type.
634634
635-
Notes
636-
-----
637-
638635
See Also
639636
--------
640637
result_type, promote_types, dtype, can_cast
@@ -697,7 +694,6 @@ def result_type(*arrays_and_dtypes):
697694
698695
Notes
699696
-----
700-
701697
The specific algorithm used is as follows.
702698
703699
Categories are determined by first checking which of boolean,
@@ -1006,9 +1002,6 @@ def ravel_multi_index(multi_index, dims, mode=None, order=None):
10061002
--------
10071003
unravel_index
10081004
1009-
Notes
1010-
-----
1011-
10121005
Examples
10131006
--------
10141007
>>> import numpy as np

numpy/_core/shape_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,6 @@ def block(arrays):
839839
840840
Notes
841841
-----
842-
843842
When called with only scalars, ``np.block`` is equivalent to an ndarray
844843
call. So ``np.block([[1, 2], [3, 4]])`` is equivalent to
845844
``np.array([[1, 2], [3, 4]])``.

numpy/lib/_arraysetops_impl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,6 @@ def isin(element, test_elements, assume_unique=False, invert=False, *,
10661066
10671067
Notes
10681068
-----
1069-
10701069
`isin` is an element-wise function version of the python keyword `in`.
10711070
``isin(a, b)`` is roughly equivalent to
10721071
``np.array([item in b for item in a])`` if `a` and `b` are 1-D sequences.

numpy/lib/_index_tricks_impl.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,6 @@ def diag_indices(n, ndim=2):
968968
--------
969969
diag_indices_from
970970
971-
Notes
972-
-----
973-
974971
Examples
975972
--------
976973
>>> import numpy as np
@@ -1033,9 +1030,6 @@ def diag_indices_from(arr):
10331030
--------
10341031
diag_indices
10351032
1036-
Notes
1037-
-----
1038-
10391033
Examples
10401034
--------
10411035
>>> import numpy as np

numpy/lib/_stride_tricks_impl.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,6 @@ def broadcast_to(array, shape, subok=False):
404404
broadcast_arrays
405405
broadcast_shapes
406406
407-
Notes
408-
-----
409-
410407
Examples
411408
--------
412409
>>> import numpy as np

numpy/lib/_twodim_base_impl.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,6 @@ def mask_indices(n, mask_func, k=0):
856856
--------
857857
triu, tril, triu_indices, tril_indices
858858
859-
Notes
860-
-----
861-
862859
Examples
863860
--------
864861
>>> import numpy as np
@@ -925,9 +922,6 @@ def tril_indices(n, k=0, m=None):
925922
mask_indices : generic function accepting an arbitrary mask function.
926923
tril, triu
927924
928-
Notes
929-
-----
930-
931925
Examples
932926
--------
933927
>>> import numpy as np
@@ -1038,10 +1032,6 @@ def tril_indices_from(arr, k=0):
10381032
See Also
10391033
--------
10401034
tril_indices, tril, triu_indices_from
1041-
1042-
Notes
1043-
-----
1044-
10451035
"""
10461036
if arr.ndim != 2:
10471037
raise ValueError("input array must be 2-d")
@@ -1079,9 +1069,6 @@ def triu_indices(n, k=0, m=None):
10791069
mask_indices : generic function accepting an arbitrary mask function.
10801070
triu, tril
10811071
1082-
Notes
1083-
-----
1084-
10851072
Examples
10861073
--------
10871074
>>> import numpy as np
@@ -1195,10 +1182,6 @@ def triu_indices_from(arr, k=0):
11951182
See Also
11961183
--------
11971184
triu_indices, triu, tril_indices_from
1198-
1199-
Notes
1200-
-----
1201-
12021185
"""
12031186
if arr.ndim != 2:
12041187
raise ValueError("input array must be 2-d")

numpy/ma/extras.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,9 +1435,6 @@ def in1d(ar1, ar2, assume_unique=False, invert=False):
14351435
isin : Version of this function that preserves the shape of ar1.
14361436
numpy.in1d : Equivalent function for ndarrays.
14371437
1438-
Notes
1439-
-----
1440-
14411438
Examples
14421439
--------
14431440
>>> import numpy as np
@@ -1485,9 +1482,6 @@ def isin(element, test_elements, assume_unique=False, invert=False):
14851482
in1d : Flattened version of this function.
14861483
numpy.isin : Equivalent function for ndarrays.
14871484
1488-
Notes
1489-
-----
1490-
14911485
Examples
14921486
--------
14931487
>>> import numpy as np
@@ -2214,9 +2208,6 @@ def clump_unmasked(a):
22142208
The list of slices, one for each continuous region of unmasked
22152209
elements in `a`.
22162210
2217-
Notes
2218-
-----
2219-
22202211
See Also
22212212
--------
22222213
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
@@ -2253,9 +2244,6 @@ def clump_masked(a):
22532244
The list of slices, one for each continuous region of masked elements
22542245
in `a`.
22552246
2256-
Notes
2257-
-----
2258-
22592247
See Also
22602248
--------
22612249
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges

0 commit comments

Comments
 (0)