summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 844c069c0..a1048002c 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1022,7 +1022,7 @@ def select(condlist, choicelist, default=0):
dtype = np.result_type(*choicelist)
# Convert conditions to arrays and broadcast conditions and choices
- # as the shape is needed for the result. Doing it seperatly optimizes
+ # as the shape is needed for the result. Doing it separately optimizes
# for example when all choices are scalars.
condlist = np.broadcast_arrays(*condlist)
choicelist = np.broadcast_arrays(*choicelist)
@@ -1244,7 +1244,7 @@ def gradient(f, *varargs, **kwargs):
# Convert datetime64 data into ints. Make dummy variable `y`
# that is a view of ints if the data is datetime64, otherwise
- # just set y equal to the the array `f`.
+ # just set y equal to the array `f`.
if f.dtype.char in ["M", "m"]:
y = f.view('int64')
else: