Skip to content

CI: test_object_factorize_dropna failing in MacPython/pandas-wheels #34130

Closed
@TomAugspurger

Description

@TomAugspurger

https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=35317&view=logs&j=79f3a53a-4a6d-509c-98b5-ff6e9111f67c&t=25a63239-9c30-5cf0-cb4c-3d01da7b47c5

    def test_object_factorize_dropna(
        self, data, dropna, expected_codes, expected_uniques
    ):
        codes, uniques = algos.factorize(data, dropna=dropna)
    
        tm.assert_numpy_array_equal(uniques, expected_uniques)
>       tm.assert_numpy_array_equal(codes, expected_codes)
E       AssertionError: numpy array are different
E       
E       Attribute "dtype" are different
E       [left]:  int32
E       [right]: int64

I'm not sure what the correct behavior is here, but the implementation is returning int32 while we're asserting int64. The test should probably check for np.dtype("intp").

Metadata

Metadata

Assignees

No one assigned

    Labels

    32bit32-bit systemsAlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffCIContinuous Integration

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions