CBSE BOARD XII, asked by arjunthomas185, 6 months ago

Ms. Sharma, the class teacher wants to add a new column, the scores of Grade

with the values, ‘ A’, ‘B’, ‘A’, ‘A’, ‘B’, ‘A’ ,to the DataFrame. Help her choose the command to do so:

a. df.column=[’A’,’B’,’A’,’A’,’B’,’A’]

b. df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]

c. df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]

d. Both (b) and (c) are correct​

Answers

Answered by kt47199
6

Answer:

your answer is option no c

Answered by amarsanap186
3

Answer:

option No C is correct c. df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]

Similar questions