Question: USING THE SIMPLEST POSSIBLE PYTHON CODE PLEASE FINISH THE FOLLOWING # QUESTION: Given an arbitrary array X, complete the function filter to # a) select

USING THE SIMPLEST POSSIBLE PYTHON CODE PLEASE FINISH THE FOLLOWING

USING THE SIMPLEST POSSIBLE PYTHON CODE PLEASE FINISH THE FOLLOWING # QUESTION:

# QUESTION: Given an arbitrary array X, complete the function filter to # a) select rows that have no negative values # b) select columns whose sum is bigger than 15 import pandas as pd import numpy as np def filter (X): # # COMPLETE HERE return X #the following lines create a random array to test your function with that. np.random.seed (10) A = np.random.randint(10,size=(4,7)) A[1,3] = -1.0 print (str(A)+' ') print(filter(A))

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!