@curry
def as_labelarray(initial_dtype, missing_value, array):
 return LabelArray(array.astype(initial_dtype), missing_value=initial_dtype.type(missing_value))

@ curry def as_labelarray ( initial_dtype , missing_value , array ) : return LabelArray ( array . astype ( initial_dtype ) , missing_value = initial_dtype . type ( missing_value ) )
curried wrapper around labelarray .