Re: Typed data frames in D

2025-08-18 Thread Marc via Digitalmars-d-learn
On Sunday, 17 August 2025 at 01:24:51 UTC, Monkyyy wrote: I don't think you should attempt to port a python data structure 1 to 1. I'd like to see a smarter data structure I'd suggest figuring out smarter filtering on statictyped data. There's hard problems before mimicking a dymanic language

Re: Typed data frames in D

2025-08-18 Thread Marc via Digitalmars-d-learn
On Sunday, 17 August 2025 at 08:38:53 UTC, Dejan Lekic wrote: I forgot to mention - if I was to implement dataframes, I would read polars code, and check how they did it. For me the most important feature would be how nicely it fits into the rest of the D ecosystem. Implementation of dataframe

Re: How to call a templated overload of opIndex

2025-08-15 Thread Marc via Digitalmars-d-learn
On Friday, 15 August 2025 at 17:51:50 UTC, Nick Treleaven wrote: On Friday, 15 August 2025 at 17:38:53 UTC, Marc wrote: Hello, In my typed data frames I've this type of code. It works for default value (float) but I can't call `opIndex!double[i, j]` or `opIndex!string[i,j]`. You need to writ

How to call a templated overload of opIndex

2025-08-15 Thread Marc via Digitalmars-d-learn
Hello, In my typed data frames I've this type of code. It works for default value (float) but I can't call `opIndex!double[i, j]` or `opIndex!string[i,j]`. It just doesn't work and I get the error `is not a template declaration, it is a variable`. ```d // Overload [i, j] ref T opIndex(T = flo

Re: How to call a templated overload of opIndex

2025-08-15 Thread Marc via Digitalmars-d-learn
On Friday, 15 August 2025 at 21:09:50 UTC, Ali Çehreli wrote: > > Any help would be really appreciated. This design doesn't seem useful. How about something like the following: import std.conv : to; x[i, j].to!double; y[i, j].to!float; Ali Thanks a lot for your reply. It should be

<    1   2