Python for Data Science / Practice quiz
Python NumPy
Python NumPy Quiz
4 questions
- If you have a NumPy array, in a variable
prices, how would you access the data item at the 5th column, 2nd row?
- If you have a NumPy array, in a variable
- What does arrange(5) do?
- Let's say you have a one-dimensional array called Z. What will be the result of the expression Z = Z[::-1].
- Let's say you have a 3x3 matrix, X, in the form of a NumPy array. Which of the following expressions will return the 2nd element from the 3rd row?
4 left