Skip to content

Commit 07e5c1a

Browse files
jbrockmendelclaude
andcommitted
TST: fix 32-bit build failure in test_getitem_dateoffset_columns
Use df.iloc[:, 0] as expected to avoid int32 vs int64 dtype mismatch on 32-bit platforms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 51c7d1e commit 07e5c1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pandas/tests/frame/indexing/test_getitem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_getitem_dateoffset_columns(self):
5555
)
5656

5757
result = df[offsets[0]]
58-
expected = Series([0, 7], index=[0, 1], name=offsets[0])
58+
expected = df.iloc[:, 0]
5959
tm.assert_series_equal(result, expected)
6060

6161
def test_getitem_list_of_labels_categoricalindex_cols(self):

0 commit comments

Comments
 (0)