Questions

2 Marks Each

🎯

Test yourself on this topic

7 questions · timed · auto-graded

Question 12 Marks
What is a DataFrame in pandas?
Answer
Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns).
View full question & answer
Question 22 Marks
What is pandas used for ?
Answer
This library is written for the Python programming language for performing operations like data manipulation, data analysis, etc.
View full question & answer
Question 32 Marks
Define Series in Pandas.
Answer
A Series is defined as a one-dimensional array that can store various data types. The row labels of series are called the index.
View full question & answer
Question 42 Marks
 Mention the different types of Data Structures in Pandas.
Answer
Pandas provide two data structures, which are supported by the pandas library, Series, and DataFrames. Both of these data structures are built on top of the NumPy.

A Series is a one-dimensional data structure in pandas, whereas the DataFrame is the two-dimensional data structure in pandas.

View full question & answer
Question 52 Marks
 Define the Pandas/Python pandas.
Answer
Pandas is defined as an open-source library that provides high-performance data manipulation in Python. The name of Pandas is derived from the word Panel Data, which means an Econometrics from Multidimensional data.
View full question & answer
Question 62 Marks
Fill the statement 1 and Statement 2 according the requirement of output dataset:

Answer
Statement 1 :

df.rename({0:'S01', 1:'S02',2:'S03', 3:'S04',4:'S05'}, axis='index',inplace=True)

Statement 2:

df.rename({'Sno':'Student Number', 'Sname':'Student Name','Mail':'E-Mail', 'Mark':'Marks'}, axis='columns',inplace=True)

View full question & answer
Question 72 Marks
Write the statement to check if Dataframe has a column with Label name 'City' if exist then drop else print the message “Column name not found”
View full question & answer
2 Marks Each - Computer Science STD 12 Commerce Questions - Vidyadip