Skip to content

TST/BUG: integer coercion bool with int on windows #12850

Closed
@jreback

Description

@jreback

xref #12841

this is a test in test_coercion.py, L361

In [3]: import pandas as pd

In [4]: s = pd.Series([True, False, True, False])

In [5]: s.where(s,1)
Out[5]:
0    1
1    1
2    1
3    1
dtype: int32

on windows the scalar is not coerced to int64 (as it is on other platforms). IIRC .where already has quite complicated logic to do this. How simple is this to fix?

cc @sinhrks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions