Computer Science, asked by haxhiusabina, 2 months ago

Create a nested Dictionary named student_info which will hold the personal information of 3 students. The personal information will include ID nr, year of study, and the program of
study. Convert this nested dictionary into a data frame using the Pandas library.

Answers

Answered by klejvism
1

Answer:

#Exercise2

import pandas as pd

student_info = {'Students':{'Jack':{'ID':'001',

'Year of Study': 2020,

'Program of study':'Telecommunication engeneer'},

'Anna':{'ID':'002',

'Year of Study': 2020,

'Program of study':'Software engeneer'},

'Joe': {'ID': '003',

'Year of Study': 2020,

'Program of study': 'Computer&IT engeneer'}}}

df=pd.DataFrame(student_info['Students'])

print(df)

Explanation:

Similar questions