On web page:


enter image description here https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skew.html

But when I try it:

enter image description here


Documentation is fine. The function will return an ndarray when you pass an nd array and an axis argument. Numpy's mean shows the same thing.

  • $\begingroup$ What do you mean? When I try type(st.skew(np.array([2, 8, 0, 4, 1, 9, 9, 0]))), it still returns a float. $\endgroup$ – NoName Jan 19 at 23:12
  • $\begingroup$ @NoName pass it an array with several dimensions and see what it returns' $\endgroup$ – Demetri Pananos Jan 19 at 23:35
  • $\begingroup$ wow, if that's the case, they should've mention it somewhere. "Returns" should show all possible datatypes. $\endgroup$ – NoName Jan 19 at 23:52
  • 3
    $\begingroup$ @NoName this has more to do with what numpy calls an array rather than what scipy returns. Note type(np.array(1)). What does that return? If you have an issue, I would suggest you make a PR to scipy. $\endgroup$ – Demetri Pananos Jan 19 at 23:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.