-
-
Save PranjalDureja0002/7c655f0f289c966bb8271e72e96add27 to your computer and use it in GitHub Desktop.
eda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| age_count = inpatient_data['Age'].value_counts().to_dict() | |
| inpatient_data['Age_Count']=inpatient_data['Age'].map(age_count) | |
| sns.violinplot(x='PotentialFraud',y='Age', data=inpatient_data,width=0.5) | |
| plt.xlabel('potential fraud') | |
| plt.ylabel('Age_of_patients') | |
| plt.title('Age_of_patients vs frauds') | |
| sns.violinplot(x='PotentialFraud',y='Gender', data=inpatient_data,width=0.5) | |
| plt.xlabel('potential fraud') | |
| plt.ylabel('Gender_of_patients') | |
| plt.title('Gender_of_patients vs frauds') | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment