In Array Indexing and Slicing section, # Create a new 2d array I can run it fine on kaggle but in Python it showed the TypeError: can only concatenate list (not "int") to list So i tried to put 6 and 12 in [] then added: dtype=object The output is [list([1, 2, 3, 4, 5, 6]) list([1, 2, 3, 4, 5, 6, 6]) list([1, 2, 3, 4, 5, 6, 12])] How to fix this?
i have genuinely had a difficult time following this one specific module. so i will skip this and move to the next. perhaps i need a more elementary understanding on numpy arrays
Thank you so much, almost caught up with the lessons. I've been loving these videos, keep them coming!
I'm happy to have found your channel. Thank you for sharing this!
Very well done. Thank you so much for the video.
thank you. I hope you keep making videos!
in some of your output of arrays you are showing commas between numbers. I am not seeing this??
np.reshape(a = two_d_array, newshape = (6, 3))
What is the function of the "a =" in this block of code?
🙄 Self--just watch the video! "a =" is the first part of the argument for specifying which array.
In Array Indexing and Slicing section, # Create a new 2d array
I can run it fine on kaggle but in Python it showed the TypeError: can only concatenate list (not "int") to list
So i tried to put 6 and 12 in [] then added: dtype=object
The output is
[list([1, 2, 3, 4, 5, 6]) list([1, 2, 3, 4, 5, 6, 6])
list([1, 2, 3, 4, 5, 6, 12])]
How to fix this?
I found the solution for this, so dumb that I forgot to convert one_d_array to ndarray
how we concatenate with respect to column
Excellent
thanks
i have genuinely had a difficult time following this one specific module. so i will skip this and move to the next. perhaps i need a more elementary understanding on numpy arrays
Personally my matrix knowledge helped me a lot to understand this module. I recommend looking some linear algebra matrix lessons.