Maria Salvany Celades
Maria Salvany Celades
Hi π Iβd like to take this issue and want to double-check my understanding of the desired behavior for nw.struct(...). Iβve been exploring different representations of βstruct-likeβ outputs in Pandas...
Hi @danielgafni, thanks for the clarification! Just to explain where I was coming from: since Iβm still new to struct types, I started with Pandas only to better understand the...
Hi! Hereβs an update on nw.struct(...) `nw.struct("a", "b", "c")` **Top-level constructor** - [x] Iβve implemented the struct(...) function to be in functions.py: ``` python # struct() constructor function # to...
So far this is what this PR does, I'll attempt polars/arrow next: ```python df_native_pd = pd.DataFrame({ "a": [1, 2, 3], "b": ["x", "y", "z"], "c": [True, False, True], }) df_pd...
At this point, we also get these results for polars df and arrow tables: **Polars**: ``` python df_native_pl = pl.DataFrame({ "a": [1, 2, 3], "b": ["x", "y", "z"], "c": [True,...
> @msalvany I think some wires may have been crossed π Hi @dangotbanned . I see that the original issue is `narwhals.struct`. But in the discord conversation with @MarcoGorelli we...
I have started with the tests. I see that there are more backends than pandas, polars and arrow. ``` (narwhals) β narwhals git:(issue_3247) β pytest tests/expr_and_series/concat_struct_test.py -v -k dryrun --tb=no...
Hi, Thanks for the clarification @FBruzzesi, I totally get it now! I have changed all `concat_struct` references to `struct`.
> ```python > In [35]: rel = duckdb.sql("select * from values (1,4,0),(1,5,1),(2,6,2) df(a,b,i)") > > In [36]: rel > Out[36]: > βββββββββ¬ββββββββ¬ββββββββ > β a β b β i β...
> in pyspark it looks like it's just [struct](https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.struct.html) I simply tested the `struct` from pyspark to be sure we get the same, and it looks fine too: ``` python...