Feature Selection, Python, Statistical Analysis, Data Analysis.
scipy.stats import spearmanr import numpy as np from scipy import stats # Right from the docs [6] x, y = [1, 2, 3, 4, 5, 6, 7], [10, 9, 2.5, 6, 4, 3, 2] res = stats.spearmanr(x, y) res # Clean up result = [x for x in my_array if x < 0.5 and x > -0.5] Now apply the same filtering as with the