That adds an extra mask.any() while perhaps avoiding a copy. The savings would depend on how often a copy is made. My assumption was that making a copy would be the usual thing when calling the nan-functions, but in the absence of actual data that is just speculation.