summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorJoseph R. Fox-Rabinovitz <jfoxrabinovitz@gmail.com>2019-09-18 01:38:06 -0400
committerJoseph R. Fox-Rabinovitz <jfoxrabinovitz@gmail.com>2019-09-18 01:38:06 -0400
commit0a293a3554a7c32ea3b6cb5b328b5854fc8ab3d9 (patch)
tree96c52753f508e3b08249a0064e8c23e1535acf3c /numpy/lib/function_base.py
parent0ba8659a5ea1fc999c28d41fb33cf225c6588089 (diff)
downloadnumpy-0a293a3554a7c32ea3b6cb5b328b5854fc8ab3d9.tar.gz
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
-------