Font size
WorksheetsML Viva
Total questions: 12
Worksheet time: 5mins
Which of the following is correct way to create a dataframe?
A. df = pd.dataframe(dict1)
B.df = pd.Dataframe(dict1)
C.df = pd.dataFrame(dict1)
D.df = pd.DataFrame(dict1)
A
B
C
D
Which of the options contain the following lines?
1. import pandas as pd
df = pd.read_csv("filename.csv") df.head()
Loading a dataset into python
environment
See the first five rows of a data frame in
Python
Checking the class of each variable in a
pandas DataFrame
Code to see the dimensions of a data frame in Python
Function used to find missing values in a
pandas DataFrame
If there is a dataframe named as "df" and we need to extract the first three rows and three columns of it, then which of the following statement is correct?
A. df.iloc[1:4,1:4]
B. df.iloc[1:3,1:3]
C df.iloc[0:2,0:2]
D.df.iloc[0:3,0:3]
A
B
C
D
A dataframe as two axis, where axis=0 respresents
A. Row
B.Column
C.Index
D. Values
A
B
C
D
There is a student whose name is "Raman" and he wants to access "Author" column from "Book" dataframe. Suggest the correct statement.
A. print(Book.Author)
B.print(Book[‘Author’])
C. Both are True
D.Both are False
A
B
C
D
What will be the output of the following code? import pandas as pd
s = pd.Series([1,2,3,4],index = ['a','b','c','d']) print s['c']
A.1
B. 2
C.3
D.4
E.Error
A
B
C
D
E
The interface of matplotlib used for data visualisation is
A. pyplot
B. matlab
C. anaconda
D.seaborn
A
B
C
D
Find the output list = [ ]
list[0] = 100 print(list)
A. 100
B. Error
C. [100]
D. [ ]
A
B
C
D
In the follwing options which are python libraries which are used for data analysis and scientific computations
A. Numpy
B. Scipy
C. Pandas
D. All of the above
A
B
C
D
Which operator is used in Python to import modules from packages?
A. .
B. *
C. ->
D. &
A
B
C
D
Complete name
Complete Reg Number
