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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -