0% found this document useful (0 votes)
48 views

Python For Data Science

This document is a progress assessment for a Python for Data Science course taken on October 3, 2020. It contains two questions worth a total of 20 marks. Question 1 has two parts - part A contains sample Python code and instructions to output results, worth 1 mark. Part B contains three optional questions worth a total of 6 marks. Question 2 also has two parts - part A is worth 2 marks for explaining data forms and locations, and part B contains three optional questions worth a total of 11 marks, including explaining Jupyter Notebook styles, reading and manipulating a file, and defining magic methods with an image example.

Uploaded by

capota3822
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Python For Data Science

This document is a progress assessment for a Python for Data Science course taken on October 3, 2020. It contains two questions worth a total of 20 marks. Question 1 has two parts - part A contains sample Python code and instructions to output results, worth 1 mark. Part B contains three optional questions worth a total of 6 marks. Question 2 also has two parts - part A is worth 2 marks for explaining data forms and locations, and part B contains three optional questions worth a total of 11 marks, including explaining Jupyter Notebook styles, reading and manipulating a file, and defining magic methods with an image example.

Uploaded by

capota3822
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Sarvajanik College of Engineering and Technology, Surat

Computer Engineering Department


B.E. III, Sem. V
PROGRESSIVE ASSESSMENT 2

Subject Code: 3150713 Date: 3/10/2020


Subject Name: Python for Data Science
Time: 1.00 PM to 2.00 PM Total Marks: 20
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Q.1 [A] Do as directed. Marks

1. What will be the output in this case: [1]


thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
print(thisdict)
print(len(thisdict))

2. For a company “ABC”, create the daily sales values randomly for one week [3]
span. Create a dataframe having sales values, index as date and column
heading as ‘Daily Sale’. Plot a line graph for this weekly sale. Also create a
trend line over the plot to see the direction of the sale.

Q:1 [B] Attempt ANY TWO questions. [6]

1. Explain the boxplot. For what kind of analysis a boxplot is preferred?

2. Write a python program to create a dictionary having 3 items using:


a) constructor
b) two lists

3. Mention the characteristics of a python set. Write a program to add


elements to a set using any two methods.

1
Q:2[A] Explain different forms and locations of data. [2]

Q:2 [B] Attempt the ANY TWO questions.

1. Enlist and explain different styles of Jupyter Notebook . [4]

2. Write a python program to read name of the file from the user and perform [4]
the following operations on it. (Read the file name "subjects.txt" from the
user)
1. Print the 75% records of the file. Read percentage from the user.
2. Print every 4th row of the file.
3. Write the output of the step 2 into the new file named subset1.txt
The contents of the subjects.txt file are as follows:

3. a) Define and explain Magic methods with an example. [2]


b) Write a python program to render an image from the url given [2]
below. Also print the shape and size of the image.
URL : “https://en.wikipedia.org/wiki/File:Pandit_DinDayal_Upadhyay_Indoor_Stadium,Surat.jpg”

*************

You might also like