What is currently stored in np_data?
It looks like it’s stored as a numpy.object_, which happens if not all elements have the same dtype.
Dummy example:
x = np.array([1.0, np.sum])
print(x)
> array([1.0, <function sum at 0x7fb77bcdbd08>], dtype=object)