Question: Using a python program create a dataframe from a dictionary of lists, where keys are the column headings and the values are the different lists
Using a python program create a dataframe from a dictionary of lists, where keys are the column headings and the values are the different lists of data. Hint: Use the pandas library. Example Input: Create lists as below: StudNamesAshaBobSharath Chemistry Maths Convert the lists into a dictionary SampleSnames:StudNames,ChemMarks: Chemistry,MathMarks:Maths Expected Output: A DataFrame with the provided data
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
