Data, Data Science, Excel, Management, Business.
data['Salary'].corr(data['Absenteeism_Index']) # Creating a scatterplot to visualize the relationship between 'Salary' and 'Absenteeism_Index' plt.figure(figsize=(10, 6)) sns.scatterplot(x=data['Salary'], y=data['Absenteeism_Index']) plt.title('Correlation between Salary and Absenteeism Index')