1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Survey Data in Python

Connected

Exercise

Mental health in tech survey

An ongoing 2016 survey aims to measure attitudes towards mental health in the tech workplace, and examine the frequency of mental health conditions among tech workers.

You will test if there is an association between willingness to discuss mental health issues with a direct supervisor, discuss_with_supervisor, and if an employee's anonymity will be protected when they take advantage of mental health treatment resources provided by their employer, anonymity_protected.

pandas and scipy.stats have been uploaded for you as pd and st, respectively, along with the cleaned survey data as tech_mh.

Instructions 1/2

undefined XP
    1
    2
  • Perform a cross tabulation of the two groups, anonymity_protected and discuss_with_supervisor and assign it to a variable, cross_table.