mapclassify icon indicating copy to clipboard operation
mapclassify copied to clipboard

Handle NaNs

Open sjsrey opened this issue 1 year ago • 3 comments

This will add functionality to handle missing values encoded as numpy.NaN.

The proposal is to classify the masked values (excluding NaNs), and then set the bin label for the missing observations to -1.

This would keep the labels as ints, rather than using numpy.NaN which would change the labels to floats.

This is a work-in progress PR to solicit comments and ideas.

sjsrey avatar May 29 '24 08:05 sjsrey

sweet. looks like the only failure is probably small?

knaaptime avatar Jun 19 '24 06:06 knaaptime

@sjsrey do you want to get this into meta, or hang on until the next?

knaaptime avatar Jul 03 '24 21:07 knaaptime

@sjsrey do you want to get this into meta, or hang on until the next?

Hang on.

sjsrey avatar Jul 03 '24 23:07 sjsrey