• Home
  • Textbooks
  • CUET (UG) Question Bank Chapter-wise and Topic-wise General Test | For 2024 Exam
  • DATA HANDLING USING PANDAS II

CUET (UG) Question Bank Chapter-wise and Topic-wise General Test | For 2024 Exam

Oswaal Editorial Board

Chapter 3

DATA HANDLING USING PANDAS II - all with Video Answers

Educators


Section 1

[A] MULTIPLE CHOICE QUESTIONS

Problem 1

In pandas which method is used to calculate mean, median and other summary statistics for numerical data in columns?
(A) sort_values()
(B) melt 0
(C) describe ()
(C) pivot_table 0

Check back soon!
02:29

Problem 2

Which of the following method calculates the quantile of the values in a given axis?
(A) quan 0
(B) quantile()
(C) qu 0
(D) $\mathrm{q} 0$

Nidhi Singhi
Nidhi Singhi
Numerade Educator

Problem 3

What is the primary function of pivot_table() function?
(A) Group data
(B) Sort data
(C) Reshape data
(D) Aggregate data

Check back soon!

Problem 4

In Python the method used to fill missing values in a dataframe with specified values or filling method is:
(A) melt()
(B) drop_duplicates()
(C) dropna()
(D) fillna()

Check back soon!
01:02

Problem 5

In Pandas missing data is represented by:
(A) None
(B) $\mathrm{NaN}$
(C) Both (A) and (B)
(D) Fillna

Narayan Hari
Narayan Hari
Numerade Educator
01:08

Problem 6

In Python the method used to calculate the mode of numerical column in a dataframe is :
(A) $\operatorname{sum}(0$
(B) mode()
(C) median()
(D) average ()
[AI

Ahmad Reda
Ahmad Reda
Numerade Educator

Problem 7

What is the primary purpose of groupby method when working with categorical data in pandas?
(A) Sorting data
(B) Filtering data
(C) Reshaping data
(D) Grouping and aggregating data

Check back soon!

Problem 8

The method which provides the total of numerical values in a column in a dataframe is:
(A) total()
(B) describe()
(C) $\operatorname{sum}()$
(D) None of these

Check back soon!
01:45

Problem 10

Which of the following is not a function for descriptive statistics in pandas?
(A) med()
(B) variance()
(C) std()
(D) $\operatorname{agg}()$
(AI)

Anna Miller
Anna Miller
Numerade Educator
03:33

Problem 11

The $\qquad$ method is used to calculate variance of values in a numerical column of a dataframe.
(A) mean()
(B) sum 0
(C) $\operatorname{var}()$
(D) median()

Ahmad Reda
Ahmad Reda
Numerade Educator
02:48

Problem 12

The $\qquad$ parameter is used to specify the column on which to sort the data of a dataframe.
(A) order
(B) by
(C) column
(D) field

Mahendra Kumar
Mahendra Kumar
Numerade Educator
01:15

Problem 13

Which method is used to change the labels of rows and columns in DataFrame?
(A) change ()
(B) rename 0
(C) replace 0
(D) None

Brenda Sanchez
Brenda Sanchez
Numerade Educator

Problem 14

Which of the following functions are used in pivoting?
(A) pivot()
(B) pivot_table()
(C) Both (A) and (B)
(D) pivot_data()

Check back soon!
01:05

Problem 15

Which function in the pandas library is used to execute a SQL query and return the query's results?
(A) read_sql()
(B) read_table()
(C) read_data()
(D) None of these

James Kiss
James Kiss
Numerade Educator
01:07

Problem 16

$\qquad$ method can be used to store data of a dataframe to a SQL database.
(A) write_sql()
(B) to $s q l()$
(C) store_data()
(D) Both (A) and (B)

Vysakh M
Vysakh M
Numerade Educator

Problem 17

The statement to install the Python connector to connect MySQL is :
(A) pip install mysql
(B) pip install pymysql
(C) pip install mysql-connector-python
(D) Both (B) and (C)

Check back soon!

Problem 18

The $\qquad$ statement is often used with aggregate functions COUNT() , MAX (),MIN() ,SUM(),AVG() to group the result-set by one or more columns.
(A) groupby
(B) GROUP DATA
(C) DESCRIBE
(D) None of these

Check back soon!

Problem 19

Which of the following returns the Mode from a set of values from a pandas data structure?
(A) mode()
(B) $\min ()$
(C) median()
(D) mean()

Check back soon!
01:02

Problem 19

The function used to remove an index in a pandas dataframe is :
(A) drop_index()
(B) reset_index()
(C) change_index()
(D) Both (A) and (B)

Narayan Hari
Narayan Hari
Numerade Educator
02:12

Problem 20

The default axis for quantile() function is:
(A) row
(B) column
(C) heading
(D) None of these

Gaurav Kalra
Gaurav Kalra
Numerade Educator