KeyError: '[200161, 200177, 200197, 200208,..., 299962, 299993] not in index'
The error occurred when it called "make_phenotype_label_matrix(phenotypes, stays=None)" because of this line "phenotypes = phenotypes.loc[stays.ICUSTAY_ID.sort_values()]"
line 98, in make_phenotype_label_matrix
phenotypes = phenotypes.loc[stays.ICUSTAY_ID.sort_values()]
Why are so many ICUSTAY_IDs not in the phenotypes? Can I discard these ICUSTAY_IDs?
BTW, the original codes seem not runnable. DataFrame object has no attribute 'ix', I have replaced all the ".ix" to ".loc".
KeyError: '[200161, 200177, 200197, 200208,..., 299962, 299993] not in index'
The error occurred when it called "make_phenotype_label_matrix(phenotypes, stays=None)" because of this line "phenotypes = phenotypes.loc[stays.ICUSTAY_ID.sort_values()]"
line 98, in make_phenotype_label_matrix phenotypes = phenotypes.loc[stays.ICUSTAY_ID.sort_values()]
Why are so many ICUSTAY_IDs not in the phenotypes? Can I discard these ICUSTAY_IDs?
BTW, the original codes seem not runnable. DataFrame object has no attribute 'ix', I have replaced all the ".ix" to ".loc".