Skip to content

Instantly share code, notes, and snippets.

@PranjalDureja0002
Created March 2, 2021 14:48
Show Gist options
  • Save PranjalDureja0002/7eddd06287d332435027a44b2bebaaf0 to your computer and use it in GitHub Desktop.
Save PranjalDureja0002/7eddd06287d332435027a44b2bebaaf0 to your computer and use it in GitHub Desktop.
fe
patient_data['is_primary'] = np.where(patient_data['AttendingPhysician'].notnull(),1,0)
patient_data['is_secondary'] = np.where(patient_data['OperatingPhysician'].notnull(),1,0)
patient_data['is_tertiary'] = np.where(patient_data['OtherPhysician'].notnull(),1,0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment