У меня есть следующий результат:
output = [{'test1': [('No Data', '[Auto] Clock in sync with NTP')]},
{'test2': [('No Data', '[Auto] Clock in sync with NTP'),
('No Data','Lambda - Concurrent Execution Limit')
}]
Необходимый фрейм данных:
test1 test2
0 'No Data', '[Auto] Clock in sync with NTP') 'No Data', '[Auto] Clock in sync with NTP'
1 'No Data','Lambda - Concurrent Execution Limit'
from pprint import pprint
import pandas as pd
df = pd.json_normalize(output)
pprint(df)
Не работает так, как мне нужно. Не могли бы вы помочь мне?