I have a json file which has set of values inside brackets. the first number is hour and the second number is production in that hour. I want to use this file in python and plot the data but I don know how to convert the hours to days and sum up the production.
with open('year_2018.json') as f:
data = json.load(f)
for i in range(len(data)):
key = data[i]['key'][0]['en']
print(key)
if key == "Wind":
values = data[i]
data1 = (values['values'])
for x, y in data1:
data_x.append(x)
data_y.append(y)
[x, y] = [hour, production] here X is the hour (but in weird format like 1545980400000) and y is the production in that hour I expect to plot daily production