lundi 30 mars 2020

How can I use a Boolean operator in if Clause in Python

a, b are a data frames consisting Boolean values and c is used for counting the number of true cases satisfying both the conditions ie only counts true values. I have tried many like using a.bool(true) but no luck as I am new to python.

x1 = True
if a = x1 
and if b = x1
      c = c + 1
      print(c)

Aucun commentaire:

Enregistrer un commentaire