Refactored equal interval numerical classification to consider empty data.