Deedle dataframe slicing by rows in C# -


how slice rows in deedle dataframe using c#? example, want first 3 rows in deedle dataframe using c#.

in deedle, can slice data frame based on row keys or based on offset. if have, example frame of type frame<datetime, string> (with dates keys), can write:

var dfjanuary = df.rows.between(new datetime(2015, 1, 1), new datetime(2015, 2, 1)); 

as offsets, current api bit ugly, can write:

// first 10 rows df.getaddressrange(rangerestriction<long>.newstart(10)); // last 10 rows df.getaddressrange(rangerestriction<long>.newend(10)); // rows 10, 11, 12, .. , 19, 20 df.getaddressrange(rangerestriction<long>.newfixed(10, 20)); 

we should add take extension method , few others make easier.
(please open issue or better, send pull request that adds somewhere here.)


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -