masque DF

persDf = persDf.mask((persDf < 1) and (persDf > 5))
Courageous Crab