def float_formatter(data):
    """
    Removes digits after dots and 1.0, 2.0
    :param data:
    :return:
    """
    if type(data) is float:
        data = '{0:g}'.format(float(data))
    return data
