-
-
Save PranjalDureja0002/bae15b866e78e9265aa719b903ec42ec 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
| patient_df = pd.DataFrame(columns = ['Procedure_data']) | |
| patient_df['Procedure_data'] = pd.concat([patient_data["ClmProcedureCode_1"],patient_data["ClmProcedureCode_2"],patient_data["ClmProcedureCode_3"],patient_data["ClmProcedureCode_4"],patient_data["ClmProcedureCode_5"],patient_data["ClmProcedureCode_6"]],axis=0) | |
| patient_df = patient_df.dropna() | |
| plt.figure(figsize=(10, 7)) | |
| patient_df['Procedure_data'].value_counts().head(30).plot(x=patient_df['Procedure_data'] , kind = 'bar' , color = 'purple') | |
| plt.title('Procedure Codes vs Count') | |
| plt.xlabel('Procedure Codes') | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment