@classmethod
def unpack_scalar(cls, columns, data):
    """
        Given a columns object and data in the appropriate format for
        the interface, return a simple scalar.
        """
    if len(data) != 1 or len(data.columns) > 1:
        return data
    return data.iat[0, 0]
