AttributeError: 'DType' object has no attribute 'type' code example Example: AttributeError: 'list' object has no attribute 'dtypes' data = np.array(data, dtype=np.float32)