class documentation
class TestAsArray: (source)
Test expected behaviors of asarray.
Method | test |
Confirm the intended behavior for dtype kwarg. |
Confirm the intended behavior for dtype kwarg.
The result of asarray() should have the dtype provided through the keyword argument, when used. This forces unique array handles to be produced for unique np.dtype objects, but (for equivalent dtypes), the underlying data (the base object) is shared with the original array object.