I believe ```data``` could be a ```biggus.NumpyArrayAdapter``` here, in which case you'll get an AttributeError due to the lack of ```flatten()```.