...the difference of contents of an array with n=3
res =
np.diff
(
my_arr,
n=
3
)
print
(
'The result after applying diff() with n=3:'
,
res)
Book traversal links for NumPy Difference
‹ Python Recursive and Lambda Functions
Up
Python Input ›
Download
*** Hidden text ***