49188/error-while-converting-a-list-into-a-numpy-array
I have a list
len(list) = 9260 list[0].shape = (224,224,3)
Now when I try to convert it to a numpy array,
x = np.array(list)
I get the following error:
ValueError: could not broadcast input array from shape (224,224,3) into shape (224,224)
Use this line: numpy_array = np.array(list) And printing/displaying the ...READ MORE
Hi, it is pretty simple, to be ...READ MORE
Hello @kartik, You can use Numpy's genfromtxt() method to do ...READ MORE
Hello @kartik, You just need to convert your ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
Here's a generator that yields the chunks ...READ MORE
readline function help to read line in ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.