fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
929 stars 196 forks source link

DropSparseRows not behaving as expected #333

Closed adamklein closed 8 years ago

adamklein commented 8 years ago

Via linkpad:

var f = Deedle.Frame.FromRecords(new [] {
    new { a = "x", b = 1.0 },
    new { a = "y", b = Double.NaN },
    new { a = "z", b = 3.0 }
});

Deedle.FrameModule.DropSparseRows(f).Format().Dump();

Would have expected second row to be dropped? As is:

       a b         
0 -> x 1         
1 -> y <missing> 
2 -> z 3