NumPy - np.diff() - Discrete Difference
• np.diff() calculates discrete differences between consecutive elements along a specified axis, essential for numerical differentiation, edge detection, and analyzing rate of change in datasets
• np.diff() calculates discrete differences between consecutive elements along a specified axis, essential for numerical differentiation, edge detection, and analyzing rate of change in datasets