For float arrays, return a copy of arr with fillval positions replaced by np.nan.
arr
fillval
np.nan
Non-float arrays and fillval is None are no-ops: a copy of arr is returned unchanged.
fillval is None
apply_fillval_to_nan()
apply_fill_on_write
_init_log