I have an array like this:
[
"temp-1",
[69.63076923076923, 5.397898451463096],
"temp-2",
[70.44, 0.9044335243676014],
"hum-1",
[45.199999999999996, 0.09999999999999788],
"hum-2",
[43.82, 1.0568822072492268]
]
I want to convert it to a hash with the string as keys and the arrays as the value:
{
"temp-1" => [69.63076923076923, 5.397898451463096],
"temp-2" => [70.44, 0.9044335243676014],
...
}
What is a clean way to do this?