I have a 720 by 720 dataframe with numerical values. I want to go through each row, compare each cell with a condition and create a new cell at the end of the row that contains the number of cells in the row that fulfills the condition(smaller or equal than some number c). So, in the end I need to have a new column added that tells me how many numbers in each row fulfill my condition.
Edit: added image of dataframe
Thank you!

Aucun commentaire:
Enregistrer un commentaire