I have two columns in excel. Date and temp. They look like this:
date temp
20130102 34.20
20130102 34.42
20130102 34.23
20130102 34.12
20130102 34.84
20130103 34.48
20130103 34.42
20130103 33.77
20130103 33.62
20130103 33.94
20130103 33.45
when I extract them into python using numpy, i get 2 arrays like this:
date = [20130102,20130102,20130102,20130102,20130102,20130103,20130103,20130103,20130103]
temp = [34.20,34.42,34.23.....,33.45]
How do I convert this into 1 array of arrays by combining 1 date with all corresponding temps for that date.
dataarray = [[20130102,34.20,34.42,34.23,34.12,34.84],[20130103,34.48,34.42,33.77,33.62,33.94,33.45]]