Skip to content

Conversation

@Mayankvlog
Copy link

When an ExtensionArray is passed as other to Series flex ops with fill_value, Series._flex_method took the scalar path and could raise (e.g., left.sub(left._values, fill_value=left[0])). Treat ExtensionArray like ndarray/list/tuple by constructing a Series and delegating to _binop so fill_value alignment works. Added regression test pandas/tests/series/test_arithmetic.py::TestSeriesFlexArithmetic::test_flex_op_with_extensionarray_and_fill_value. Closes #62467.

Mayank added 10 commits October 22, 2025 18:25
…d weakrefs when clearing referenced_blocks; add regression tests
…avoid breaking external references (GH#62787)
- Tests verify iloc preserves dictionaries in object dtype Series - Covers edge cases: nested dicts, multiple assignments, consistency with direct assignment - Includes regression test for original bug scenario - All tests pass pre-commit checks
- Remove unused numpy and pandas._testing imports - Standardize string quotes to double quotes throughout - Add trailing commas and fix whitespace - Pre-commit formatting improvements
@mroeschke
Copy link
Member

Please respect the contribution flow described in #49275.

I have already warned you about your use of AI contributions in #62789 (comment) and #62795 (comment).

If you submit another heavily AI generated contribution, I will have to block your contributions from the repo. Closing

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

Labels

None yet

2 participants