Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NumPyA 7 - FOR CREDIT Create a . ipynb file called NumPyA 7 credit.ipynb and complete the following. For this assignment load but DO NOT
NumPyA FOR CREDIT
Create a ipynb file called NumPyAcredit.ipynb and complete the following.
For this assignment load but DO NOT INSTALL NumP: run the following at the top of
your script and then complete the questions:
import numpy as np
Assume all arrays are NumPy arrays, unless otherwise specified
Everything is case sensitive so BE CAREFUL
After you create the object eg Q DO NOT PRINT! Your file should something look
like this:
QHello
Q x:
Before attempting these make sure to watch CodeGrade
Walkthrough in module if you do not you will not
understand how assignments work!
For reference:
CodeGrade tips and FAQ
CodeGrade What to do if my code doesnt work?
Create an array of even integers two through sixteen called q Index that array to
obtain the following:
Assign it to Q
Create the following array called q:
Then index q with q Assign it to Q
Reshape q into a four by two array. Assign it to Q
Index Q to obtain the following array:
Assign it to Q
Index Q to obtaining the following array:
Assign it to Q
Set a random seed of
Create an array of ten random integers through Then sort the array so the
values are in numerical order. Assign it to Q
Create a four by five array of random integers through and call it q Then
sort the array by columns. Assign it to Q
Now sort the q array by rows. Assign it to Q
Create a structured array, called q with the following information:
Fruit Color Ranking
Grape Purple
Apple Red
Banana Yellow
Index q to obtain the following:
Assign it to Q
Index q to obtain the following:
Assign it to Q
Index q by all Rankings less than Assign it to Q
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