woodwork icon indicating copy to clipboard operation
woodwork copied to clipboard

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

Open ParthivNaresh opened this issue 2 years ago • 0 comments

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 Trues and Falses (Expected type: Boolean)
  • All 0s, 1s, 0.0s, 1.0s, a combination of these, alongside a combination of Trues and Falses (with nan values) (Expected type: BooleanNullable)

ParthivNaresh avatar Jul 13 '22 16:07 ParthivNaresh