In [1]:
import pandas as pd
sal = pd.read_csv('Salaries.csv')
In [2]:
sal['TotalPayBenefits'].min()
Out[2]:
In [3]:
sal[sal['TotalPayBenefits']== sal['TotalPayBenefits'].min()] #['EmployeeName']
Out[3]:
In [4]:
sal[sal['TotalPayBenefits']== sal['TotalPayBenefits'].min()] ['EmployeeName']
Out[4]:
In [6]:
sal.loc[sal['TotalPayBenefits'].idxmin()]['EmployeeName']
Out[6]:
No comments:
Post a Comment