Here is the link for the related bug: https://issues.apache.org/jira/browse/MATH-1495
I have suggested two possible fixes when NaturalRanking#rank() is called on an array of all NaNs: 1) throwing an IllegalArgumentException 2) Returning an empty array I want to create a pull request regarding it, which fix do you suggest I should go for?