mardi 25 septembre 2018

How to add conditions when calculating using Python?

Data I have a dataframe with two numeric columns. I want to add a third column to calculate the difference. But the condition is if the values in the first column are blank or Nan, the difference should be the value in the second column...

Can anyone help me with this problem?

Any suggestions and clues will be appreciated! Thank you.

Aucun commentaire:

Enregistrer un commentaire