Question 13 (Intermediate):
In NumPy, what is the difference between
A) The first is a 1D array, the second is a 2D row vector
B) The first is faster to compute
C) The second automatically transposes the data
D) They are identical in memory usage
#Python #NumPy #Arrays #DataScience
✅ By: https://t.me/DataScienceQ
In NumPy, what is the difference between
np.array([1, 2, 3])
and np.array([[1, 2, 3]])
? A) The first is a 1D array, the second is a 2D row vector
B) The first is faster to compute
C) The second automatically transposes the data
D) They are identical in memory usage
#Python #NumPy #Arrays #DataScience
✅ By: https://t.me/DataScienceQ
❤3