CUET Computer/IP: Informatics PracticesPandas Data Analysis. Free, no login required.

Q1:

2026: 23 May Shift 2

Pandas Data Analysis

Easy

Informatics Practices

Match the LIST-I with LIST-II

LIST-ILIST-II
A.Descriptive StatisticsI.Hinderance in data analysis
B.Missing ValuesII.To quantitatively summarise the given data
C.ReshapingIII.To transform the dataset and produce a single numeric value from an array
D.AggregationIV.Process of changing the structure of the DataFrame
Answer options
Option 3
Correct Answer
Explanation for 2026: 23 May Shift 2 CSE question 1

Q2:

2026: 23 May Shift 2

Pandas Data Analysis

Medium

Informatics Practices

Given the following Python Statement:

df = pd.DataFrame({'A': [1, 2, np.nan], 'B': [5, np.nan, 6]})

Which of the following query will fill the missing values with the mean of that column?

Answer options
Option 3
Correct Answer
Explanation for 2026: 23 May Shift 2 CSE question 2

Q3:

2026: 23 May Shift 2

Pandas Data Analysis

Medium

Informatics Practices

Match the LIST-I with LIST-II

LIST-ILIST-II
A.df.isnull().sum()I.To remove the entire row having the missing value(s)
B.df.dropna()II.To find the number of NaN values corresponding to each attribute
C.df.fillna(method='pad')III.To replace the missing value by the value after the missing value.
D.df.fillna(method='bfill')IV.To replace the missing value by the value before the missing value
Answer options
Option 2
Correct Answer
Explanation for 2026: 23 May Shift 2 CSE question 3

Q4:

2026: 23 May Shift 2

Pandas Data Analysis

Medium

Informatics Practices

Which method is appropriate for computing both the mean and standard deviation of the "Height" column in a DataFrame 'df_students'?

Answer options
Option 4
Correct Answer
Explanation for 2026: 23 May Shift 2 CSE question 4

Q5:

2026: 23 May Shift 2

Pandas Data Analysis

Hard

Informatics Practices

Suppose that a DataFrame for car purchases is given as 'df_purchases' having columns "Product" and "Price". Which of the following statements will find the product with the highest price?

A. df_purchases['Product'].max()

B. df_purchases.loc[df_purchases['Price'].idxmax()]

C. df_purchases.sort_values('Price', ascending=False).iloc[0]

D. df_purchases.iloc[df_purchases['Price'].idxmax()]

Answer options
Option 4
Correct Answer
Explanation for 2026: 23 May Shift 2 CSE question 5

Q6:

2026: 23 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

What does the df.isnull().sum() function do in Pandas?

Answer options
Option 1
Correct Answer
Explanation for 2026: 23 May Shift 1 CSE question 6

Q7:

2026: 23 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Pandas provide a function ____________ to check whether any value is missing or not in the DataFrame.

Answer options
Option 1
Correct Answer
Explanation for 2026: 23 May Shift 1 CSE question 7

Q8:

2026: 23 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Which of the following function of Pandas will replaces value by the value before the missing value?

Answer options
Option 2
Correct Answer
Explanation for 2026: 23 May Shift 1 CSE question 8

Q9:

2026: 23 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Arrange the steps required to read data from a MySQL database to a DataFrame:

A. pip install pymysql

B. pip install sqlalchemy

C. pandas.read_sql_query(query,sql_conn)

D. engine=create_engine('driver:// username:password@host:port/name_of_database',index=false)

Answer options
Option 1
Correct Answer
Explanation for 2026: 23 May Shift 1 CSE question 9

Q10:

2026: 23 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Which function is used to get the quartiles from a dataframe 'df'?

Answer options

Q11:

2026: 21 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Which of the following function will export data from Pandas to MySQL?

Answer options

Q12:

2026: 21 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Which of the following functions may be used in handling the missing values in pandas?

(A) isnull()

(B) any()

(C) dropna()

(D) delna()

Answer options

Q13:

2026: 21 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Suppose in a DataFrame we have a column 'Price', which contains missing values. What will be the proper code to fill the missing values with mean of the 'Price' column?

Answer options

Q14:

2026: 21 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

In a DataFrame 'df', if you want to find the median salary, which of the following method should be used?

Answer options

Q15:

2026: 21 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Arrange the following process with respect to GROUP BY functions:

(A) Split the data into groups by creating a GROUP BY object from the original DataFrame.

(B) Combine the results to form a new DataFrame.

(C) Print the results.

(D) Apply the required function.

Answer options

Q16:

2026: 21 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Which function will display the sum of each column of the DataFrame regardless of its datatype.

Answer options

Q17:

2026: 21 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

_________are the measures which divide the data into four equal parts, and each part contains an equal number of observations.

Answer options

Q18:

2026: 20 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

_______ and ____ are two mandatory libraries for faciliting import and export of data between Pandas and MySQL.

Answer options

Q19:

2026: 20 May Shift 1

Pandas Data Analysis

Hard

Informatics Practices

Match List-I with List-II

List-IList-II
(A) Default aggregate function(I) mean( )
(B) Default quantile(II) Second
(C) Default value of axis parameter in aggregate function(III) True
(D) Default value of index parameter while exporting data from Pandas to MySQL using pandas.DataFrame.to_sql( )(IV) 0
Answer options

Q20:

2026: 20 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

NameTestEnglishMathsHindiScience
Sumit167877588
Sumit276787282
Jyoti177836087
Jyoti269896865
Nidhi156786569
Nidhi267868991

Which of the following statements will sort the values of the above DataFrame 'df' by Name?

Answer options

Q21:

2026: 20 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Arrange the following statements based on the sequence of execution in the context of Group By operations.

(A) Split the data

(B) Display the output

(C) Combine the results

(D) Apply the function

Answer options

Q22:

2026: 20 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) Reshaping(I) max(), min(), mean(), median(), mode(), std()
(B) Altering the index(II) dropna( ) and fillna()
(C) Descriptive Statistics(III) pivot() and pivot_table()
(D) handling missing data(IV) reset_index() and set_index()
Answer options

Q23:

2026: 20 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Consider the following DataFrame 'df':

NameTestEnglishMathsHindiScience
Sumit167877588
Sumit276787282
Jyoti177836087
Jyoti269896865
Nidhi156786569
Nidhi267868991

Which statement results in marks secured by Jyoti in each subject in each test?

Answer options

Q24:

2026: 19 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Match List-I with List-II

List-I - DataFrame functionList-II - Usage
(A) df.std()(I) display the average of the squared differences from the mean
(B) df.mean()(II) used to get the quartiles
(C) df.var()(III) display the average of each column
(D) df.quantile()(IV) display the square root of the variance
Answer options

Q25:

2026: 19 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Arrange the following in order to store data in MySQL from DataFrame:

(A) use to_sql () method

(B) import required libraries

(C) create a DataFrame

(D) create connection with sql alchemy engine

Answer options

Q26:

2026: 19 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Which function will display the highest frequency of the column data in the DataFrame 'df'?

Answer options

Q27:

2026: 19 May Shift 1

Pandas Data Analysis

Medium

Informatics Practices

Which method is used to replace the missing values by the value before the missing value?

Answer options

Q28:

2026: 19 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Which function is used to read a sql query into a dataFrame?

Answer options

Q29:

2026: 19 May Shift 1

Pandas Data Analysis

Easy

Informatics Practices

Which of the following is a data aggregate function in the python DataFrame 'df'?

Answer options

Q30:

2026: 18 May Shift 2

Pandas Data Analysis

Easy

Informatics Practices

What is the default axis value for the operations like sum() in pandas?

Answer options