spearmanr#

named_arrays.stats.spearmanr(x, y, axis=None, where=True)#

Computes the Spearman correlation coefficient between two arrays.

Similar to scipy.stats.spearmanr().

Parameters:
  • x (XT) – The first input array.

  • y (YT) – The second input array.

  • axis (None | str | Sequence[str]) – The axis or axes along which to compute the correlation coefficient.

  • where (bool | XT | YT) – The elements of x and y to consider when computing the correlation.

Return type:

XT | YT