summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-09-18 10:07:54 +0300
committerGitHub <noreply@github.com>2019-09-18 10:07:54 +0300
commit804e2ac74084cda582f09120da7239826a1da7da (patch)
tree96c52753f508e3b08249a0064e8c23e1535acf3c /numpy/lib/function_base.py
parent0ba8659a5ea1fc999c28d41fb33cf225c6588089 (diff)
parent0a293a3554a7c32ea3b6cb5b328b5854fc8ab3d9 (diff)
downloadnumpy-804e2ac74084cda582f09120da7239826a1da7da.tar.gz
Merge pull request #14540 from madphysicist/diff-versions
DOC: Added missing versionadded to diff(prepend)
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 21532838b..e39bbf63a 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1167,11 +1167,13 @@ def diff(a, n=1, axis=-1, prepend=np._NoValue, append=np._NoValue):
The axis along which the difference is taken, default is the
last axis.
prepend, append : array_like, optional
- Values to prepend or append to "a" along axis prior to
+ Values to prepend or append to `a` along axis prior to
performing the difference. Scalar values are expanded to
arrays with length 1 in the direction of axis and the shape
of the input array in along all other axes. Otherwise the
- dimension and shape must match "a" except along axis.
+ dimension and shape must match `a` except along axis.
+
+ .. versionadded:: 1.16.0
Returns
-------