@staticmethod
def col_width(df, column, as_value=False) ->tuple:
    """ gets the max and min length or values of a column as a (max, min) tuple

        :param df: the pandas.DataFrame
        :param column: the column to find the max and min for
        :param as_value: if the return should be a length or the values. Default is False
        :return: returns a tuple with the (max, min) length or values
        """
    if as_value:
        field_length = df[column].apply(str).str.len()
        return df.loc[field_length.argmax(), column], df.loc[field_length.
            argmin(), column]
    return df[column].apply(str).str.len().max(), df[column].apply(str
        ).str.len().min()
