Say I have a numpy structured array (a.k.a. record array):
record_types = np.dtype([
('date',object), #00 - Timestamp
('lats',float), #01 - Latitude
('lons',float), #02 - Longitude
('vals',float), #03 - Value
])
data = np.zeros(10, dtype=record_types)
If I try to call the shape attribute, I get (10,)
How can I do something like the following:
y, x = data.shape
To get y = 10 and x = 4
Thanks!