Part 4 - NumPy MCQ Questions | Data Science MCQ Questions

Опубликовано: 15 Октябрь 2024
на канале: TecTute
166
8

1. Which NumPy function is used to calculate the square root of elements in an array?
A. np.sqrt()

2. Which function is used to horizontally stack multiple arrays in NumPy?
C np.reshape()

3. Which function is used to flatten a multi-dimensional array in NumPy?
C. np.reshape()

What does np.sum() do in NumPy? - Bonus
A) Finds the sum of elements in an array

#python #interviewquestions #pandas #pandastutorial