Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is pandas?
A. A web framework
B. A data manipulation and analysis library
C. A machine learning library
D. A plotting library
Direction: Choose the correct option

Q2.

What is a DataFrame in pandas?
A. A 2D labeled data structure
B. A 3D array
C. A dictionary
D. A 1D labeled array
Direction: Choose the correct option

Q3.

How do you create a DataFrame from a dictionary?
A. Both A and B
B. pd.DataFrame({'col1': [1,2], 'col2': [3,4]})
C. pd.DataFrame({'col1': 1})
D. pd.DataFrame.from_dict({'col1': [1,2]})
Direction: Choose the correct option

Q4.

How do you read a CSV file into a DataFrame?
A. pd.import_csv('file.csv')
B. pd.load_csv('file.csv')
C. pd.read_csv('file.csv')
D. pd.read('file.csv')
Direction: Choose the correct option

Q5.

What does `df.head()` do?
A. Shows summary statistics
B. Shows the first 5 rows
C. Shows column names
D. Shows the last 5 rows
Direction: Choose the correct option

Q6.

How do you select a column 'name' from a DataFrame?
A. df.name
B. Both A and B
C. df.column('name')
D. df['name']
Direction: Choose the correct option

Q7.

What does `df.isnull().sum()` do?
A. Counts missing values per column
B. Counts NaN
C. Sums null values
D. Checks if null
Direction: Choose the correct option

Q8.

How do you group data by a column?
A. df.split('col')
B. df.group('col')
C. df.groupby('col')
D. df.aggregate('col')
Direction: Choose the correct option

Q9.

What is the output of `df.describe()`?
A. Summary statistics for numeric columns
B. Column names
C. Data types
D. Descriptive text
Direction: Choose the correct option

Q10.

How do you merge two DataFrames on a common column?
A. Both A and B
B. pd.merge(df1, df2, on='key')
C. df1.join(df2, on='key')
D. df1.merge(df2, on='key')