Advertisements
Chapters
2: Data Handling using Pandas - I
▶ 3: Data Handling using Pandas - II
4: Plotting Data using Matplotlib
5: Internet and Web
6: Societal Impacts
Chapter 7: Project Based Learning
![NCERT solutions for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२ chapter 3 - Data Handling using Pandas - II NCERT solutions for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२ chapter 3 - Data Handling using Pandas - II - Shaalaa.com](/images/informatics-practices-english-class-12_6:55813b5fe8c1458f80d0fbe8dfc569b6.jpg)
Advertisements
Solutions for Chapter 3: Data Handling using Pandas - II
Below listed, you can find solutions for Chapter 3 of CBSE NCERT for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२.
NCERT solutions for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२ 3 Data Handling using Pandas - II Intext Questions [Pages 69 - 86]
Think and Reflect
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
Write the python statements to print the sum of the english marks scored by Mishti.
Think and Reflect
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
Find the median of the values of the rows of the DataFrame.
Activity 3.3
Calculate the mode of marks scored in Maths.
Activity 3.4
Find the variance and standard deviation of the following scores on an exam: 92, 95, 85, 80, 75, 50.
Activity 3.5
Write the python statements to print average marks in Science by all the students in each UT.
Activity 3.6
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 |
NCERT solutions for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२ 3 Data Handling using Pandas - II Exercise [Pages 102 - 104]
Write the statement to install the python connector to connect MySQL i.e. pymysql.
Explain the difference between pivot() and pivot_ table() function?
What is SQLAlchemy?
Can you sort a DataFrame with respect to multiple columns?
What are missing values?
What are the strategies to handle missing values?
Define the following term.
Median
Define the following term.
Standard
Define the following term.
Deviation
Define the following term.
variance
What do you understand by the term MODE? Name the function which is used to calculate it.
Write the purpose of data aggregation.
Explain the concept of GROUP BY with help on an example.
Write the steps required to read data from a MySQL database to a DataFrame
Explain the importance of reshaping of data with an example.
Why estimation is an important concept in data analysis?
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 |
- To create the data frame for the above table.
- To add the new rows in the data frame.
- To display the maximum price of LG TV.
- To display the Sum of all products.
- To display the median of the USD of Sony products.
- To sort the data according to the Rupees and transfer the data to MySQL.
- To transfer the new dataframe into the MySQL with new values.
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 |
- To create the above DataFrame.
- To print the Degree and maximum marks in each stream.
- To fill the NaN with 76.
- To set the index to Name.
- To display the name and degree wise average marks of each student.
- To count the number of students in MBA.
- To print the mode marks BCA.
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. 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.
- Load auto-mpg.data into a DataFrame autodf.
- Give description of the generated DataFrame autodf.
- Display the first 10 rows of the DataFrame autodf.
- Find the attributes which have missing values. Handle the missing values using following two ways:
- Replace the missing values by a value before that.
- Remove the rows having missing values from the original dataset.
- Print the details of the car which gave the maximum mileage.
- Find the average displacement of the car given the number of cylinders.
- What is the average number of cylinders in a car?
- Determine the no. of cars with weight greater than the average weight.
Solutions for 3: Data Handling using Pandas - II
![NCERT solutions for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२ chapter 3 - Data Handling using Pandas - II NCERT solutions for इन्फोर्मेटिक्स प्रैक्टिसिज़ [इंग्रजी] इयत्ता १२ chapter 3 - Data Handling using Pandas - II - Shaalaa.com](/images/informatics-practices-english-class-12_6:55813b5fe8c1458f80d0fbe8dfc569b6.jpg)
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.
