def get_classid(class_attribute, feat_name):
    """

    Parameters
    ----------
    class_attribute:
        Contains the name of the attribute/column that contains categorical values

    feat_name : string
        Contains the name of the attribute/column

    Returns
    -------
    class_idx:int
        Returns an integer value that will represent each categorical value

    """
    for class_idx,class_attr in enumerate(class_attribute):
        if class_attr in feat_name:
            return class_idx