Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

# 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

Please make it fast 3 5 1 . Question in Chemical Engineering

Answered: 1 week ago

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago