alteryx / alteryx/woodwork

Series with only 0, 0.0, 1, and 1.0 should be inferred as Boolean or BooleanNullable

未关闭
#1,472 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
155
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

If a series is passed in with the following types of values, we should expect an inference of Boolean or BooleanNullable:

- All 0s, 1s, or a combination of 0s and 1s (Expected type: Boolean)
- All 0s, 1s, or a combination of 0s and 1s (with nan values) (Expected type: BooleanNullable)
- All 0.0s, 1.0s, or a combination of 0.0s and 1.0s (Expected type: Boolean)
- All 0.0s, 1.0s, or a combination of 0.0s and 1.0s (with nan values) (Expected type: BooleanNullable)
- All 0s, 1s, 0.0s, 1.0s, a combination of these, alongside a combination of `True`s and `False`s (Expected type: Boolean)
- All 0s, 1s, 0.0s, 1.0s, a combination of these, alongside a combination of `True`s and `False`s (with nan values) (Expected type: BooleanNullable)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。