Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Become a Python Data Analyst

You're reading from  Become a Python Data Analyst

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781789531701
Pages 178 pages
Edition 1st Edition
Languages
Author (1):
Alvaro Fuentes Alvaro Fuentes
Profile icon Alvaro Fuentes
Toc

Answering further questions

Let's say that you are done with the first round of questions that the HR director asked you, but now he wants to know a little more about the employees. The following are the new tasks assigned to you:

  • Give me a list of the employees with a Low level of JobSatisfaction
  • Give me a list of the employees with a Low level of both JobSatisfaction and JobInvolvement
  • Compare the employees with Low and Very High JobSatisfaction across the following variables: Age, Department, and DistanceFromHome

Employees with Low JobSatisfaction

To answer this question, we use a Boolean Series to index a series or a DataFrame. This is called masking, or Boolean indexing. First, we use the comparison operator to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime