Advertisements
Advertisements
Question
Case Based
Consider the following DataFram df and answer the following question.
Roll no. | Name | UT1 | UT2 | UT3 | UT4 |
1 | Prerna Singh | 24 | 24 | 20 | 22 |
2 | Manish Arora | 18 | 17 | 19 | 22 |
3 | Tanish Geol | 20 | 22 | 18 | 24 |
4 | Falguni Jain | 22 | 20 | 24 | 20 |
Which of the following command will display the column of the DataFrame?
Options
print (df.column ())
print (df.columns ())
print (df.column)
print (df.columns)
MCQ
Solution
print (df.columns)
shaalaa.com
DataFrame
Is there an error in this question or solution?