I have a JSON file with the following data structure:
{
"2022-09-28 06:00": {
"Temperature": "380",
"Resistance": "2",
"Surface_stress": "1"
},
"2022-09-28 14:03": {
"Temperature": "374",
"Resistance": "2",
"Surface_stress": "1"
},
"2022-09-28 22:05": {
"Temperature": "381",
"Resistance": "4",
"Surface_stress": "1"
},
"2022-09-29 06:13": {
"Temperature": "371",
"Resistance": "2.1",
"Surface_stress": "1.1"
},
"2022-09-29 14:05": {
"Temperature": "375",
"Resistance": "2",
"Surface_stress": "1.1"
},
"2022-09-29 22:02": {
"Temperature": "345",
"Resistance": "3.4",
"Surface_stress": "1.1"
}
}
I would like to create a line diagram. I did it with this code:
df = pd.read_json("Station_1.json")
df2 = df.transpose()
df2.plot(figsize = (10,8))
plt.show()
Looks like this:
How can I do with value in Python? Like this: