What happens next() will shock you
typo: np.cost should be np.cos
Thank you for noticing that.
I think your last example needs np.fromiter or some other approach, otherwise you get an array full of Generator objects.
itertools.chain.from_iterable, yes. Thanks you. I knew some comment would save the day :)
typo: np.cost should be np.cos
Thank you for noticing that.
I think your last example needs np.fromiter or some other approach, otherwise you get an array full of Generator objects.
itertools.chain.from_iterable, yes. Thanks you. I knew some comment would save the day :)