Change from np.array to asarray when setting from non-ndarray item