I would like to merge pandas data frame records to one single record.
Given a dataframe like this:
patient_id  gender  age admission_id    admission_type  insurance_type  language    religion    marital_status  ethnicity   diagnosis   icustay_id  length_of_stay  BUN Creatinine  Hematocrit  Non Invasive Blood Pressure diastolic   Non Invasive Blood Pressure systolic
0   2365    F   51  117027  1   2   ENGL    CATHOLIC    SINGLE  WHITE   GASTROINTESTINAL BLEED  250042  22.9776 NaN 2.1 NaN NaN NaN
1   2365    F   51  117027  1   2   ENGL    CATHOLIC    SINGLE  WHITE   GASTROINTESTINAL BLEED  250042  22.9776 44.0    NaN NaN NaN NaN
Expected output:
patient_id  gender  age admission_id    admission_type  insurance_type  language    religion    marital_status  ethnicity   diagnosis   icustay_id  length_of_stay  BUN Creatinine  Hematocrit  Non Invasive Blood Pressure diastolic   Non Invasive Blood Pressure systolic
0   2365    F   51  117027  1   2   ENGL    CATHOLIC    SINGLE  WHITE   GASTROINTESTINAL BLEED  250042  22.9776 44 2.1 NaN NaN NaN
 
     
    