Answer:
import pandas as pd
pd.Dataframe(information)
Explanation:
Given :
Name Subject Marks
1 Anjan English 78
2 Shreya Science 87
3 Meena Science 81
4 Karan Maths 91
information = { 'Name' : ['Anjan', 'Shreya', 'Meena', 'Karan'], 'Subject' : ['English', 'Science', 'Science', 'Maths'], 'Marks' : [ 78, 87, 81, 91]}
The information in the table can be embedded in dictionary list as given above.
Using the pandas library in python :
The Dataframe method in pandas will create the table as shown by putting the variable as an argument in the DataFrame method.