Source code for featuretools.primitives.standard.aggregation.max_primitive

import numpy as np
from woodwork.column_schema import ColumnSchema

from featuretools.primitives.base.aggregation_primitive_base import AggregationPrimitive


[docs]class Max(AggregationPrimitive): """Calculates the highest value, ignoring `NaN` values. Examples: >>> max = Max() >>> max([1, 2, 3, 4, 5, None]) 5.0 """ name = "max" input_types = [ColumnSchema(semantic_tags={"numeric"})] return_type = ColumnSchema(semantic_tags={"numeric"}) stack_on_self = False description_template = "the maximum of {}" def get_function(self): return np.max