I have a nested list , how do I convert this into a dictionary
data = [["Employee","Salary","Age","Gender"],["001",1200,25,"M"],["002",1300,28,"M"],["003",1400,32,"M"],["004",1700,44,"F"]]
where the dictionary should read the below
dict = {'Employee':['001','002','003','004'],'Salary':[1200,1300,1400,1700],'Age':[25,28,32,44],'Gender':['M','M','M','F']}
I have tried to change into Pandas DataFrame and converted that into dictionary. But I am looking for a direct conversion from list into dictionary
Will appreciate your kind help. Expecting answers in Python 3