Man Avg
Man Avg
Manhattan Distance is :
9
3
7 Create a dataframe for students’ information such name, grad-
uation percentage and age.Display average age of students, av-
erage of graduation percentage. And, also describe all basic
statistics of data. (Hint: use describe()).
[40]: import pandas as pd
import numpy as np
exam_data = {'name' : ['Akash','Rohan','Priyanka','Pooja','Rushikesh'],
'percentage' : [58,80,75,60,90],
'age' : [25,23,19,21,24]}
df = pd.DataFrame(exam_data)
print(df)
print("Average Age of Students : ");
print(df['age'].mean())
print("Average Percentage of Students : ");
print(df['percentage'].mean())
print("Basic Statistics of Data : ");
print(df.describe())