Google News
logo
Pandas - Quiz(MCQ)
To extract the first three rows and three columns of a dataframe 'exp' which of the following is True :
A)
exp.iloc[0:2,0:2]
B)
exp.iloc[0:3,0:3]
C)
exp.iloc[1:3,1:3]
D)
exp.iloc[1:4,1:4]

Correct Answer :   exp.iloc[0:3,0:3]

Advertisement