PandasTools.WriteSDF argument to filter out nan values. #7021
Unanswered
christophhillisch
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I load an SD file into a Pandas DataFrame do some calculations for the loaded molecules. In case these calculations fail I have an error column in the df. For most molecules this will be nan, but some have the reverse of missing the columns for the calculations, but having a filled error column. I would love to exclude lines like:
> <Error> (1) nan
from the generated SD file. The property for the SD file should only be created if it is not nan.
Beta Was this translation helpful? Give feedback.
All reactions