<jupyter_start><jupyter_text>Show a breakdown of distance from home by Job role and attrition<jupyter_code>x=Attrition_Data['DistanceFromHome']
z=Attrition_Data['Attrition']

plt.plot(x,z)
f1=Attrition_Data.groupby(['DistanceFromHome']).mean()
#df1=Attrition_Data.groupby(['DistanceFromHome', 'JobRole', 'Attrition' ]).first()
x=Attrition_Data['DistanceFromHome']
y=Attrition_Data['Attrition']
    
plt.plot(x,y)
df2= Attrition_Data.groupby(['DistanceFromHome', 'JobRole', 'Education' ]).first()
Attrition_Data['AvMonthly_income']= Attrition_Data['MonthlyIncome'].mean()

Attrition_Data.head()
Result=Attrition_Data.groupby(['AvMonthly_income', 'Education','Attrition' ]).first()

Result
x=Attrition_Data['AvMonthly_income']
y=Attrition_Data['Education']
plt.bar(y,x)
plt.show()
x=Attrition_Data['AvMonthly_income']
y=Attrition_Data['Attrition']
plt.scatter(y,x)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16611295681063123, 'fraction_numerical': 0.0033222591362126247, 'mean_word_length': 12.696969696969697, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '294329', 'license': 'MIT', 'n_tokens_mistral': 350, 'n_tokens_neox': 333, 'n_words': 42, 'path': '.ipynb_checkpoints/assignment 2-3-checkpoint.ipynb', 'repo_name': 'Lyflone/ADS-Assignment-2-3', 'size': '903'}