'numpy.ndarray' object is not callable error code example

Example 1: jupyter notebook "TypeError: 'numpy.ndarray' object is not callable"

Sometimes, when a function name and a variable name to which the return of the function is stored are same, the error is shown. Just happened to me.

Example 2: TypeError: 'numpy.ndarray' object is not callable

The error TypeError: 'numpy. ndarray' object is not callable 
means that you tried to call a numpy array as a function.
Sometimes, when a function name and a variable name to which the return 
of the function is stored are same, the error is shown.