हिंदी

NCERT solutions for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ chapter 3 - Data Handling using Pandas - II [Latest edition]

Advertisements

Chapters

NCERT solutions for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ chapter 3 - Data Handling using Pandas - II - Shaalaa.com
Advertisements

Solutions for Chapter 3: Data Handling using Pandas - II

Below listed, you can find solutions for Chapter 3 of CBSE NCERT for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२.


Intext QuestionsExercise
Intext Questions [Pages 69 - 86]

NCERT solutions for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ 3 Data Handling using Pandas - II Intext Questions [Pages 69 - 86]

Think and Reflect

1.Page 69

Can you write a shortened code to get the output of the program?

  Name UT Maths Science S.St Hindi Eng
0 Raman 1 22 21 18 20 21
1 Raman 2 21 20 17 22 24
2 Raman 3 14 19 15 24 23

>>> dfRaman[['Maths','Science','S. St','Hindi','Eng']].sum()

Maths 57
Science 60
S.St 50
Hindi 66
Eng 68
dtype int64

>>> dfRaman[['Maths','Science','S. St','Hindi','Eng']].sum(axis=1)

0 102
1 104
2 95
dtype int64

Activity 3.1

2Page 69

Write the python statements to print the sum of the english marks scored by Mishti.

Think and Reflect

3.Page 71

Try to write a short code to get the above output. Remember to print the relevant headings of the output.

Slicing of the DataFrame to get only the marks

  Maths Science S.St Hindi Eng
3 20 17 22 24 19
4 23 15 21 25 15
5 22 18 19 23 13

Average of marks obtained by Zuhaire in all Unit Tests

3 20.4
4 19.8
5 19.0
dtype float64

Activity 3.2

4.Page 71

Find the median of the values of the rows of the DataFrame.

Activity 3.3

5.Page 71

Calculate the mode of marks scored in Maths.

Activity 3.4

6.Page 74

Find the variance and standard deviation of the following scores on an exam: 92, 95, 85, 80, 75, 50.

Activity 3.5

7.Page 82

Write the python statements to print average marks in Science by all the students in each UT.

Activity 3.6

8.Page 86

Consider the data of unit test marks given at program, write the python statements to print name wise UT marks in mathematics.

Result
Name/Subjects Unit Test Maths Science S.St. Hindi Eng
Raman 1 22 21 18 20 21
Raman 2 21 20 17 22 24
Raman 3 14 19 15 24 23
Zuhaire 1 20 17 22 24 19
Zuhaire 2 23 15 21 25 15
Zuhaire 3 22 18 19 23 13
Aashravy 1 23 19 20 15 22
Aashravy 2 24 22 24 17 21
Aashravy 3 12 25 19 21 23
Mishti 1 15 22 25 22 22
Mishti 2 18 21 25 24 23
Mishti 3 17 18 20 25 20
Exercise [Pages 102 - 104]

NCERT solutions for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ 3 Data Handling using Pandas - II Exercise [Pages 102 - 104]

1.Page 102

Write the statement to install the python connector to connect MySQL i.e. pymysql.

2.Page 102

Explain the difference between pivot() and pivot_ table() function?

3.Page 102

What is SQLAlchemy?

4.Page 102

Can you sort a DataFrame with respect to multiple columns?

5. a)Page 102

What are missing values?

5. b)Page 102

What are the strategies to handle missing values?

6. a)Page 102

Define the following term.

Median

6. b)Page 102

Define the following term.

Standard

6. c)Page 102

Define the following term.

Deviation

6. d)Page 102

Define the following term.

variance

7.Page 102

What do you understand by the term MODE? Name the function which is used to calculate it.

8.Page 102

Write the purpose of data aggregation.

9.Page 102

Explain the concept of GROUP BY with help on an example.

10.Page 102

Write the steps required to read data from a MySQL database to a DataFrame

11.Page 102

Explain the importance of reshaping of data with an example.

12Page 103

Why estimation is an important concept in data analysis?

13.Page 103

Assuming the given table: Product. Write the python code for the following:

Item Company Rupees USD
TV LG 12000 700
TV VIDEOCON 10000 650
TV LG 15000 800
AC SONY 14000 750
  1. To create the data frame for the above table.
  2. To add the new rows in the data frame.
  3. To display the maximum price of LG TV.
  4. To display the Sum of all products.
  5. To display the median of the USD of Sony products.
  6. To sort the data according to the Rupees and transfer the data to MySQL.
  7. To transfer the new dataframe into the MySQL with new values.
14.Page 103

Write the python statement for the following question on the basis of given dataset:

  Name Degree Score
0 Aparna MBA 90.0
1 Pankaj  BCA  NaN
2 Ram  M.Tech 80.0
3 Ramesh MBA  98.0
4 Naveen  NaN  97.0
5 Krrishnav  BCA   78.0
6 Bhawna  MBA   89.0
  1. To create the above DataFrame.
  2. To print the Degree and maximum marks in each stream.
  3. To fill the NaN with 76.
  4. To set the index to Name.
  5. To display the name and degree wise average marks of each student.
  6. To count the number of students in MBA.
  7. To print the mode marks BCA.
15.Page 104

Solved Case Study based on Open Datasets.

UCI dataset is a collection of open datasets, available to the public for experimentation and research purposes. ‘auto-mpg’ is one such open dataset.
It contains data related to fuel consumption by automobiles in a city. Consumption is measured in miles per gallon (mpg), hence the name of the dataset is auto-mpg. The data has 398 rows (also known as items or instances or objects) and nine columns (also known as attributes).

The attributes are: mpg, cylinders, displacement, horsepower, weight, acceleration, model year, origin, car name. Three attributes, cylinders, model year and origin have categorical values, car name is a string with a unique value for every row, while the remaining five attributes have numeric value. The data has been downloaded from the UCI data repository available at http://archive.ics.uci.edu/ ml/machine-learning-databases/auto-mpg/.

Following are the exercises to analyse the data.

  1. Load auto-mpg.data into a DataFrame autodf.
  2. Give description of the generated DataFrame autodf.
  3. Display the first 10 rows of the DataFrame autodf.
  4. Find the attributes which have missing values. Handle the missing values using following two ways:
    1. Replace the missing values by a value before that.
    2. Remove the rows having missing values from the original dataset.
  5. Print the details of the car which gave the maximum mileage.
  6. Find the average displacement of the car given the number of cylinders.
  7. What is the average number of cylinders in a car?
  8. Determine the no. of cars with weight greater than the average weight.

Solutions for 3: Data Handling using Pandas - II

Intext QuestionsExercise
NCERT solutions for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ chapter 3 - Data Handling using Pandas - II - Shaalaa.com

NCERT solutions for इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ chapter 3 - Data Handling using Pandas - II

Shaalaa.com has the CBSE Mathematics इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ CBSE solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. NCERT solutions for Mathematics इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ CBSE 3 (Data Handling using Pandas - II) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.

Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. NCERT textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.

Concepts covered in इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ chapter 3 Data Handling using Pandas - II are .

Using NCERT इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ solutions Data Handling using Pandas - II exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in NCERT Solutions are essential questions that can be asked in the final exam. Maximum CBSE इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ students prefer NCERT Textbook Solutions to score more in exams.

Get the free view of Chapter 3, Data Handling using Pandas - II इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ additional questions for Mathematics इन्फॉर्मैटिक्स प्रैक्टिसिज़ [अंग्रेजी] कक्षा १२ CBSE, and you can use Shaalaa.com to keep it handy for your exam preparation.

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×