alteryx / alteryx/woodwork

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

Đang mở
#1,472 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
155
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.