'Create a dataframe with trace names and keys as column names.
:return: (DataFrame)'

def to_dataframe(self):

    data = self.get_data(flatten=True)
    from pandas import DataFrame, Series
    return DataFrame(dict([(k, Series(v)) for (k, v) in data.items()]))
