master
parent
4dff3bf0b0
commit
732c0df038
|
|
@ -35,7 +35,7 @@ def database():
|
||||||
drug_mechanism_df['drugs'] = drug_mechanism_df.apply(lambda x: '|'.join(
|
drug_mechanism_df['drugs'] = drug_mechanism_df.apply(lambda x: '|'.join(
|
||||||
[tm.upper() for tm in [x['药物名称-英文'], x['药物名称-中文']] if tm != '.']), axis=1)
|
[tm.upper() for tm in [x['药物名称-英文'], x['药物名称-中文']] if tm != '.']), axis=1)
|
||||||
drug_mechanism_df['dec'] = drug_mechanism_df.apply(lambda x: "||".join(
|
drug_mechanism_df['dec'] = drug_mechanism_df.apply(lambda x: "||".join(
|
||||||
[tm for tm in [x['适应症(中文)'], x['作用机制-中文']] if tm != '.']), axis=1)
|
[tm.upper() for tm in [x['适应症(中文)'], x['作用机制-中文']] if tm != '.']), axis=1)
|
||||||
# return {drugA: drugAdes\\\\drugAdes中文, drugA中文: drugAdes\\\\drugAdes中文,}
|
# return {drugA: drugAdes\\\\drugAdes中文, drugA中文: drugAdes\\\\drugAdes中文,}
|
||||||
drug_mechanism = {}
|
drug_mechanism = {}
|
||||||
for _, row in drug_mechanism_df.iterrows():
|
for _, row in drug_mechanism_df.iterrows():
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue