I have a = ['1','2','','17']
I would like to apply a min / max operation on it. I can't use pandas/numpy.
I convert it to a float, however, but I can't convert '' to floats with the float() function. Same thing happens if I have a None rather than a ''.
I never faced this problem in matlab so I'm lost with python.
I can convert it into a float with [float(i) for i in var if i]
, but I need to keep the same size to work on index later. This method will remove the empty strings, it is not what I want, I need a value (apparently not a None) that I could apply mean/max/min etc on it