alteryx / alteryx/woodwork

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

Ouverte
#1,472 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
155
Forks
24
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.