ENH: Optimize array creation by avoiding errors
ENH: Optimize array creation by avoiding errors