2. Absenteeism at Work
Activity 2.01: Analyzing the Service Time and Son Columns
- First, let's import the data and the necessary libraries:
# perform statistical test for avg duration difference import pandas as pd import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline # import data from the github page of the book data = pd.read_csv('https://raw.githubusercontent.com/'\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'PacktWorkshops/'\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'The-Data-Analysis-Workshop/master/'\ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'Chapter02/data/Absenteeism_at_work.csv', \ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &...