Brand Logo

Class 9

Class 9 - English
Moments (9 Chapters)|
Beehive (18 Chapters)|
Words and Expressions - I (9 Chapters)
Class 9 - Health and Physical Education
Health and Physical Education (14 Chapters)
Class 9 - Hindi
Sanchayan (4 Chapters)|
Sparsh (10 Chapters)|
Kshitij (13 Chapters)|
Kritika (4 Chapters)
Class 9 - ICT
Information and Communication Technology (8 Chapters)
Class 9 - Mathematics
Mathematics (12 Chapters)
Class 9 - Sanskrit
Shemushi Prathmo Bhag (10 Chapters)|
Vyakaranavithi (20 Chapters)|
Abhyaswaan Bhav (15 Chapters)
Class 9 - Science
Science (12 Chapters)
Class 9 - Social Science
Contemporary India (6 Chapters)|
Democratic Politics (5 Chapters)|
Economics (4 Chapters)|
India and the Contemporary World - I (5 Chapters)

Class 10

Class 10 - English
First Flight (22 Chapters)|
Foot Prints Without feet (9 Chapters)|
Words and Expressions - II (9 Chapters)
Class 10 - Health and Physical Education
Health and Physical Education (13 Chapters)
Class 10 - Hindi
Kshitij - II (13 Chapters)|
Sparsh (14 Chapters)|
Sanchayan - II (3 Chapters)|
Kritika (3 Chapters)
Class 10 - Mathematics
Mathematics (14 Chapters)
Class 10 - Sanskrit
Vyakaranavithi (14 Chapters)|
Shemushi - II (12 Chapters)|
Abhyaswaan Bhav - II (14 Chapters)
Class 10 - Science
Science (13 Chapters)
Class 10 - Social Science
Contemporary India (7 Chapters)|
Democratic Politics (5 Chapters)|
India and the Contemporary World - II (5 Chapters)|
Understanding Economic Development (5 Chapters)
Class 10 - Urdu
Nawa-e-urdu (15 Chapters)

Class 11

Class 11 - Accountancy
Accountancy - II (2 Chapters)|
Financial Accounting - I (7 Chapters)
Class 11 - Biology
Biology (19 Chapters)
Class 11 - Biotechnology
Biotechnology (12 Chapters)
Class 11 - Business Studies
Business Studies (11 Chapters)
Class 11 - Chemistry
Chemistry Part - I (6 Chapters)|
Chemistry Part - II (3 Chapters)
Class 11 - Computer Science
Computer Science (11 Chapters)
Class 11 - Creative Writing and Translation
Srijan (4 Chapters)
Class 11 - Economics
Statistics for Economics (8 Chapters)|
Indian Economic Development (8 Chapters)
Class 11 - English
Hornbill (11 Chapters)|
Snapshots (5 Chapters)|
Woven Words (27 Chapters)
Class 11 - Fine Art
An Introduction to Indian Art Part - I (8 Chapters)
Class 11 - Geography
Fundamentals of Physical Geography (14 Chapters)|
India Physical Environment (6 Chapters)|
Practical Work in Geography (6 Chapters)
Class 11 - Health and Physical Education
Health and Physical Education (11 Chapters)
Class 11 - History
Themes in World History (13 Chapters)
Class 11 - Home Science
Human Ecology and Family Sciences - I (7 Chapters)|
Human Ecology and Family Sciences - II (4 Chapters)
Class 11 - Informatics Practices
Informatics Practices (8 Chapters)
Class 11 - Knowledge Traditions Practices of India
Knowledge Traditions Practices of India (9 Chapters)
Class 11 - Mathematics
Mathematics (14 Chapters)
Class 11 - Physics
Physics Part - I (7 Chapters)|
Physics Part - II (7 Chapters)
Class 11 - Political Science
Indian Constitution at Work (10 Chapters)|
Political Theory (8 Chapters)
Class 11 - Psychology
Introduction to Psychology (8 Chapters)
Class 11 - Sangeet
Tabla evam Pakhawaj (8 Chapters)|
Hindustani Sangeet Gayan Evam Vadan (10 Chapters)
Class 11 - Sociology
Understanding Society (5 Chapters)|
Introducing Sociology (5 Chapters)

Class 12

Class 12 - Accountancy
Accountancy Part - I (4 Chapters)|
Accountancy Part - II (6 Chapters)
Class 12 - Biology
Biology (13 Chapters)
Class 12 - Biotechnology
Biotechnology (13 Chapters)
Class 12 - Business Studies
Business Studies - II (3 Chapters)|
Business Studies - I (8 Chapters)
Class 12 - Chemistry
Chemistry - II (5 Chapters)|
Chemistry - I (5 Chapters)
Class 12 - Computer Science
Computer Science (13 Chapters)
Class 12 - Economics
Introductory Microeconomics (5 Chapters)|
Introductory Macroeconomics (6 Chapters)
Class 12 - English
Flamingo (14 Chapters)|
Vistas (7 Chapters)|
Kaliedoscope (21 Chapters)
Class 12 - Fine Art
An Introduction to Indian Art Part - II (8 Chapters)
Class 12 - Geography
Practical Work in Geography - Part II (4 Chapters)|
Fundamentals of Human Geography (8 Chapters)|
India - People and Economy (9 Chapters)
Class 12 - Hindi
Aroh (15 Chapters)|
Antra (23 Chapters)|
Antral Bhag - II (3 Chapters)|
Vitan (3 Chapters)
Class 12 - History
Themes in Indian History - III (4 Chapters)|
Themes in Indian History - I (4 Chapters)|
Themes in Indian History - II (4 Chapters)
Class 12 - Home Science
Human Ecology and Family Sciences Part I (7 Chapters)|
Human Ecology and Family Sciences Part II (7 Chapters)
Class 12 - Informatics Practices
Informatics Practices (7 Chapters)
Class 12 - Mathematics
Mathematics Part - I (6 Chapters)|
Mathematics Part - II (7 Chapters)
Class 12 - Physics
Physics Part - I (8 Chapters)|
Physics Part - II (6 Chapters)
Class 12 - Political Science
Politics in India Since Independence (8 Chapters)|
Contemporary World Politics (7 Chapters)
Class 12 - Psychology
Psychology (7 Chapters)
Class 12 - Sangeet
Hindustani Sangeet Gayan Evam Vadan (9 Chapters)|
Tabla evam Pakhawaj (7 Chapters)
Class 12 - Sociology
Social Change and Development in India (8 Chapters)|
Indian Society (7 Chapters)

About Edzy - Gamified Learning Platform

Edzy is India's premier gamified AI tutor platform for CBSE and State Board students in classes 6-12. Our platform transforms traditional studying with AI-powered study plans, interactive practice sessions, and personalized learning pathways. Students using Edzy experience unmatched learning efficiency through our immersive educational environment that combines advanced technology with curriculum-aligned content.

Why Choose Edzy for CBSE and State Board Preparation

Edzy offers an adaptive AI educational experience tailored to each student's learning style and pace. We integrate gamification with proven educational strategies to create an engaging environment that students love. Our micro-content approach breaks down complex CBSE and State Board topics into manageable lessons, building confidence through mastery-based progression and real-time feedback.

CBSE and State Board Focus Areas

Edzy specializes in transforming online education for classes 6-12 with AI-powered tutoring. We provide comprehensive NCERT-aligned content and engaging lessons across Mathematics, Science, English, Social Studies, and IT. Our system helps students master fundamental concepts and excel in board exams through AI-generated study plans, personalized learning timelines, and dynamic practice sessions.

Edzy's Unique Approach to Online Learning

Unlike traditional online coaching platforms, Edzy converts CBSE and State Board syllabus content into interactive learning adventures. Our AI tutor provides timely assistance while adapting to student progress. The platform features instant feedback, gamified practice sessions, and achievement badges to motivate continuous learning and concept mastery.

Brand Logo

Edzy | Largest Online Learning Platform for Classes 6–12

Study smarter with Edzy – India’s leading gamified AI tutor for CBSE and State Boards. Designed for Classes 6–12, Edzy offers interactive lessons, AI-powered study plans, and rewarding practice tools for every subject.

Find us on Social Media

Links

About EdzyFAQsContact UsCBSE CoursesDuelsRumblesEdzy App

Parents & Teachers

Search EdzyParent DashboardCreator PlatformEducation BlogCBSE & NCERT News

Policies

Terms and ConditionsRefund PolicyPrivacy PolicyCookie Policy

© 2026 Edzy | Largest Online Learning Platform for Classes 6–12. All rights reserved.

Edzy is an AI tutor for CBSE and State Board students, offering interactive lessons and personalized learning for Classes 6–12.

SitemapNews SitemapBlog SitemapSchool SitemapAccessibility
CBSE
Class 12
Informatics Practices
Informatics Practices
Data Handling using Pandas - I...

Question Bank

Question Bank: Data Handling using Pandas - II

This chapter explores advanced data handling techniques using Pandas, focusing on data manipulation and analysis for informed decision making.

Question Bank - Data Handling using Pandas - II

View all (127)
Q1.

What is the primary purpose of the Pandas library in Python?

Single Answer MCQ
Q-00093998
Q2.

Which of the following is a fundamental data structure in Pandas?

Single Answer MCQ
Q-00093999
Q3.

What function would you use to read a CSV file into a Pandas DataFrame?

Single Answer MCQ
Q-00094000
Q4.

Which Pandas function is used to sort a DataFrame?

Single Answer MCQ
Q-00094001
Q5.

In Pandas, what does the 'groupby()' function primarily accomplish?

Single Answer MCQ
Q-00094002
Q6.

What method would you use to fill missing values in a DataFrame?

Single Answer MCQ
Q-00094003
Q7.

In Pandas, how can you change the index of a DataFrame?

Single Answer MCQ
Q-00094004
Q8.

What is the purpose of descriptive statistics in data analysis?

Single Answer MCQ
Q-00094005
Q9.

Which keyword is used in Pandas to import the library?

Single Answer MCQ
Q-00094006
Q10.

What is a common way to export DataFrame data to a CSV file in Pandas?

Single Answer MCQ
Q-00094007
Q11.

If you have a DataFrame with NaN values, which method would you use to remove those rows?

Single Answer MCQ
Q-00094008
Q12.

Which of the following operations is NOT directly performed by Pandas?

Single Answer MCQ
Q-00094009
Q13.

In Pandas, which method would you use to combine two DataFrames along a row axis?

Single Answer MCQ
Q-00094010
Q14.

Which term describes the process of summarizing data points to get insights?

Single Answer MCQ
Q-00094011
Q15.

What do we call the labels we use to identify rows in a DataFrame?

Single Answer MCQ
Q-00094012
Q16.

When using the method groupby() in Pandas, which is NOT a typical aggregation function?

Single Answer MCQ
Q-00094013
Q17.

Which of the following is a feature of Pandas that facilitates data analysis?

Single Answer MCQ
Q-00094014
Q18.

What does the DataFrame.max() function do in Pandas?

Single Answer MCQ
Q-00094015
Q19.

Which of the following is not a measure of central tendency?

Single Answer MCQ
Q-00094016
Q20.

What method would you use to calculate the average (mean) of a numeric column in a DataFrame?

Single Answer MCQ
Q-00094017
Q21.

If you wanted to find the most frequently occurring value in a DataFrame column, which function would you use?

Single Answer MCQ
Q-00094018
Q22.

Which of the following would correctly calculate the range of a numeric column?

Single Answer MCQ
Q-00094019
Q23.

Which Pandas function would you use to obtain the variance of a column?

Single Answer MCQ
Q-00094020
Q24.

How does including the argument numeric_only=True in the max() method change its output?

Single Answer MCQ
Q-00094021
Q25.

If the mode of a dataset is 5 and the values are given as [1, 2, 3, 4, 5, 5, 6], what is the significance of that mode?

Single Answer MCQ
Q-00094022
Q26.

Which measure of central tendency divides a dataset into four equal parts?

Single Answer MCQ
Q-00094023
Q27.

Which function would you use to summarize counts of unique values in a DataFrame column?

Single Answer MCQ
Q-00094024
Q28.

What is the effect of handling missing values before statistical analysis?

Single Answer MCQ
Q-00094025
Q29.

In a dataset with grades out of 100, which of the following statistics would give the most precise overview of student performance?

Single Answer MCQ
Q-00094026
Q30.

What does the term 'Descriptive Statistics' refer to?

Single Answer MCQ
Q-00094027
Q31.

When calculating the median, what step must be taken if the number of observations is even?

Single Answer MCQ
Q-00094028
Q32.

Which operation is NOT typically part of descriptive statistics?

Single Answer MCQ
Q-00094029
Q33.

What function is used to sort values in a Pandas DataFrame?

Single Answer MCQ
Q-00094030
Q34.

By default, how does the sort_values() function order the DataFrame?

Single Answer MCQ
Q-00094031
Q35.

Given the DataFrame df, which code will sort the DataFrame by the column 'Maths' in descending order?

Single Answer MCQ
Q-00094032
Q36.

If two students have the same marks in 'Science', how can we sort them by 'Hindi' using sort_values()?

Single Answer MCQ
Q-00094033
Q37.

When sorting a DataFrame by multiple columns, what happens if the first column has duplicate values?

Single Answer MCQ
Q-00094034
Q38.

What is the default value of the 'axis' parameter in the sort_values() function?

Single Answer MCQ
Q-00094035
Q39.

What will be the output of df.sort_values(by='UT', ascending=True) if 'UT' contains values from 1 to 3 in a DataFrame?

Single Answer MCQ
Q-00094036
Q40.

Which of the following would correctly sort a DataFrame and ignore the original index?

Single Answer MCQ
Q-00094037
Q41.

What happens if you attempt to sort a DataFrame by a column that doesn’t exist?

Single Answer MCQ
Q-00094038
Q42.

To sort a DataFrame in descending order by multiple columns, which syntax is incorrect?

Single Answer MCQ
Q-00094039
Q43.

Which Pandas function returns a new sorted DataFrame without modifying the original?

Single Answer MCQ
Q-00094040
Q44.

When should the parameter 'ascending' be set to False in the sort_values() function?

Single Answer MCQ
Q-00094041
Q45.

What is the output if the DataFrame df is sorted by 'Scores' in ascending order containing just one row?

Single Answer MCQ
Q-00094042
Q46.

In the following statement, what does 'df.sort_values(by='Age', ascending=True)' do?

Single Answer MCQ
Q-00094043
Q47.

Which function would you use to find the maximum value in a Pandas DataFrame column?

Single Answer MCQ
Q-00094044
Q48.

What does the aggregate function in Pandas do?

Single Answer MCQ
Q-00094045
Q49.

Which of the following functions returns the count of entries in a Pandas DataFrame column?

Single Answer MCQ
Q-00094046
Q50.

What does the GROUP BY function in Pandas do?

Single Answer MCQ
Q-00094047
Q51.

If you want to calculate the mean and the sum of marks for each student in a DataFrame, which method would you use?

Single Answer MCQ
Q-00094048
Q52.

Which method would you use to obtain the size of each group in a DataFrame after a GROUP BY operation?

Single Answer MCQ
Q-00094049
Q53.

In which scenario would you use axis=1 with the aggregate function in Pandas?

Single Answer MCQ
Q-00094050
Q54.

What is the first step in the split-apply-combine strategy of GROUP BY in Pandas?

Single Answer MCQ
Q-00094051
Q55.

What is the result of df[['Maths', 'Science']].aggregate('sum', axis=1) for the provided DataFrame?

Single Answer MCQ
Q-00094052
Q56.

In Pandas, which method gets the data for a specific group after a GROUP BY operation?

Single Answer MCQ
Q-00094053
Q57.

What will be the output of executing df['Maths'].aggregate(['max', 'min'])?

Single Answer MCQ
Q-00094054
Q58.

Which of the following statements correctly demonstrates grouping by multiple columns in a DataFrame?

Single Answer MCQ
Q-00094055
Q59.

Which aggregation function would you use to obtain the variance of a DataFrame column?

Single Answer MCQ
Q-00094056
Q60.

If you want to calculate the sum of a column after grouping by another column, which statement is correct?

Single Answer MCQ
Q-00094057
Q61.

What is the default behavior of the axis parameter in Pandas aggregation functions?

Single Answer MCQ
Q-00094058
Q62.

Which of the following is a key benefit of using the GROUP BY function?

Single Answer MCQ
Q-00094059
Q63.

In the context of Pandas, what does it mean to aggregate data?

Single Answer MCQ
Q-00094060
Q64.

What does the method g1.first() return after a GROUP BY operation?

Single Answer MCQ
Q-00094061
Q65.

If we have a DataFrame df with NaN values, what will df['Maths'].aggregate('mean') return?

Single Answer MCQ
Q-00094062
Q66.

Which method would you use to visualize the distribution of data within each group?

Single Answer MCQ
Q-00094063
Q67.

What is a potential issue when using aggregate functions without understanding your data?

Single Answer MCQ
Q-00094064
Q68.

How can GROUP BY assist in analyzing student performance in different subjects?

Single Answer MCQ
Q-00094065
Q69.

When using multiple aggregation functions simultaneously, what is essential in their application?

Single Answer MCQ
Q-00094066
Q70.

What will happen if you try to group by a non-existent column?

Single Answer MCQ
Q-00094067
Q71.

If df.aggregate(['mean', 'max'], axis=1) is executed, which output can you expect?

Single Answer MCQ
Q-00094068
Q72.

When applying a function after group by, which type of function might be used?

Single Answer MCQ
Q-00094069
Q73.

Which of the following represents the correct syntax to apply multiple aggregate functions across the DataFrame?

Single Answer MCQ
Q-00094070
Q74.

Which of the following is NOT a method related to GROUP BY in Pandas?

Single Answer MCQ
Q-00094071
Q75.

In a situation where you want to group by a column and apply a transformation without reducing the DataFrame's size, which method would you use?

Single Answer MCQ
Q-00094072
Q76.

What is the default type of index created in a Pandas DataFrame?

Single Answer MCQ
Q-00094073
Q77.

Which function is used to change the index of a DataFrame to a specific column?

Single Answer MCQ
Q-00094074
Q78.

What happens to the current index when using reset_index() in a DataFrame?

Single Answer MCQ
Q-00094075
Q79.

When altering the index of a DataFrame, what does the parameter 'drop' do in set_index()?

Single Answer MCQ
Q-00094076
Q80.

Which of the following statements correctly alters the index of the DataFrame df to the 'Name' column?

Single Answer MCQ
Q-00094077
Q81.

If a DataFrame with a non-continuous index is sliced, what type of index is produced from the slice?

Single Answer MCQ
Q-00094078
Q82.

What is the output of df.reset_index(drop=True) if df has a non-numeric index?

Single Answer MCQ
Q-00094079
Q83.

When is it useful to use the function set_index()?

Single Answer MCQ
Q-00094080
Q84.

If a DataFrame has duplicate indices, how does it affect data operations?

Single Answer MCQ
Q-00094081
Q85.

To alter an index without losing the original data structure, which of the following parameters might you use in set_index()?

Single Answer MCQ
Q-00094082
Q86.

If a DataFrame df has a DateTime index, how can it be altered to a numeric index without dropping the existing information?

Single Answer MCQ
Q-00094083
Q87.

Which function in Pandas is used to reshape data into a new DataFrame?

Single Answer MCQ
Q-00094084
Q88.

When using the pivot_table() function, what parameter specifies how to aggregate the data?

Single Answer MCQ
Q-00094085
Q89.

What will the pivot function return if the index and column parameters specify a non-unique entry?

Single Answer MCQ
Q-00094086
Q90.

How can you handle multiple values in the pivot_table() aggregation without raising an error?

Single Answer MCQ
Q-00094087
Q91.

Which of the following is NOT a valid option for the aggfunc parameter in pivot_table()?

Single Answer MCQ
Q-00094088
Q92.

What type of index does the pivot() function create by default if not specified?

Single Answer MCQ
Q-00094089
Q93.

Which of the following statements correctly describes the use of the pivot_table() function?

Single Answer MCQ
Q-00094090
Q94.

In which scenario should you use pivot_table() instead of pivot()?

Single Answer MCQ
Q-00094091
Q95.

How do you create a new DataFrame with only relevant columns using the pivot() function?

Single Answer MCQ
Q-00094092
Q96.

What must be ensured when performing reshaping of data?

Single Answer MCQ
Q-00094093
Q97.

Which of the following will correctly return a pivoted DataFrame without errors?

Single Answer MCQ
Q-00094094
Q98.

What is the primary purpose of the melt() function in Pandas?

Single Answer MCQ
Q-00094095
Q99.

If you wanted to pivot a DataFrame and keep track of total profits per store per year, which structure should you use?

Single Answer MCQ
Q-00094096
Q100.

Which of the following functions is effective for handling missing data in a DataFrame?

Single Answer MCQ
Q-00094097
Q101.

What command is used to install the pymysql library in Python?

Single Answer MCQ
Q-00094098
Q102.

Which library is used to facilitate the connection between Pandas and MySQL?

Single Answer MCQ
Q-00094099
Q103.

To read data from a MySQL database into a Pandas DataFrame, which method is commonly used?

Single Answer MCQ
Q-00094100
Q104.

Which statement best describes exporting data from Pandas to MySQL?

Single Answer MCQ
Q-00094101
Q105.

What does the to_sql() function accomplish in Pandas?

Single Answer MCQ
Q-00094102
Q106.

What is required before importing or exporting data between Pandas and MySQL?

Single Answer MCQ
Q-00094103
Q107.

Which function can be used to connect to a MySQL database from a Python script?

Single Answer MCQ
Q-00094104
Q108.

When importing data into a DataFrame from MySQL, which SQL command is often used?

Single Answer MCQ
Q-00094105
Q109.

If you need to handle missing values in your DataFrame before exporting to MySQL, what could be a useful approach?

Single Answer MCQ
Q-00094106
Q110.

Which of the following is true when you export a DataFrame to MySQL?

Single Answer MCQ
Q-00094107
Q111.

What does establishing a connection to MySQL using pymysql require?

Single Answer MCQ
Q-00094108
Q112.

Which step is necessary after importing data into a DataFrame before any analysis?

Single Answer MCQ
Q-00094109
Q113.

Using to_sql() in Pandas to export a DataFrame requires which of the following?

Single Answer MCQ
Q-00094110
Q114.

What does NaN stand for in a Pandas DataFrame?

Single Answer MCQ
Q-00094111
Q115.

Which function can be used to remove rows with missing values in a DataFrame?

Single Answer MCQ
Q-00094112
Q116.

What parameter can be passed to the fillna function to fill missing values with the previous value?

Single Answer MCQ
Q-00094113
Q117.

What is one common reason for having missing values in a dataset?

Single Answer MCQ
Q-00094114
Q118.

When using fillna(method='bfill'), which value is used to fill NaN?

Single Answer MCQ
Q-00094115
Q119.

Which of the following statements about handling NaN values is FALSE?

Single Answer MCQ
Q-00094116
Q120.

In a DataFrame, if a student did not appear for an exam, what could be done with that missing value to calculate average scores?

Single Answer MCQ
Q-00094117
Q121.

What happens when both dropna() and fillna() are called on the same DataFrame at the same time?

Single Answer MCQ
Q-00094118
Q122.

Which method would you use to replace missing values based on the average of an entire column?

Single Answer MCQ
Q-00094119
Q123.

What would the statement df.isna().sum() return?

Single Answer MCQ
Q-00094120
Q124.

When handling missing values, why might someone choose to fill them with a constant value such as zero?

Single Answer MCQ
Q-00094121
Q125.

If missing values are handled poorly, what might be a consequence of this oversight?

Single Answer MCQ
Q-00094122
Q126.

When should you use dropna instead of fillna?

Single Answer MCQ
Q-00094123
Q127.

What is the recommended first step in handling missing values?

Single Answer MCQ
Q-00094124

⚔️ Challenge Your Friends

Compete in quick duels. 5 questions. 1 winner. Zero boredom.

Edzy mobile app