Sampling fails for columns of dtype `Array(List(...), ...)`
@borchero 已经在做这个了。
开始于 2026年2月17日。
评估
这个 Issue 还没有评估数据。
描述
Consider:
def test_sample_array_list(arr_size, n_samples):
class TestSchema(dy.Schema):
a = dy.Array(dy.List(dy.Bool()), arr_size)
TestSchema.sample(n_samples, generator=dy.random.Generator(0))
On dataframely==2.3.1:
- calling
test_sample_array_list(2, 1)
fails withpolars.exceptions.InvalidOperationError: cannot reshape array of size 49 into shape (1, 2) - and calling
test_sample_array_list(1, 1)
fails withpolars.exceptions.SchemaError: type Boolean is incompatible with expected type List(Boolean)
I'd expect both to pass.
- 主要语言
- Python
- 星标
- 618
- 派生
- 21
- 平均合并
- 14 小时 34 分钟
- 30 天内合并 PR
- 7
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Quantco/dataframely 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
Quantco/dataframely#402 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 62/100
Quantco/dataframely#357 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
Quantco/dataframely#309 · 4 条评论 · 2 个 reaction ·
-
难度 5/5 一周以上 新手友好度 45/100
Quantco/dataframely#295 · 3 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 45/100
Quantco/dataframely#273 · 5 条评论 · 1 个 reaction ·
查看 Quantco/dataframely 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·