Skip to content

Instantly share code, notes, and snippets.

@PranjalDureja0002
Created March 2, 2021 09:52
Show Gist options
  • Save PranjalDureja0002/a4c94cb80b7e63d9fc134a0f810f3970 to your computer and use it in GitHub Desktop.
Save PranjalDureja0002/a4c94cb80b7e63d9fc134a0f810f3970 to your computer and use it in GitHub Desktop.
data
patient_data_io = pd.merge(train_d_inpatient, train_d_outpatient, left_on = [ col for col in train_d_outpatient.columns if col in train_d_inpatient.columns], \
right_on = [ col for col in train_d_outpatient.columns if col in train_d_inpatient.columns], how = 'outer')
patient_data = pd.merge(patient_data_io,train_d_beneficiary,how='inner',on='BeneID' ).\
merge(label_d_data,how='outer',on='Provider')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment