2.1.1 comments
2.1.2 states
2.1.3 work interfere
2.1.4 self employed
2.2.1 Gender
2.2.2 Age
3.1 Age
3.2 Gender
3.3. Country
3.4 Work Interference with Mental Health based on Gender
3.5 Work Interference with Mental Health based on the Company Type (Tech/Non-Tech)
3.6 Remote Work Environment and Work Interference
3.7 Mental Health Benefits
3.8 Mental Health vs. Pysical Health
3.8.1 Do you think that discussing a health issue with your employer would have negative consequences?
3.8.2 Have you heard of or observed negative consequences with mental health conditions in your workplace?
3.9 Mental/Physical Health Issues in Interviews
3.9.1 Would you bring up a mental/physical health issue with a potential employer in an interview?
3.10 Willingness to Discuss a Mental Health Issue
3.11 Word Colud on Comments
- Cleaning
- Encoding
- Scailing & Fitting
- Logistic Regression
- K-Neighbors Classifier
- Decision Tree Classifier
- Random Forest
- Accuracy Scores
import pandas as pd
import numpy as np
import plotly.express as px
import plotly.graph_objects as go
from plotly.subplots import make_subplots
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
from collections import Counter
import matplotlib.pyplot as plt
import re
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
from sklearn.preprocessing import LabelEncoder, MinMaxScaler
from sklearn.linear_model import LogisticRegression
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn import metrics
from sklearn.metrics import accuracy_score
from sklearn.model_selection import cross_val_score
pd.set_option('display.max_columns', None)
survey = pd.read_csv('survey.csv')
Column Name | Description |
---|---|
family_history | Do you have a family history of mental illness? |
treatment | Have you sought treatment for a mental health condition? |
work_interfere | If you have a mental health condition, do you feel that it interferes with your work? |
no_employees | How many employees does your company or organization have? |
remote_work | Do you work remotely (outside of an office) at least 50% of the time? |
tech_company | Is your employer primarily a tech company/organization? |
benefits | Does your employer provide mental health benefits? |
care_options | Do you know the options for mental health care your employer provides? |
wellness_program | Has your employer ever discussed mental health as part of an employee wellness program? |
seek_help | Does your employer provide resources to learn more about mental health issues and how to seek help? |
anonymity | Is your anonymity protected if you choose to take advantage of mental health or substance abuse treatment resources? |
leave | How easy is it for you to take medical leave for a mental health condition? |
mentalhealthconsequence | Do you think that discussing a mental health issue with your employer would have negative consequences? |
physhealthconsequence | Do you think that discussing a physical health issue with your employer would have negative consequences? |
coworkers | Would you be willing to discuss a mental health issue with your coworkers? |
supervisor | Would you be willing to discuss a mental health issue with your direct supervisor(s)? |
mentalhealthinterview | Would you bring up a mental health issue with a potential employer in an interview? |
physhealthinterview | Would you bring up a physical health issue with a potential employer in an interview? |
mentalvsphysical | Do you feel that your employer takes mental health as seriously as physical health? |
obs_consequence | Have you heard of or observed negative consequences for coworkers with mental health conditions in your workplace? |
comments | Any additional notes or comments |