Dear NumPy developers, First, I would like to thank you for all your efforts in developing NumPy, it is a really amazing project!
NumPy has many functions that support operations over multiple dimensions like min, max, mean, average, sum, etc. All of them has axis parameter to specify the axes along which the function has to be applied. In most cases, the accepted types for this parameter are None, int, and a tuple of ints, like in ptp, percentile, nanpercentile, quantile, nanquantile, average, mean, std, var, nanmean, nanstd, nanvar, sum, prod, nanprod, nansum, and gradient. Is there any reason not to use a sequence of ints for the axis parameter where a tuple of ints is allowed? For instance, the functions median and nanmedian support a sequence of ints, therefore users can use sets and frozensets to skip unnecessary checks for repeated values. Thank you. Best regards, Aleksandr Kadykov
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com