def _generate_dataframe(self, result):
    data = pd.DataFrame(result)
    if (len(data) > 0):
        data = pd.concat([data, pd.DataFrame(list(data['_id']))], axis=1)
        data = data.drop(['_id'], axis=1)
        data.loc[:, self._config.timestamp_field] = pd.to_datetime(data.loc[:, self._config.timestamp_field], unit='ms')
        for col in self._config.service_call_fields:
            data.loc[:, col] = data.loc[:, col].fillna('-')
    return data
def _generate_dataframe(self, result):
    data = pd.DataFrame(result)
    if (len(data) > 0):
        data = pd.concat([data, pd.DataFrame(list(data['_id']))], axis=1)
        data = data.drop(['_id'], axis=1)
        data.loc[:, self._config.timestamp_field] = pd.to_datetime(data.loc[:, self._config.timestamp_field], unit='ms')
        for col in self._config.service_call_fields:
            data.loc[:, col] = data.loc[:, col].fillna('-')
    return data