Skip to content

Commit 519bf33

Browse files
committed
TST: Add test for loc with large uint64 index
1 parent 68f6b90 commit 519bf33

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pandas/tests/indexing/test_loc.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,3 +784,16 @@ def convert_nested_indexer(indexer_type, keys):
784784
index=pd.MultiIndex.from_product(keys))
785785

786786
tm.assert_series_equal(result, expected)
787+
788+
def test_loc_uint64(self):
789+
# GH20722
790+
s = pd.Series(
791+
[1, 2],
792+
index=[
793+
np.iinfo('uint64').max - 1,
794+
np.iinfo('uint64').max
795+
]
796+
)
797+
798+
assert 1 == s.loc[np.iinfo('uint64').max - 1]
799+
assert 2 == s.loc[np.iinfo('uint64').max]

0 commit comments

Comments
 (0)