Temporal Factors
Factors such as day of the week and month may also be indicators for absenteeism. For instance, employees might prefer to have their medical examinations on Friday when the workload is lower, and it is closer to the weekend. In this section, we will analyze the impact of the Day of the week
and Month of absence
columns, and their impact on the employees' absenteeism.
Let's begin with an analysis of the number of entries for each day of the week and each month:
# count entries per day of the week and month plt.figure(figsize=(12, 5)) ax = sns.countplot(data=preprocessed_data, \ x='Day of the week', \ order=["Monday", "Tuesday", \ &...