Dealing with 'NaN' values in lists
Hello!
Maybe somebody here has an experience on working with 'NaN' values in Sage.
My situation is the following: I need to load some experimentally measured data into a list of float values. But unfortunately, the experimental data set is not "solid" - it has 'NaN' values somewhere inside.
What I currently need to perform first of all is to calculate the average value of a list slice. Preferably, simply using 'mean()' if it is possible.
So could somebody please give me an advice how to work with such arrays correctly?
Thank you.