# IP Revision Term 1 – Quiz 2

Share with others

Welcome to your IP Revision Term 1 - Quiz 2

Q11. In DataFrame axis 0 represents ________________

Q12. In DataFrame axis 1 represents ________________

Q13. How many rows will be displayed by the following code:

import pandas as pdD = {"a":(1, 2,3),"b":(4,5,6),"c":(7,8,9),"d":(11,12,13)}D1= pd.DataFrame(D)print(D1.loc[0:1,'b':'d'])

Q14. How many columns will be displayed by the following code:

import pandas as pdD = {"a":(1, 2,3),"b":(4,5,6),"c":(7,8,9),"d":(11,12,13)}D1= pd.DataFrame(D)print(D1.loc[0:1,'b':'d'])

Q15. How many rows will be displayed by the following code:

import pandas as pdD = {"a":(1, 2,3),"b":(4,5,6),"c":(7,8,9),"d":(11,12,13)}D1= pd.DataFrame(D)print(D1.iloc[0:1,1:3])

Q16. How many columns will be displayed by the following code:

import pandas as pdD = {"a":(1, 2,3),"b":(4,5,6),"c":(7,8,9),"d":(11,12,13)}D1= pd.DataFrame(D)print(D1.iloc[0:1,1:3])

Q17. The following statement will change _____________________

D1.iat[1,1]=100

Q18. The following statement will __________________

D1.drop(0)

Q19. Which of the following statement will create Series from Scalar value?

Q20. Aman can use _____________ to iterate over horizontal subsets of DataFrame.

Share with others
error: Content is protected !!