Skip to content

Conversation

suzyahyah
Copy link
Contributor

@suzyahyah suzyahyah commented Oct 12, 2025

Previously, dataframe where-conditional with axis=1 was failing due to underlying _NoDefault object is not suscriptable in pandas/core/internals/managers.py

In addition, the conditional dataframe for axis=1 was not being constructed correctly. This PR fixes that via:

orient = "index" if axis == 1 else "columns"

@suzyahyah suzyahyah force-pushed the fix_conditional_where_axis1 branch from 660d3de to 639cb52 Compare October 12, 2025 08:21
@suzyahyah suzyahyah changed the title fix: dataframe conditional where axis=1 failing fix: dataframe conditional where axis=1 Oct 12, 2025
@suzyahyah suzyahyah requested a review from mroeschke October 14, 2025 13:15
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: df.where(series, axis=1) always results in TypeError

2 participants