Open mroswell opened 2 years ago
How to convert
Purpura, Thrombocytopenic, Idiopathic/*chemically induced Purpura, Thrombocytopenic, Idiopathic/*complications/pathology/therapy Purpura, Thrombocytopenic, Idiopathic/blood/*chemically induced/immunology/therapy Purpura, Thrombocytopenic, Idiopathic/blood/*etiology Purpura, Thrombocytopenic, Idiopathic/blood/*etiology/immunology Purpura, Thrombocytopenic, Idiopathic/blood/*etiology/therapy
to just "Purpura, Thrombocytopenic, Idiopathic"
Somewhere in here:
row['Main_Topic'] = [item for item in mesh if '*' in item]
row['Main_Topic'] = [item.split('/', 1)[0] for item in mesh if '*' in item]
How to convert
to just "Purpura, Thrombocytopenic, Idiopathic"
Somewhere in here: