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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!