josef-pkt/statsmodels — comment on commit 0f0716cbc7aba17e21ddd98bb5de2df9eedd132b
File:  line 0
By josef-pkt:

The view raises `ValueError: new type not compatible with array`. if the array size is not a multiple of the number of columns.

I'm not sure what shape `astype ` produces

```
>>> np.random.rand(10).view([('var1', float),('var2', float),('var3', float)]).view(np.recarray)
Traceback (most recent call last):
File "", line 1, in
ValueError: new type not compatible with array.
>>> np.random.rand(9).view([('var1', float),('var2', float),('var3', float)]).view(np.recarray)
rec.array([(0.15397837174315598, 0.21467949782036444, 0.016512595780767358),
(0.015503599369291909, 0.11628127486111539, 0.26997851133311479),
(0.61785843029323961, 0.60289240216246176, 0.51571919054757442)],
dtype=[('var1', '>> np.random.rand(10*3).view([('var1', float),('var2', float),('var3', float)]).view(np.recarray)
rec.array([(0.4081253753282259, 0.035102342238546358, 0.32917336153368315),
(0.62606548963735009, 0.82254839219445808, 0.13620959444280789),
(0.31829809858622227, 0.44701135079854948, 0.71486637642908524),
(0.36842888561315623, 0.79985475284331509, 0.053331058711121537),
(0.75231868036239102, 0.34707893285415359, 0.76609368142257916),
(0.3035818001799242, 0.81478455939725969, 0.15414633233954644),
(0.55344597724915801, 0.08579456310198208, 0.04221145035749907),
(0.77815842073057784, 0.25667010682073521, 0.044705375149677318),
(0.23536685243605959, 0.29203742384868137, 0.85685969536488482),
(0.78389988871810623, 0.8198833992097837, 0.23717752864730157)],
dtype=[('var1', '