f# - Deedle Series.LastValue and Series.tryLastValue both fail if the last value is missing -


despite comments on code both series.lastvalue , series.trylastvalue fails if last value missing both functions use same getat (series.keycount-1).

what recommended way potential missing value series?

try series.lastvalue with? or series.tryget(key)?

thanks

if series ordered, can following:

let s = series [1 => 1.0; 2 => nan] s.get(s.lastkey(), lookup.exactorsmaller) 

here, want value last key, or first non-missing value before that.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -