Write a pandas program to create data frame for examination result and display row labels, column labels data types of each column and the dimensions with Practical Example.
Program Description:
This program creates data frame for examination result and display row labels, column labels data types of each column and the dimensions.
Program Logic:
1.Create Dictionary say ‘marks’ which contain marks of 5 subject namely English,Maths,IP,Chemistry,Biology and total marks obtained and percentage of students
2.Create DataFrame say ‘result’ using DataFrame method of pandas library
3.Print the marksheet of 4 student
4.Use index attribute of DataFrame method to display row labels of dataframe named ‘result’
5.Use columns attribute of DataFrame method to display column labels of dataframe named ‘result’
6.Use dtypes attribute of DataFrame method to display data types of each column
7.Use ndim attribute of DataFrame method to display dimension of dataframe named ‘result’
8.Use shape attribute of DataFrame method to display shape of dataframe named ‘result’
9.Exit
Below is implementation code/Source code


Output:

