def convert_data_type(value: str):
    """
    Takes a value as a string and return it with its proper datatype attached

    Parameters
    ----------
    value: str
        The value that we want to find its datatype as a string

    Returns
    -------
    The value with the proper datatype
    """
    try:
        f = float(value)
        if f.is_integer():
            return int(f)
        return f
    except ValueError:
        return value