I think here you should just pass the number as is, and change the Nones to something constant and at the extremities of your data range. E.g a -1 or 0, but it depends on what you are trying to achieve.
Yeah, I was thinking of this as an option but wasn’t sure if it might make the data inaccurate for some reason. Comforts me that another person has the same idea!