mercredi 3 février 2021

Conversion of excel code to Python script

I'm trying to convert the below excel code into Python to apply to a pandas dataframe

=IF(A1>0,IF(C1+D1>0.75*(A1),"yes","no"),IF(C1+D1>0.75*(B1),"yes","no"))

Is there a straight forward way to do this?

Aucun commentaire:

Enregistrer un commentaire