Reputation: 35
I am trying to get the number of employees with a salary in a certain range. How can I output the number just for the 'Salary' column.
salaryEmp = data4[data4.Salary.between(100, 500)].count()
Upvotes: 2
Views: 1255
Reputation: 263
I would do something like:
len(data4[(data4.Salary>100) & (data4.Salary<500)])
Upvotes: 0