ndarray object is not callable code example
Example: 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.