Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Report Summary - LAB 7

1. Did you successfully get your assignment done? Did it run? Any error? Did you
get the correct result? Did you test your program thoroughly?
A. Yes, it executed without any error and got the expected correct result.
Tested with both happy and unhappy journeys. Code has given expected
output in all the scenarios
2. How much time did you spend completing your assignment?
A. I have spent around 5 hours for completing assignment
3. Did you find the assignment easy or challenging for you?
A. It is of moderate difficulty
4. Did you write the program yourself? Did you get any help from anyone?
A. I have written the program myself. Didn’t ask anyone for help
5. When you encountered obstacles to completing your program, how did you
resolve the issues? Did you use Google to get help? Describe how Google was
able or not able to assist you?
A. Didn’t face any obstacles while writing the program, but I have referred the
python docs and other articles for helper methods
6. What did you learn from doing this assignment?
A. I have learned Slicing, sub setting, fancy indexing, array manipulation
techniques of NumPy and reading csv using NumPy; Learned statistical
methods of SciPy
7. Any other information you would like to share with your instructor? Make sure
you provide program output on each option.
A. No. Output of programs are given below
Question #1

(INDEXING AND SLICING ARRAYS) Create an array containing the values 1–15, reshape it into a
3-by-5 array, then use indexing and slicing techniques to perform each of the following
operations:
Select row 2.
Select column 4.
Select rows 0 and 1. Select columns 2–4.
Select the element that is in row 1 and column 4.
Select all elements from rows 1 and 2 that are in columns 0, 2 and 4

Output:
Question #2

Write a program to load a given dataset called Student_Grades.csv into a NumPy array. Then
determine the following items:

1. a)  Display all data on screen.


2. b)  Determine how many students were in the dataset?
3. c)  Display the number of rows and columns of your numpy array.
4. d)  Display the array data types.
5. e)  Display the following Descriptive Statistics of students’ overall percentage scores:
1. Min score
2. Max score
3. Mean value
4. Median
5. Mode
6. Standard Deviation
7. 25% and 75% percentile
6. f)  Determine how many students achieved an A grade, B, C, D and F grades.
7. g)  Create a pie chart based on the above grade achievements (option f)
Output:

You might also like