Computer Science, asked by heavenking07, 6 months ago

which if the following command will display the column labels of the dataframe ?
a. print(df.columns0)
b. print(df.column0)
c. print(df.column)
d. print(df.columns)​

Answers

Answered by shekharpasi786
12

Answer:

c.print(df.column) its the right answer

Answered by dualadmire
0

Option(c)print(df.column)

  • In the option(a)print(df.columns0) we cannot use an integer inside the bracket and also plural form of column.
  • In the option(b)print(df.column0) we cannot use an integer inside the bracket
  • In the option(d)print(df.columns) we cannot use the plural form of column.

Note- There should be no integer while writing a program command and we should be aware of the plural form, other wise it will show a syntax error and cannot be interpretated.

Similar questions