Skip to content

Commit

Permalink
feat(eda.correlation): move nan corr values to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
dovahcrow committed Sep 4, 2020
1 parent 64be889 commit 4bba52e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dataprep/eda/correlation/compute/univariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def _corr_filter(
# pylint: enable=invalid-unary-operand-type

sorted_idx = np.argsort(corrs)
sorted_idx = np.roll(sorted_idx, np.count_nonzero(np.isnan(corrs)))
sorted_corrs = corrs[sorted_idx]

if value_range is not None:
Expand Down

0 comments on commit 4bba52e

Please sign in to comment.