Skip to content

Commit 4bba52e

Browse files
committed
feat(eda.correlation): move nan corr values to the bottom
1 parent 64be889 commit 4bba52e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dataprep/eda/correlation/compute/univariate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def _corr_filter(
134134
# pylint: enable=invalid-unary-operand-type
135135

136136
sorted_idx = np.argsort(corrs)
137+
sorted_idx = np.roll(sorted_idx, np.count_nonzero(np.isnan(corrs)))
137138
sorted_corrs = corrs[sorted_idx]
138139

139140
if value_range is not None:

0 commit comments

Comments
 (0)