Question: Now let's do something with a 2 - D array of Dow Jones Industrial Average in 2 0 0 8 The array data _ problem

Now let's do something with a 2-D array of Dow Jones Industrial Average in 2008 The array data_problem_sets_1.csv is a 2-D array with each row holding the daily performance of the Dow Jones Industrial Average from the beginning of 2008(dates have been removed for exercise simplicity). The array has the following structure:: OPEN HIGH LOW CLOSE VOLUME ADJ_CLOSE 13261.8213338.2312969.4213043.96345265000013043.9613044.1213197.4312968.4413056.72342950000013056.7213046.5613049.6512740.5112800.18416600000012800.1812801.1512984.9512640.4412827.49422126000012827.4912820.912998.1112511.0312589.07470539000012589.0712590.2112814.9712431.5312735.31535103000012735.31 Below you will find the necessary modules for the task. from numpy import loadtxt, sum, where Below are constants that indicate what data is held in each column of the dow array. OPEN =0 HIGH =1 LOW =2 CLOSE =3 VOLUME =4 ADJ_CLOSE =5 data_problem_sets_3.csv is our NumPy array that you will manipulate. Below you will find another way to load your csv file :) dow =\ loadtxt("data_problem_sets_3.csv", delimiter=",") dow array([[1.326182e+04,1.333823e+04,1.296942e+04,1.304396e+04,3.452650e+09,1.304396e+04],[1.304412e+04,1.319743e+04,1.296844e+04,1.305672e+04,3.429500e+09,1.305672e+04],[1.304656e+04,1.304965e+04,1.274051e+04,1.280018e+04,4.166000e+09,1.280018e+04],...,[1.141246e+04,1.157514e+04,1.134969e+04,1.150251e+04,3.499610e+09,1.150251e+04],[1.149987e+04,1.175646e+04,1.149372e+04,1.171518e+04,3.854280e+09,1.171518e+04],[1.171323e+04,1.173049e+04,1.150878e+04,1.154355e+04,3.288120e+09,1.154355e+04]]) Question 10-1. Please create a mask array that indicates which rows have a volume greater than 5.5 billion. Hint: The mask refers to boolean masking. How would you go about doing boolean masking? How will you apply the mask to the dataframe?

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 Programming Questions!