def get_perc_of_qt(dataframe):
    """
    Calculates the percentage of all tweets in the given dataframe that are quotes

    :param pd.Dataframe dataframe: Dataframe containing twitter data

    :return: Either string telling the error or integer telling the percentage

    """
    if 'QT' in dataframe:
        df_stats = dataframe[dataframe.QT == 1]
        if len(df_stats) > 0:
            return round(len(df_stats) / len(dataframe) * 100, 1)
        else:
            return 'No quoting in dataset'
    else:
        return 'No quoting in dataset'
