Add is_reduction argument to DataFrame.apply