temporary fill - is it necessary?
cant we use temporary mean as temporary fill value? instead of first filling with temporary fill and changing it to temporary mean?
3 answers ( 0 marked as helpful)
I think you are right as the goal is just removing nulls whatever the substituting value is
I had the same problem with this approach. I don't think you can. Temp value is only an integer a 0 demintion array i.e. ( ), while temp mean values are 1D array i.e (6, ).
Python won't know how to replace "one" missing value with such an array.
temporary_fill = 64002.0
temporary_mean = array([ 2250.25, 46.11, 365. , 3895.99, 5160.75, 16571.44])
the argument fill_value can only take one value, which mean you can not use an array to fill the "fill_value"