DataFrame Quiz 3

Share with others

Welcome to your DataFrame Quiz 3

Q21. In DataFrame, by default new column added as the _________ column

Q22. We can add a new row to a DataFrame using the ___________ method

Q23. D1[ : ] = 77 , will set __________ values of a Data Frame 'D1' to 77.

Q24. In the following statement, if column 'Rollno' already exists in the DataFrame 'D1' then the assignment statement will _______

D1['Rollno'] = [1,2,3] #There are only three rows in DataFrame D1'

Q25. In the following statement, if column 'Rollno' already exists in the DataFrame 'D1' then the assignment statement will

D1['Rollno'] = [1,2] #There are only three rows in DataFrame D1'

Q26. In the following statement, if column 'Rollno' already exists in the DataFrame 'D1' then the assignment statement will

D1['Rollno'] = 11 

Q27. DF1.loc[ ] method is used to __________________ # DF1 is a DataFrame

Q28. Which method is used to delete row or column in DataFrame?

Q29. To delete a row, the parameter axis of function drop( ) is assigned the value ____________

Q30. To delete a column, the parameter axis of function drop( ) is assigned the value ____________


Share with others

Leave a Reply

error: Content is protected !!