Skip to content

Commit 996c930

Browse files
dcamejo1WillAyd
andauthored
Apply suggestions from code review
Commit suggestions Co-authored-by: William Ayd <[email protected]>
1 parent 7d88e10 commit 996c930

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/indexing/test_loc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,14 +2714,12 @@ def test_loc_setitem_bool_mask_tzaware_scalar_with_expansion(self):
27142714
assert isinstance(df["time"].dtype, pd.DatetimeTZDtype)
27152715
assert str(df["time"].dtype.tz) == "UTC"
27162716

2717-
expected_time = Timestamp(_time)
27182717
expected = DataFrame(
27192718
{
27202719
"id": [1, 2, 3],
2721-
"time": [pd.NaT, expected_time, expected_time],
2720+
"time": [pd.NaT, _time, _time],
27222721
}
27232722
)
2724-
expected["time"] = expected["time"].astype("datetime64[us, UTC]")
27252723
tm.assert_frame_equal(df, expected)
27262724

27272725

0 commit comments

Comments
 (0)