Pandas combine two dataframes based on time difference
问题 I have two data frames that stores different types of medical information of patients. The common elements of both the data frames are the encounter ID ( hadm_id ), the time the information was recorded ( (n|c)e_charttime ). One data frame ( df_str ) contains structured information such as vital signs and lab test values and values derived from these (such as change statistics over 24 hours). The other data frame ( df_notes ) contains a column with a clinical note recorded at a specified time