Created
March 15, 2021 09:37
-
-
Save PranjalDureja0002/2cc7ba9a097d94a9f937ef30a2545f92 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