<jupyter_start><jupyter_text>Kaggle: IBM AttritionUncover the factors that lead to employee attrition and explore important questions such as:1. Show a breakdown of distance from home by job role and attrition2. Compare average monthly income by education and attrition<jupyter_code>import pandas as pd
import matplotlib.pyplot as plt

attrition=pd.read_csv(r'C:\Users\Admin\Documents\ADS-Assignment-2-3-main\WA_Fn-UseC_-HR-Employee-Attrition.csv')
df=attrition
df.head()
attrition.dtypes
df['Distance_from_home'].valuecounts()
x=['Distance_from_home']
y=['Distance_from_home']
plt.bar(x,y)
plt.xlabel()
plt.ylabel()
plt.title('Employee_attrition')
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11030478955007257, 'fraction_numerical': 0.005805515239477504, 'mean_word_length': 7.414634146341464, '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': '317293', 'license': 'MIT', 'n_tokens_mistral': 244, 'n_tokens_neox': 234, 'n_words': 55, 'path': 'Assignment 2 and 3 notebook.ipynb', 'repo_name': 'Liendi/ADS-Assignment-2-3', 'size': '689'}