mercredi 13 janvier 2021

The truth value is ambiguous [duplicate]

I am using a condition statement like below. It gives an error. How to fix this?

Also, there was no any column in df as X. I created it as below.

df["X"] == ""

if df["Score"] <= 0.025 :
df["X"] == 1
else :
df["X"] == 0

Error: enter image description here

Aucun commentaire:

Enregistrer un commentaire