resourcedictionary

Using default dictionaries problem (python)

Using default dictionaries problem (python) Question: I have a slightly weird input of data that is in this format: data = { ‘sensor1’: {‘units’: ‘x’, ‘values’: [{‘time’: 17:00, ‘value’: 10}, {‘time’: 17:10, ‘value’: 12}, {‘time’: 17:20, ‘value’ :7}, …]} ‘sensor2’: {‘units’: ‘x’, ‘values’: [{‘time’: 17:00, ‘value’: 9}, {‘time’: 17:20, ‘value’: 11}, …]} } And I …

Total answers: 1