remove_nan() drops NaN values from a list of numbers before you use it in calculations.
Deleting NaN values in the list.
remove_nan
Returns list with dropped decimal(Nan)
remove_nan([0.2, 0.1, Nan]) → [0.2, 0.1]
remove_nan([0.2, 0.1, Nan])
[0.2, 0.1]