We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f4c90 commit 2438a67Copy full SHA for 2438a67
pandas/tests/frame/indexing/test_iat.py
@@ -1,7 +1,16 @@
1
+import pandas as pd
2
+
3
4
def test_iat(float_frame):
5
6
for i, row in enumerate(float_frame.index):
7
for j, col in enumerate(float_frame.columns):
8
result = float_frame.iat[i, j]
9
expected = float_frame.at[row, col]
10
assert result == expected
11
12
13
+def test_iat_duplicate_columns():
14
+ # https://github.com/pandas-dev/pandas/issues/11754
15
+ df = pd.DataFrame([[1, 2]], columns=["x", "x"])
16
+ assert df.iat[0, 0] == 1
0 commit comments