From 0a293a3554a7c32ea3b6cb5b328b5854fc8ab3d9 Mon Sep 17 00:00:00 2001 From: "Joseph R. Fox-Rabinovitz" Date: Wed, 18 Sep 2019 01:38:06 -0400 Subject: DOC: Added missing versionadded to diff(prepend) --- numpy/lib/function_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'numpy/lib/function_base.py') 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 ------- -- cgit v1.2.1