mercredi 17 avril 2019

Create new value in dataframe that counts Boolean values in a row

I have a dataframe which has a boolean value based on on whether a value is outside a range

I want to find out how many true values are in a row

I expect a new column to be like below in relation to the Boolean

1 2 3 0 0 1 0 1 2 0 1 
T T T F F T F T T F T

Aucun commentaire:

Enregistrer un commentaire