BUG: assignment with boolean index not propogating dtype #13169
Labels
Bug
Closing Candidate
May be closeable, needs more eyeballs
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Since we don't have a boolean Index type (we should, but separate issue), the assignment of an
Index
leaves the resulting dtype asobject
rather thanbool
. This can be fixed on a special case basis here, though maybe better in_sanitize_array
.But I think this might be non-performant to even check with
infer_dtype
. So you have to be a bit hacky about this, e.g. callis_bool_array
first, then you can coerce if it IS (say its NOT, IOW its a bunch of strings, then this is problematic).The text was updated successfully, but these errors were encountered: