pandas.DataFrame.iat

Access a single value for a row/column pair by integer position.

Similar to iloc, in that both provide integer-based lookups. Use iat if you only need to get or set a single value in a DataFrame or Series.

raises
IndexError

When integer position is out of bounds

Examples

Get value at specified index position.
import pandas as pd
from numba import njit


@njit
def dataframe_iat():
    df = pd.DataFrame({'A': [1.0, 2.0, 3.0, 1.0], 'B': [4, 5, 6, 7], 'C': ['a', 'b', 'c', 'd']})

    return df.iat[1, 2]  # value b


print(dataframe_iat())
$ python ./dataframe/dataframe_iat.py
b

See also

DataFrame.at

Access a single value for a row/column label pair.

DataFrame.loc

Purely label-location based indexer for selection by label.

DataFrame.iloc

Access group of rows and columns by integer position(s).