bundles / scipy 1.17.1 / scipy / stats / _mstats_basic / find_repeats
function
scipy.stats._mstats_basic:find_repeats
Signature
def find_repeats ( arr ) Summary
Find repeats in arr and return a tuple (repeats, repeat_count).
Extended Summary
The input is cast to float64. Masked values are discarded.
Parameters
arr: sequenceInput array. The array is flattened if it is not 1D.
Returns
repeats: ndarrayArray of repeated values.
counts: ndarrayArray of counts.
Examples
from scipy.stats import mstats mstats.find_repeats([2, 1, 2, 3, 2, 2, 5])✓
mstats.find_repeats([[10, 20, 1, 2], [5, 5, 4, 4]])
✓Aliases
-
scipy.stats._mstats_basic.find_repeats