diff --git a/pandas/tests/frame/indexing/test_iat.py b/pandas/tests/frame/indexing/test_iat.py index 23e3392251a3a..b1025b99e9bd5 100644 --- a/pandas/tests/frame/indexing/test_iat.py +++ b/pandas/tests/frame/indexing/test_iat.py @@ -1,3 +1,6 @@ +import pandas as pd + + def test_iat(float_frame): for i, row in enumerate(float_frame.index): @@ -5,3 +8,9 @@ def test_iat(float_frame): result = float_frame.iat[i, j] expected = float_frame.at[row, col] assert result == expected + + +def test_iat_duplicate_columns(): + # https://github.com/pandas-dev/pandas/issues/11754 + df = pd.DataFrame([[1, 2]], columns=["x", "x"]) + assert df.iat[0, 0] == 1