diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-01-16 13:55:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-16 13:55:11 +0100 |
commit | 8f547f246b0c7463768adebafe0a57df9c03321b (patch) | |
tree | 806f621ee5cb00b93f1ec92e0016578b344d468a /numpy | |
parent | 49689f7be478fe9a4d33761b080eb6aef3f8f899 (diff) | |
parent | 38e5bad90699b88e54e9d067250a83f466e20d5d (diff) | |
download | numpy-8f547f246b0c7463768adebafe0a57df9c03321b.tar.gz |
Merge pull request #12758 from ajschol/patch-1
DOC: Update docstring of diff() to use 'i' not 'n'
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index fa1f42252..b61a64b8e 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1150,7 +1150,7 @@ def diff(a, n=1, axis=-1, prepend=np._NoValue, append=np._NoValue): """ Calculate the n-th discrete difference along the given axis. - The first difference is given by ``out[n] = a[n+1] - a[n]`` along + The first difference is given by ``out[i] = a[i+1] - a[i]`` along the given axis, higher differences are calculated by using `diff` recursively. |