Get startedGet started for free

Random sample of employees

You are an analyst at a company that currently employs 500 individuals. The company wishes to conduct a survey to determine employee satisfaction based on a few identified variables. You and the research team decide to have the sample set at 85 employees. The 85 employees will be part of the survey and will be used as a representation for the total population of 500 employees.

The dataset and pandas have been uploaded for you as employee_satisfaction and pd, respectively.

This exercise is part of the course

Analyzing Survey Data in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Use n parameter to sample 85 employees
____
Edit and Run Code