def to_table(stream_set):
    """
    Returns string representation of the data in tabular form using the tabulate
    library.
    """
    try:
        from tabulate import tabulate
    except ImportError:
        raise ImportError(
            'Please install tabulate to use this transformation function.')
    return tabulate(stream_set.to_dict(), headers='keys')
