Karl Genockey

Results 271 comments of Karl Genockey

On main it produces just `ColumnNotFoundError: a` It was changed earlier today: https://github.com/pola-rs/polars/issues/15880

Trying a regular `.group_by` I am getting random PanicExceptions: ```python import polars as pl df = pl.DataFrame({ "group": [1, 1, 2], "value": [1.0, 2.0, 3.0], }) for _ in range(10):...

Just to add to this, `cut` works with `.over()` ```python df.with_columns( pl.col("value").cut([-1, 1], include_breaks=True) .over("group") ) # shape: (3, 2) # ┌───────┬──────────────────┐ # │ group ┆ value │ # │...

For reference: https://github.com/pola-rs/polars/issues/13789#issuecomment-1937525648 > We should actually raise, but we currently do not have the infrastructure to do so yet.

Hi there - just a fellow user here. It seems the issue is you're trying to call `unnest()` on a `json` type? ```python duckdb.sql(""" with patient_data as ( select '[{"type":{"text":"Medical...

I think you still want your CASE/WHEN check for when `identifier` is not an array. ```python duckdb.sql(""" FROM ( SELECT json_extract(json(unnested_entry.entry), '$.resource') AS resource FROM read_json_auto('example.json', columns={'entry': 'JSON[]'}) AS entries,...

I am not sure what the problem is - but I did notice that this avoids the error: ```sql ALTER TABLE test ALTER phone TYPE BIGINT USING try_cast(phone as BIGINT)...

@reswqa Yeah, I think one of `(x, y)` must be "positive"? I'm not sure what `0` is supposed to do: ```python df.select(pl.col("a").reshape((0, 0))) # shape: (3, 1) # ┌───────────┐ #...

Fixed by https://github.com/pola-rs/polars/pull/16281

As an aside, I think the slow `rolling_map` can be replaced with [`Expr.rolling`](https://docs.pola.rs/docs/python/dev/reference/expressions/api/polars.Expr.rolling.html#polars.Expr.rolling) - right? ```python (data .with_row_index() .with_columns( pl.col("a").top_k(5).mean().rolling(index_column="index", period="5i") ) ) ```