Professional Documents
Culture Documents
Python Lab7 Report Summary
Python Lab7 Report Summary
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: