def apply_series_method(df, column, method, **method_kws):
    """This window function selects a column and calls a method on that Series.

    Parameters:
        df (DataFrame): pandas dataframe
        column (str): Column to select from the dataframe
        method (str): Method to call on the the selected Series.
        **method_kws: Passed to the method

    Returns:
       any: result of getattr(df[column], method)(**method_kws)


    """
    agg = getattr(df[column], method)
    return agg(**method_kws)