Some classes, such as Series
in pandas
produce instances that can be called by numpy.array
and turned into numpy arrays.
How do I make instances of a class that I'm writing (which works with a few arrays at the core) be allowed to be passed as argument to numpy.array
and converted to a numpy array?
(perhaps "callable" is not the right word)