Q. Write a program to print data from a column and find out the maximum value.


Answer :-

import pandas as pd
emp_code = [110, 112, 114]
name = ['taksh', 'jeet', 'shubham']
salary = [45000, 56000, 55000]
df2 = pd.DataFrame({'emp_code': emp_code, 'name':name, 'salary': salary})
print('max value', df2['salary'].max())

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post