Skip to content

Instantly share code, notes, and snippets.

@PranjalDureja0002
Created March 15, 2021 09:45
Show Gist options
  • Save PranjalDureja0002/63887aa7078fcce2085e225270bec20e to your computer and use it in GitHub Desktop.
Save PranjalDureja0002/63887aa7078fcce2085e225270bec20e 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