Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG (string dtype): comparison of string column to mixed object column fails #60228 (fixed) #60392

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

TEARFEAR
Copy link

Changes :

  • Updated comparison_op function in pandas/core/ops/array_ops.py:

    • Added handling for comparisons between string and object dtypes.
    • Ensured string and object types are casted to a common type (string) before comparison.
  • Added a test case to validate the fix:

    • Verified comparison works for string vs object with homogeneous and mixed types.
    • Verified behavior with PyArrow-based strings enabled (pd.options.future.infer_string = True).
  • closes BUG (string dtype): comparison of string column to mixed object column fails #60228 (Replace xxxx with the GitHub issue number)

  • Tests added and passed if fixing a bug or adding a new feature

  • All code checks passed.

  • Added type annotations to new arguments/methods/functions.

  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG (string dtype): comparison of string column to mixed object column fails
1 participant