Skip to content

Conversation

@dcamejo1
Copy link

@dcamejo1 dcamejo1 commented Oct 15, 2025

@dcamejo1
Copy link
Author

@WillAyd Removed description comments as mentioned, thanks for feedback!

dcamejo1 and others added 2 commits October 30, 2025 22:34
Commit suggestions

Co-authored-by: William Ayd <william.ayd@icloud.com>
df.loc[np.array([True], dtype=np.bool_), ["a"]] = df["b"].copy()
tm.assert_frame_equal(df, expected)

def test_loc_setitem_bool_mask_tzaware_scalar_with_expansion(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few hundred lines up there's a test class for _with_expansion tests

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: enlarging a DataFrame by adding an extra column with a tz-aware datetime results in object dtype

3 participants