bottleneck.{nan*} methods are much faster than the pure Python/NumPy versions inside DataFrame, for example.