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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -