Question: Python Question 3 3 pts Assuming data is a numpy array, what does the following code do? data[np.logical_not(np.isfinite(data))] = 0.0 Nothing, this crashes. It sets

Python
Question 3 3 pts Assuming data is a numpy array, what does the following code do? data[np.logical_not(np.isfinite(data))] = 0.0 Nothing, this crashes. It sets all values in data that are not finite (infinity or not a number) to 0.0. It returns True if some of the values in data are not finite. o It sets all values in data that are finite to 0.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
