Код: Выделить всё
ip accountname name gsm
192.168.1.1 aaaa john doe 850
192.168.1.2 bbbb jane doe 860
Код: Выделить всё
json_df = df3.set_index('ip').T.to_json()
Код: Выделить всё
ValueError: DataFrame columns must be unique for orient='columns'.
Подробнее здесь: https://stackoverflow.com/questions/467 ... on-convert
Мобильная версия