Computer Science, asked by Paro5345, 12 hours ago

dictionary s_marke contains the following data: s_marke={'name':{'rashmi', 'harsh''ganash'anu''​

Answers

Answered by nikitazunjar6
0

Explanation:

Answer :-

(a) Gr = pd. DataFrame (Grade)

(b) Output for both the commands is the same:

Name Grade

0 Rashmi A1

1 Harsh A2

2 Ganesh B1

3 Priya A1

4 Vivek B2

(c) Gr["Percentage"] = [92, 89, None, 95, 68, None, 93]

(d) Gr = Gr[['Name', 'Percentage', 'Grade ']]

(e) Gr.drop('Grade', axis = 1)

(f) Gr.drop ([2, 4])

(g)

(i) First row will be dropped.

(ii) First row will be dropped.

(iii) First four rows will be dropped.

Similar questions