Skip to content

test_concat_categorical fails on pandas >= 2.2.0.dev0 or 3.12 #10558

Open

Description

@graingert

here's the failure found by #10549 (comment)

FAILED dask/dataframe/tests/test_multi.py::test_concat_categorical[True-False-True] - AssertionError: Series are different

Series values are different (26.66667 %)
[index]: [0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4]
[left]:  ['a', 'a', 'b', 'b', 'b', ..., 'b', 'b', 'a', 'c', 'c']
Length: 15
Categories (3, object): ['a', 'b', 'c']
[right]: ['a', 'a', 'b', 'b', 'c', ..., 'b', 'b', 'a', 'c', 'c']
Length: 15
Categories (3, object): ['a', 'b', 'c']
At positional index 4, first diff: b != c
FAILED dask/dataframe/tests/test_multi.py::test_concat_categorical[False-False-True] - AssertionError: Series are different

Series values are different (26.66667 %)
[index]: [0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4]
[left]:  ['a', 'a', 'b', 'b', 'b', ..., 'b', 'b', 'a', 'c', 'c']
Length: 15
Categories (3, object): ['a', 'b', 'c']
[right]: ['a', 'a', 'b', 'b', 'c', ..., 'b', 'b', 'a', 'c', 'c']
Length: 15
Categories (3, object): ['a', 'b', 'c']
At positional index 4, first diff: b != c

Activity

  1. added
    needs triage
    on Oct 12, 2023
  2. changed the title [-]test_concat_categorical fails on pandas >= 2.2.0.dev0[/-] [+]test_concat_categorical fails on pandas >= 2.2.0.dev0 or 3.12[/+] on Oct 18, 2023
  3. added
    needs attention
    on Nov 20, 2023
  4. crusaderky commented on Feb 5, 2026

    @crusaderky
    Collaborator

    As of today,

    • all OSes, Python 3.10, Pandas 2.0: midly flaky in CI (Fix flaky categorical concat test #12276); cannot reproduce locally
    • all OSes, Python 3.10, Pandas 2.1: deterministically passes
    • local ubuntu box, Python 3.13, Pandas 2.2: deterministically fails
    • all OSes, Python 3.11, Pandas 3.0: deterministically fails
    • all OSes, Python 3.12, Pandas 3.0: deterministically fails
    • all OSes, Python 3.13, Pandas 3.0: deterministically fails
    • ubuntu-latest, Python 3.14, Pandas 3.0: deterministically fails
    • windows-latest, Python 3.14, Pandas 3.0: deterministically fails
    • macos-latest, Python 3.14, Pandas 3.0: deterministically passes

    I have a suspicion that the pass/fail status may be determined at interpreter start, and that running it 100 times in a row without restarting the interpreter won't change things.

  5. removed
    needs attention
    on Mar 23, 2026
  6. crusaderky commented on Jun 1, 2026

    @crusaderky
    Collaborator

    The test also deterministically passes on Ubuntu ARM. This is a weirdly x86-specific issue (the first I've seen in a long time).
    #12435 tentatively expects pandas 2.0 to deterministically pass (this is worth a retest after the update to the pixi stack).

  7. crusaderky commented on Jun 9, 2026

    @crusaderky
    Collaborator

    nope, pandas 2.0 is still flaky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions