Please select a subject first
Advertisements
Advertisements
Carefully observe the following code:
import pandas as pd
Year1 = {'Q1':5000,'Q2':8000,'Q3':12000,'Q4': 18000} Year2 = {'A' :13000,'B':14000,'C':12000}
totSales = {1:Year1,2:Year2}
df = pd.DataFrame(totSales)
print(df)
Answer the following:
- List the index of the DataFrame df
- List the column names of DataFrame df.
Concept: undefined >> undefined
Consider the given DataFrame ‘Stock’:
| Name | Price | |
| 0 | Nancy Drew | 150 |
| 1 | Hardy boys | 180 |
| 2 | Diary of a wimpy kid | 225 |
| 3 | Harry Potter | 500 |
Write suitable Python statements for the following:
- Add a column called Special_Price with the following data: [135,150,200,440].
- Add a new book named ‘The Secret' with a price of 800.
- Remove the column Special_Price.
Concept: undefined >> undefined
Advertisements
Discuss the significance of Group by clause in detail with the help of a suitable example.
Concept: undefined >> undefined
Prime Computer Services Ltd. is an international educational organization. It is planning to set up its India campus in Mumbai with its head office in Delhi. The Mumbai office campus has four main buildings-ADMIN, ACCOUNTS, EXAMINATION, and RESULT.
You as a network expert have to suggest the best network-related solutions for the problems given below, keeping in mind the distances between the buildings and other given parameters.

Shortest distances between various buildings:
| ADMIN TO ACCOUNTS | 55 m |
| ADMIN TO EXAMINATION | 90 m |
| ADMIN TO RESULT | 50 m |
| ACCOUNTS TO EXAMINATION | 55 m |
| ACCOUNTS TO RESULT | 50 m |
| EXAMINATION TO RESULT | 45 m |
| DELHI Head Office to MUMBAI campus | 2150 m |
The number of computers installed at various buildings is as follows:
| ADMIN | 110 |
| ACCOUNTS | 75 |
| EXAMINATION | 40 |
| RESULT | 12 |
| DELHI HEAD OFFICE | 20 |
- Suggest the most appropriate location of the server inside the MUMBAI campus (out of the four buildings) to get the best connectivity for the maximum number of computers. Justify your answer.
- Suggest and draw cable layouts to efficiently connect various buildings within the MUMBAI campus for wired connectivity.
- Which networking device will you suggest to be procured by the company to interconnect all the computers of various buildings of the MUMBAI campus?
- The company is planning to get its website designed which will allow students to see their results after registering themselves on its server. Out of the static or dynamic, which type of website will you suggest?
- Which of the following will you suggest to establish online face-to-face communication between the people in the ADMIN office of the Mumbai campus and the Delhi head office?
a) Cable TV
b) Email
c) Video conferencing
d) Text chat
Concept: undefined >> undefined
Mr. Som, a data analyst has designed the DataFrame df that contains data about Computer Olympiad with ‘CO1’, ‘CO2’, ‘CO3’, ‘CO4’, and ‘CO5’ as indexes shown below. Answer the following questions:
| School | Tot_students | Topper | First_Runnerup | |
| CO1 | PPS | 40 | 32 | 8 |
| CO2 | JPS | 30 | 18 | 12 |
| CO3 | GPS | 20 | 18 | 2 |
| CO4 | MPS | 18 | 10 | 8 |
| CO5 | BPS | 28 | 20 | 8 |
- Predict the output of the following python statement:
i. df.shape
ii. df[2:4] - Write a Python statement to display the data of the Topper column of indexes CO2 to CO4.
OR
Write a Python statement to compute and display the difference of data of the Tot_students column and First_Runnerup column of the above given DataFrame.
Concept: undefined >> undefined
'O' in FOSS stands for ______.
Concept: undefined >> undefined
Legal term to describe the rights of a creator of original creative or artistic work is ______.
Concept: undefined >> undefined
What do you understand by plagiarism?
Concept: undefined >> undefined
Why is plagiarism a punishable offence?
Concept: undefined >> undefined
Write Python code to plot a bar chart for India’s medal tally as shown below:

Also, give a suitable python statement to save this chart.
Concept: undefined >> undefined
Write a python program to plot a line chart based on the given data to depict the changing weekly average temperature in Delhi for four weeks.
Week=[1,2,3,4]
Avg_week_temp=[40,42,38,44]
Concept: undefined >> undefined
Which of the following is not a type of cybercrime?
Concept: undefined >> undefined
|
Nadar has recently shifted to a new city and school. She does not know many people in her new city and school. But all of a sudden, someone is posting negative, demeaning comments on her social networking profile, etc. She is also getting repeated mails from unknown people. Every time she goes online, she finds someone chasing her online. |
- What is this happening to Nadar?
- What immediate action should she take to handle it?
- Is there any law in India to handle such issues? Discuss briefly.
Concept: undefined >> undefined
Which of the following is not an example of a browser?
Concept: undefined >> undefined
Assertion (A): Internet cookies are text files that contain small pieces of data, like a username, password, and user preferences while surfing the internet.
Reasoning (R): To make browsing the Internet faster & easier, it is required to store certain information on the server’s computer.
Concept: undefined >> undefined
What is an example of e-waste?
Concept: undefined >> undefined
List any four benefits of e-waste management.
Concept: undefined >> undefined
Assume that each born child is equally likely to be a boy or a girl. If a family has two children, what is the conditional probability that both are girls? Given that
- the youngest is a girl.
- at least one is a girl.
Concept: undefined >> undefined
Find the area of the region in the first quadrant enclosed by the x-axis, the line y = x and the circle x2 + y2 = 32.
Concept: undefined >> undefined
Assume that the chances of a patient having a heart attack is 40%. Assuming that a meditation and yoga course reduces the risk of heart attack by 30% and prescription of certain drug reduces its chance by 25%. At a time a patient can choose any one of the two options with equal probabilities. It is given that after going through one of the two options, the patient selected at random suffers a heart attack. Find the probability that the patient followed a course of meditation and yoga. Interpret the result and state which of the above stated methods is more beneficial for the patient.
Concept: undefined >> undefined
