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
6
Answer:
your answer is option no c
Answered by
3
Answer:
option No C is correct c. df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]
Similar questions