def values_to_pandas_dataframe2(self) -> Optional[pd.DataFrame]:
    if ValueCollector.collect_values:
        columns = ['call_index', 'type', 'value']
        data = []
        for (function_name, value_collector) in self.value_collectors.items():
            for (call_index, value) in enumerate(value_collector.values):
                data.append([call_index, function_name, value])
        df = pd.DataFrame(data=data, columns=columns)
        return df
    else:
        return None
def values_to_pandas_dataframe2(self) -> Optional[pd.DataFrame]:
    if ValueCollector.collect_values:
        columns = ['call_index', 'type', 'value']
        data = []
        for (function_name, value_collector) in self.value_collectors.items():
            for (call_index, value) in enumerate(value_collector.values):
                data.append([call_index, function_name, value])
        df = pd.DataFrame(data=data, columns=columns)
        return df
    else:
        return None