Restore prior data transfer format

This commit is contained in:
Matthias
2022-11-18 13:59:29 +01:00
parent 49ecc83061
commit 4c7bb79c86
2 changed files with 14 additions and 8 deletions

View File

@@ -101,7 +101,7 @@ def json_deserialize(message):
:param message: The message to deserialize
"""
def json_to_dataframe(data: str) -> pandas.DataFrame:
dataframe = pandas.DataFrame.from_dict(data, orient='tight')
dataframe = pandas.read_json(data, orient='split')
if 'date' in dataframe.columns:
dataframe['date'] = pandas.to_datetime(dataframe['date'], unit='ms', utc=True)