[GSoC] Dataframes for D

Prateek Nayak lelouch.cpp at gmail.com
Tue Jul 23 18:17:44 UTC 2019


On Thursday, 18 July 2019 at 16:02:40 UTC, bachmeier wrote:
> Looking at the readme, I see the following example for 
> accessing elements by name:
>
> df[["1"], ["0"]];
>
> Why can't that instead be
>
> df["1", "0"];
>
> Something that gets in the way of adoption is verbose notation, 
> and I'm not seeing any advantage to the array notation.
>
> Also, for this example:
>
> Index indx;
> indx.setIndex([1, 2, 3, 4], ["Row Index"], [1, 2, 3], ["Column 
> Index"]);
>
> That's pretty verbose/hard to parse compared to
>
> rownames(x) = [1, 2, 3, 4];
> colnames(x) = [1, 2, 3];

I'm really sorry I overlooked this. Sorry about that (-‸ლ)
I'll fix the first case in the PR where I'll make optimizations 
for homogeneous DataFrame.
I'll address the second problem of verbosity soon but not in the 
immediate PR

Thanks for the feedback ٩(^‿^)۶



More information about the Digitalmars-d mailing list