Open HodaMemar opened 4 years ago
Hello!
I can't seem to reproduce your error. I believe this may happen if you filter out all patients and you're left with an empty dataframe. Could you step into the code and make sure this is not the case?
Hello
Thank you for your response.
On Mon, 9 Nov 2020, 07:54 sd, notifications@github.com wrote:
Hello!
I can't seem to reproduce your error. I believe this may happen if you filter out all patients and you're left with an empty dataframe. Could you step into the code and make sure this is not the case?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sajaddarabi/TAPER-EHR/issues/6#issuecomment-723745649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP4V5FIYWYNUDXSWRFHJ22TSO5VHTANCNFSM4THID3PQ .
Hello Dr. Darabi I try to run gen_data_df.py on Colab and upload the MIMIC III dataset (CSV files) folder on Google Drive. I get an error on ADMITTIME.
NumExpr defaulting to 2 threads. removing diagnosis codes occuring less than 5 times. num codes before filter: 88 after filtering: 1 removing cpt procedure codes occuring less than 5 times. num codes before filter: 18 after filtering: 3 removing prescription codes occuring less than 5 times. num codes before filter: 121 after filtering: 9 removing procedure codes occuring less than 5 times. num codes before filter: 1995 after filtering: 1055 Traceback (most recent call last): File "/content/TAPER-EHR/TAPER-EHR/gen_data_df.py", line 99, in
df_adm_notes['ADMITTIME_C'] = df_adm_notes.ADMITTIME.apply(lambda x: str(x).split(' ')[0])
File "/usr/local/lib/python3.6/dist-packages/pandas/core/generic.py", line 5139, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'ADMITTIME'
Could you please guide in this issue? Thank you