Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
# 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started