[Numpy-discussion] the mean, var, std of empty arrays

Daπid davidmenhur at gmail.com
Thu Nov 22 10:05:11 EST 2012


On Thu, Nov 22, 2012 at 3:54 PM,  <josef.pktd at gmail.com> wrote:
> Why don't operations on empty arrays not return empty arrays?

Because functions like mean or std are expected to return a scalar.
Functions that are piecewiese can (and should) return an empty array,
but not the mean.



More information about the NumPy-Discussion mailing list