For a more general guide to numerical differentiation and integration (in which you also learn how to code your own routines using numpy), see Chapter 5: Integrals and Derivatives from the Python-based textbook Computational Physics by Mark Newman \cite{mark2013}.