You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was exploring a dataset and discovered that when any element in a Series of floats is NaN, the function called series.Mean() invalidates the entire series and returns NaN. I expected series.Mean() to exclude values with NaN when computing the mean.
The text was updated successfully, but these errors were encountered:
I believe the fix should happen within series.Float(), perhaps using another version of series.Float() lets the user exclude NaN values, before the slice ever gets passed to gonum. I believe the other statistical functions in Series should also have the same behavior. That is, exclude NaN values in the series.
I was exploring a dataset and discovered that when any element in a Series of floats is NaN, the function called
series.Mean()
invalidates the entire series and returns NaN. I expectedseries.Mean()
to exclude values with NaN when computing the mean.The text was updated successfully, but these errors were encountered: