Jun-13-2019, 02:33 PM
Hey I'm doing research now and I have problems to apply a function to my data.
Here is the function I want to apply:
import cirpy
cirpy.resolve ("taurine", "smiles")
taurine is the value I want to translate into smiles-form (type of chemical notation)
Here Is my code:
df2["Compound"] = df2["Compound"].apply(lambda x: cirpy.resolve x, "smiles")
"Compound" is the column I want to apply the function.
It doesn't work tho
PLS HELP I'm DYING
Here is the function I want to apply:
import cirpy
cirpy.resolve ("taurine", "smiles")
taurine is the value I want to translate into smiles-form (type of chemical notation)
Here Is my code:
df2["Compound"] = df2["Compound"].apply(lambda x: cirpy.resolve x, "smiles")
"Compound" is the column I want to apply the function.
It doesn't work tho
PLS HELP I'm DYING